如何在 Visual Studio 2008 中设置启动条件顺序?
我有一个基于 WPF 和 SQL-Server Express 的应用程序,我想使用 VS-2008 设置和部署项目模板进行部署。我已经添加了 Windows Installer 3.1、Sql Express 2005 和 .Net FrameWork 3.5 SP1 的启动条件,但它们没有按顺序运行。我的意思是:
- Windows Installer 检查
- .Net Framework 3.5 sp1 检查
- 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:
- Windows Installer checking
- .Net Framework 3.5 sp1 checking
- 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您的问题实际上并不涉及 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.