忽略静默安装参数,InstallShield 2009
我刚刚从一个离开的人那里继承了一个 InstallShield 2009 项目(哦,太高兴了),并且正在尝试让 setup.exe 以静默模式运行。该项目是一个基本 MSI 项目,根据文档,我应该能够指定 /s 开关与 /v/qn 组合,以使安装程序和 MSI 进程保持静默。但是,当我这样做时,该过程会正常显示所有对话框。我尝试使用 /r 开关生成答案文件,但这无法在任何地方产生 setup.iss 的任何迹象(我检查了 windows 文件夹,这显然是它所在的位置)。
为什么该进程会忽略静默命令?我在安装日志中看不到任何表明存在问题的内容...我使用的命令行是这样的:
setup.exe /s /v/qn
我尝试了各种小写和大写组合,但无济于事。任何建议将不胜感激。
史蒂夫
编辑:
我也尝试过:
setup.exe /s /v"/qn"
也不起作用。
编辑 2:
可能值得指出的是,安装程序正在执行并从产品的先前版本升级到更新版本。弹出的第一个对话框是“提取 msi”对话框,然后是“欢迎升级”对话框。
I've just inherited an InstallShield 2009 project from a guy who left (oh joy) and am trying to get the setup.exe to run in silent mode. The project is a Basic MSI project and according to the documentation, I should be able to specify the /s switch combined with /v/qn to make the installer and MSI process silent. However, when I do this, the process shows all the dialogs as normal. I've tried generating an answer file with the /r switch, but this fails to produce any sign of a setup.iss any where (I checked the windows folder, which is where it apparently goes).
Why would the process be ignoring the silent commands? I can see nothing in the install log that indicates a problem... The command line I am using is this:
setup.exe /s /v/qn
I've tried various combinations of lower and uppercase to no avail. Any advice would be appreciated.
Steve
Edit:
I've also tried:
setup.exe /s /v"/qn"
Which did not work also.
Edit 2:
It might be worth pointing out that the installer is performing and upgrade from a previous version of the product to a newer version. The first dialog that pops up is the "extracting msi" dialog followed by the "welcome to upgrade" dialog.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
以下内容应适用于 InstallShield 9:
Setup.exe /s /V/qn
如果要将命令发送到 MSI,请执行以下操作:
Setup.exe /s /V"/ qn ADDLOCAL=ALL"
注意:
v
是大写的。 InstallShield 的某些版本使用小写字母,而其他版本则使用大写字母表示v
。The following should work for InstallShield 9:
Setup.exe /s /V/qn
If you want to send commands to the MSI, do the following:
Setup.exe /s /V"/qn ADDLOCAL=ALL"
NOTE: The
v
is capitalized. Some versions of InstallShield use lowercase and others use Uppercase forv
.尝试
setup.exe /s /v"/qn"
基本上 /s 是告诉 setup.exe 以静默方式运行, /v 是将参数传递给 MSI,因此您必须将其用引号引起来。 /qn 告诉 MSI 在没有 UI 的情况下运行。
Setup.exe 和 Update.exe 命令行参数
Microsoft Windows 安装程序工具 Msiexec.exe 的命令行选项
Try
setup.exe /s /v"/qn"
Basically /s is to tell setup.exe to run silent and /v is to pass parms to MSI so you have to wrap it in quotes. /qn tells MSI to run with no UI.
Setup.exe and Update.exe Command-Line Parameters
The Command-Line Options for the Microsoft Windows Installer Tool Msiexec.exe