Deployment Tools Foundation
SetMode Method (mode, value)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Session ► SetMode(InstallRunMode, Boolean)
Sets the designated mode flag for the current install session.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public void SetMode( InstallRunMode mode, bool value )
Public Sub SetMode ( mode As InstallRunMode, value As Boolean )
public: void SetMode( InstallRunMode mode, bool value )
Parameters
- mode (InstallRunMode)
- The type of mode to be set.
- value (Boolean)
- The desired value of the mode.
Remarks
Win32 MSI API: MsiSetMode
Exceptions
Exception | Condition |
---|---|
InvalidHandleException | the Session handle is invalid |
ArgumentOutOfRangeException | an invalid mode flag was specified |
InvalidOperationException | the mode cannot not be set |
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.9.1006.0)