Silent Installer with custom selection

荒凉一梦 提交于 2019-12-04 05:05:38

问题


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?

I'm using install shield.

Thanks in advanced. :)


回答1:


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

msiexec /i test.msi /qn TESTPROPERTY=1

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.

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):

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.



来源:https://stackoverflow.com/questions/22166534/silent-installer-with-custom-selection

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!