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 |