SetMode Method (mode, value)

DTF API

Copy image CopyHover image
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++ F#
public void SetMode(
	InstallRunMode mode,
	bool value
)
Public Sub SetMode ( 
	mode As InstallRunMode,
	value As Boolean
)
public:
void SetMode(
	InstallRunMode mode, 
	bool value
)
member SetMode : 
        mode : InstallRunMode * 
        value : bool -> unit 
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.11.1.2318)