How to run created MSI in silent mode without CMD

2019-04-16 06:39发布

问题:

How to implement MSI in silent mode (totally no UI) when user launch the msi setup ?

回答1:

The key is the /QN switch in the msiexec.exe command line:

msiexec.exe /I "C:\Installer.msi" /QN /L*V "C:\msilog.log"
/I = Run installer sequence
/QN = Run totally silently
/L*V = Verbose logging, log everything


回答2:

Wrap the msi in an (or call it from an) exe and pass msiexec /qn.



回答3:

Not specifying the UI section in WiX will leave only the MSIExec's popup progress dialog. To get around that you would still need to execute from the command line.

More info here