GetMode Method (mode)

Microsoft Deployment Tools

Deployment Tools Foundation GetMode Method (mode)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerSessionGetMode(InstallRunMode)
Gets the designated mode flag for the current install session.
Declaration Syntax
C# Visual Basic Visual C++
public bool GetMode(
	InstallRunMode mode
)
Public Function GetMode ( _
	mode As InstallRunMode _
) As Boolean
public:
bool GetMode(
	InstallRunMode mode
)
Parameters
mode (InstallRunMode)
The type of mode to be checked.
Return Value
The value of the designated mode flag.
Remarks

Note that only the following run modes are available to read from a deferred custom action:

Win32 MSI API: MsiGetMode

Exceptions
Exception Condition
InvalidHandleException the Session handle is invalid
ArgumentOutOfRangeException an invalid mode flag was specified

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller) Version: 3.0.0.0 (3.5.1623.0)