How to run created MSI in silent mode without CMD

2019-04-16 06:10发布

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

3条回答
Ridiculous、
2楼-- · 2019-04-16 06:27

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
查看更多
干净又极端
3楼-- · 2019-04-16 06:27

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

查看更多
女痞
4楼-- · 2019-04-16 06:33

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

查看更多
登录 后发表回答