views:

232

answers:

3

How can a silent installer that does not display any UI Dialogs to the user and installs, upgrades and uninstalls with default settings be created in Wix?

A: 

MSI uses the following command line ags to be silent

msiexec /i foo.msi /qn <- silent install or silent major upgrade msiexec /i foo.msi REINSTALL=ALL REINSTALLMODE=vomus /qn <- silent minor upgrade msiexec /x foo.msi /qn <- silent uninstall

Christopher Painter
A: 

Just don't include any UI/UIRef elements and then no UI will be included :)

sascha
A: 

All MSI installers whether created by WiX or not can be controlled via command line arguments. So you can make an installer with UI and still install it silently, there is no need to remove the UI from the installer just suppress it on the command line. Remember, make sure you add the upgrade element in your first installer so subsequent ones will match

Charles Gargent