是否可以向 InstallShield 先决条件发送参数?
我正在评估InstallShield 2010,并尝试在用户运行时将一些命令行参数设置为SQL Server 2008 先决条件。看来先决条件完全在 .prq 文件(xml 样式)中定义。
Wise for Windows 使用 WiseScript 来调用必备安装。 InstallAware 似乎有类似的东西,有自己的脚本。 InstallShield 是否存在类似的东西?
I am evaluating InstallShield 2010, and am trying to set some command line parameters to the SQL Server 2008 prerequisite at user runtime. It appears that the prerequisite is defined entirely in the .prq files (xml-style).
Wise for Windows used WiseScript to call the prerequisite installations. InstallAware seems to have something similar, with their own scripting. Does something similar exist for InstallShield?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我们使用 IS v12;我为此目的构建了一个 .prq 文件(他们不为 IS v12 的 SQL 2008 提供 .prq)。首先我去了 http://msdn.microsoft.com/en-us/ Library/ms144259.aspx 获取所有可能的命令行参数。然后我使用 IS PRQ 编辑器创建基本的 .prq 结构。然后,我手动编辑了 .prq (xml) 文件,以便 (a) 将来轻松进行细微调整,以及 (b) 简化版本控制差异。
We use IS v12; I built a .prq file for the purpose (they don't supply a .prq for SQL 2008 for IS v12). First I went to http://msdn.microsoft.com/en-us/library/ms144259.aspx to get all possible cmd line args. Then I used the IS PRQ editor to create the basic .prq structure. Then I hand-edited the .prq (xml) file for (a) easy minor adjustments in the future and (b) to simplify version control diffs.
是 - 右键单击 SQL Server 先决条件 -> “要运行的应用程序”选项卡 -> “指定应用程序的命令行”。
Yes - by right clicking on the SQL Server prerequisite -> "Application to Run"' tab -> "Specify the command line for the application".
我知道如何执行此操作的唯一方法是编写 PRQ 调用的 Helper.EXE。 EXE 需要检测 Windows 设置并以静默方式将正确的参数传递给真正的 Prereq EXE/MSI。
The only way I know how to do this is to write a Helper.EXE that the PRQ calls. The EXE would need to detect the windows settings and silently pass the correct arguments to the real Prereq EXE/MSI.