Automated Installation Detection in .NET Custom Action

How do you find that the installation is in silent mode?

I have a custom application in which I added the .msi installation project. I am running a .msi file with the / qb switch, and in my C # installer user code I would like to detect this.

Edit: nobugs says to check the UILevel property. How to access the UILevel property from a class derived from the System.Configuration.Install.Installer class?

+5
source share
2 answers

Taking a hint from nobugz, I did the following:

  • " " .msi CustomActionData ( UILevel ):

    /UILevel = "[UILevel]"

  • # , , :

    string uiLevelString = Context.Parameters [ "UILevel" ];

  • int. <= 3, .

+10

, InstallUtil - . , tatoo CLR, , 1001- .

WiX DTF.

MsiGetMode (Session.Mode) , UILevel.

http://www.msifaq.com/a/1044.htm

0

All Articles