Deployment Tools Foundation
SetInstallLevel Method (installLevel)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Session ► SetInstallLevel(Int32)
Sets the install level for the current installation to a specified value and
recalculates the Select and Installed states for all features in the Feature
table. Also sets the Action state of each component in the Component table based
on the new level.
Declaration Syntax
Parameters
- installLevel (Int32)
- New install level
Remarks
The SetInstallLevel method sets the following:
- The installation level for the current installation to a specified value
- The Select and Installed states for all features in the Feature table
- The Action state of each component in the Component table, based on the new level
Win32 MSI API: MsiSetInstallLevel
Exceptions
Exception | Condition |
---|---|
InvalidHandleException | the Session handle is invalid |