How to implement MSI in silent mode (totally no UI) when user launch the msi setup ?
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
Wrap the msi in an (or call it from an) exe and pass msiexec /qn.
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
来源:https://stackoverflow.com/questions/24904380/how-to-run-created-msi-in-silent-mode-without-cmd-msiexec-command