先决条件和启动条件
我在安装的先决条件和启动条件方面遇到了一个小问题。
例如,我的设置有一个需要“Software1”的启动条件和一个安装“Software2”的先决条件。
因此,如果系统在安装安装程序时没有同时满足“软件 1”和“软件 2”的要求:
- 是否显示“软件 2”的先决条件对话框
- 是否显示“软件 1”的启动条件。
我正在观察使用我的设置获得先决条件对话框的行为。
有没有办法在安装安装程序时设置顺序或将启动条件显示为第一个对话框?
I am having a small problem regarding pre-requisites and launch condition for setup.
For example, my setup is having one launch condition requiring "Software1" and one prerequisite installing "Software2".
So, if a system does not have both requirements "Software1" and "Software2" on installing the setup:
- Is it shows the prerequiste dialog for "Software2"
- Is it shows the launch codnition for "Software1".
I am observing the behaviour that I am getting a prerequiste dialog box using my setup.
Is there any way to set the order or to show the launch condition as first dialog while installing the setup?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您在安装中使用 InstallShield 先决条件,它们将由 setup.exe 安装,而不是 MSI。 启动条件由 MSI 处理,只有在安装先决条件后才会运行。 基本上,这意味着在安装先决条件之前您无法显示启动条件。
话虽这么说,您也许可以配置先决条件的条件,这样,如果您事先知道启动条件是否无法满足,则不会安装先决条件。 这样做的最终效果是在不安装先决条件的情况下显示启动条件,但这并不是实现此目的的真正简单方法。
在InstallShield 2009 中,您可以配置“功能先决条件”,只有在选择功能之后才会安装这些功能。 在这种情况下,与所选功能相关的先决条件将在安装 UI 序列的末尾安装,或者,如果安装在没有 UI 的情况下运行,则在安装执行序列之前安装。
If you are using InstallShield prerequisites in your installation, they will be installed by the setup.exe, not the MSI. Launch conditions are handled by the MSI, which will not be run until after the prerequisites are installed. Basically, this means that you can't show launch conditions until after prerequisites have been installed.
That being said, you may be able to configure the conditions on the prerequisites in such a way that the prerequisites would not be installed if you know in advance if a launch condition cannot be satisfied. The net effect of this is that the launch conditions are shown without installing prerequisites, but this isn't a really simple way to achieve this.
In InstallShield 2009, you can configure "feature prerequisites" that will not be installed until after features have been selected. In this case, prerequisites associated with selected features will be installed at the end of the Install UI sequence, or, if the installation is being run without a UI, just before the Install Execute sequence.
如果没有更多关于您正在使用的安装程序系统类型的详细信息,将很难提供帮助。 假设您正在使用 Visual Studio 中的内置内容,请在 Google 上查找 Visual Studio msi 自定义操作。 我相信允许的操作之一是启动另一个可执行文件。
without more detail on what sort of installer system you're using, it is going to be hard to help. Assuming you're using the built-in stuff in visual studio, look on google for visual studio msi custom actions. I believe one of the allowable actions is to start another executable.
假设您使用 MSI 启动条件,您无法判断将评估哪个顺序启动条件。
如果您确实需要按特定顺序检查某些内容,则需要使用自定义操作而不是启动条件。
Assuming you're using MSI launch conditions, you cannot tell which order launch conditions will be evaluated.
If you do need to check something in a specific order, you'll need to use a Custom Action rather than a launch condition.