user2060111
user2060111

Reputation:

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.

Upvotes: 1

Views: 142

Answers (1)

Stein Åsmul
Stein Åsmul

Reputation: 42186

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.

Upvotes: 4

Related Questions