Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you determine if a WiX installer is quiet or interactive?

Is there a way within WiX to determine if the installer is being run in quiet mode or interactively?

like image 420
dskiles Avatar asked Jan 05 '10 15:01

dskiles


People also ask

How does WiX Installer work?

The WiX tools follow the traditional compile and link model used to create executables from source code. At build time, the WiX source files are validated against the core WiX schema, then processed by a preprocessor, compiler, and linker to create the final result.

How do I run as administrator in WiX Installer?

Setup tab > Run after execution input: your msi file name. Advanced tab > Mark Request Administrative access option checkbox.


2 Answers

Recently we developed new bundled WiX installers in our team where we had our custom bootstrapper application inheriting from standard BootstrapperApplication and we were checking whether the installation is silent like this:

(Command.Display == Display.None || Command.Display == Display.Embedded)
like image 165
Michal Hosala Avatar answered Oct 10 '22 20:10

Michal Hosala


My google-fu finally kicked in. Apparently there are some built-in properties that you can use to determine the UI level.

http://msdn.microsoft.com/en-us/library/aa372096%28VS.85%29.aspx

like image 35
dskiles Avatar answered Oct 10 '22 21:10

dskiles