静默安装程序,具有自定义选择 [英] Silent Installer with custom selection

查看:122
本文介绍了静默安装程序,具有自定义选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我的安装程序需要用户选择安装时要使用的设置类型.可以说设置了A,B和C.

Currently my installer is need user to choose which type of setting they want to use when install. Lets say got setting A,B and C.

如果要在静默安装程序中进行设置.有什么方法可以使用?

If want to make this in silent installer. Is there any method can use?

我正在使用安装盾.

非常感谢. :)

推荐答案

您可以从msiexec.exe命令行在MSI文件内设置 PUBLIC PROPERTIES ,如下所示:

You can set PUBLIC PROPERTIES inside the MSI file from the msiexec.exe command line like this:

msiexec /i test.msi /qn TESTPROPERTY=1

这些属性是您已连接到GUI中输入的值的属性.现在,它们是通过命令行设置的(或者从属性"表中使用默认值),并且在安装时会跳过MSI的整个GUI部分.

These properties are the ones you have hooked up to values input in the GUI. They are now set by the command line (or defaults are used from the Property table) and the entire GUI section of the MSI gets skipped on install.

下面是一个示例,显示了如何将INSTALLDIR连接到GUI(显示了Wise for Windows Installer,在Installshield和其他MSI工具中具有相同概念):

Here is a sample showing how INSTALLDIR is hooked up to the GUI (Wise for Windows Installer shown, same concept in Installshield and other MSI tools):

要对msiexec.exe使用复杂的命令行,我总是推荐Altiris使用此漂亮的工具:每次使用msi.exec打开帮助选项进行安装).为了安全起见,请通过 virustotal.com 运行下载.

To play around with complex command lines for msiexec.exe I always recommend this nifty tool from Altiris: http://www2.wise.com/filelib/WICLB.exe - broken link, resurrected from Wayback Machine, seeing as the tool was freeware I assume that is legal - (see a screenshot of it here: installation using msi.exec open help options every time). Please run the download by virustotal.com for safety.

这篇关于静默安装程序,具有自定义选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆