SetMode Method (mode, value)

Microsoft Deployment Tools

Deployment Tools Foundation SetMode Method (mode, value)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerSessionSetMode(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) Version: 3.0.0.0 (3.5.1623.0)