Detect the installation is a silent or quiet or done via command line - Advanced Installer Community
spaul@data.com.au
Posts: 5
Joined: Wed Jul 04, 2018 5:01 am

Detect the installation is a silent or quiet or done via command line

During silent install, SetProperty action defaults a few folders paths which was usually configured via UI.

how do i detect a silent install(via a installer property etc.) so that I can detect and invoke a custom action or disable the setproperty.
Workaround is to have an input parameter when executed via commandline
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Detect the installation is a silent or quiet or done via command line

Hello,
how do i detect a silent install(via a installer property etc.)...
The installer sets the UILevel property to the level of the user interface. The internal UI is enabled and set by MsiSetInternalUI function. This property is set to one of the following INSTALLUILEVEL data types:

- 2 --> Completely silent installation (silent UI).

- 3 --> Simple progress and error handling.

- 4 --> Authored UI, wizard dialogs suppressed (basic UI).

- 5 --> Authored UI with wizards, progress, errors (full UI).

You can use the above property as a condition for your custom action.

Please let me know if this helps.

Kind regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”