如何在 Visual Studio 2008 中设置启动条件顺序?

发布于 2024-09-14 12:03:44 字数 449 浏览 0 评论 0原文

我有一个基于 WPF 和 SQL-Server Express 的应用程序,我想使用 VS-2008 设置和部署项目模板进行部署。我已经添加了 Windows Installer 3.1、Sql Express 2005 和 .Net FrameWork 3.5 SP1 的启动条件,但它们没有按顺序运行。我的意思是:

  1. Windows Installer 检查
  2. .Net Framework 3.5 sp1 检查
  3. SQL-Server Express 2005 检查

当我构建项目并在测试机器上运行时(仅限全新 XP 安装),它首先尝试安装 SQL-Server Express 2005,然后在 Windows 上失败安装程序 3.1。

我还想知道如何在安装 SQL-Server Express 2005 后运行我的数据库脚本。

我如何解决这两个问题。

I have an WPF and SQL-Server Express based app which I want to deploy using VS-2008 setup and deployment project template. I have added Launch condition for Windows Installer 3.1, Sql Express 2005 and .Net FrameWork 3.5 with SP1 but they are not running in order. I mean:

  1. Windows Installer checking
  2. .Net Framework 3.5 sp1 checking
  3. SQL-Server Express 2005 checking

When i built my project and ran on test machine (with Fresh XP installation only) it tried to install SQL-Server Express 2005 first and then failed for windows installer 3.1.

One more thing i want to know how i can run my DB script after installation of SQL-Server Express 2005.

How I can solve these 2 issues.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

℡Ms空城旧梦 2024-09-21 12:03:44

我认为您的问题实际上并不涉及 LaunchConditions,因为 LaunchConditions 的目的是在不满足某些条件的情况下阻止安装 Windows Installer 程序包。您所描述的内容听起来更像是先决条件链接,尽管我不确定您使用什么工具来编写安装以及哪个 setup.exe 来进行链接。

我还会考虑将 MSI 4.5 放入您的 chainer 中,MSI 3.1 已经很老了,目前仅适用于 Windows XP,因为所有较新的操作系统都至少配备了 4.0。

I don't think your question actually deals with LaunchConditions as the purpose of LaunchConditions is to prevent the installation of a Windows Installer package if certain conditions aren't met. What you are describing sounds morel ike prereq chaining although I'm not certain what tool you are using to author your install and thus which setup.exe to do the chaining.

I'd also look at putting MSI 4.5 in your chainer, MSI 3.1 is very old in the tooth and only applies to Windows XP these days as all newer OS's come with atleast 4.0.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文