Determine if this is unattended installation mode?

I need to do different actions in installer if user runs the MSI from CMD and from GUI. Does someone knows how I can distinguish in run-time whether MSI was launched from Windows Explorer or CMD (unattended installation)?

The reason why I need to know this is that I need to make installer that will be executed in Unattended mode only if some parameter is set or in UI mode if user agreed with what I'm enforcing.

Answers


This is a "deployment smell" ala "code smell". Please explain what needs to be differently done, and why. There may be another way to achieve the same effect that doesn't mess with the core of the setup.

The UILevel property of Windows Installer will tell you whether the setup has been launched silently. Four different UI levels are possible.

Determining UI Level from a Custom Action.


Need Your Help

Desfire - command for Ndef Application : get security exception

java nfc mifare

I send the following command to a Desfire tag to detect a Ndef Application :

Shell Redirect 'git clean' output

git shell fish

I have a large code repo I work with that, once compiled, litters the git source tree with about 3000 extra files (.os, .sos, etc), as well as a few hundred other file changes (autogenerated files,