Silent Installer with custom selection

后端 未结 1 677
感动是毒
感动是毒 2021-01-27 02:51

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 instal

相关标签:
1条回答
  • 2021-01-27 03:43

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

    Image description

    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.

    0 讨论(0)
提交回复
热议问题