Win32_LaunchCondition class
The Win32_LaunchCondition WMI class contains a list of conditions, all of which must be satisfied for the action to succeed.
Note For more information about support or requirements for installation on a specific operating system, see Operating System Availability of WMI Components.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties and methods are in alphabetic order, not MOF order.
Syntax
class Win32_LaunchCondition : CIM_Check
{
string Caption;
string CheckID;
boolean CheckMode;
string Condition;
string Description;
string Name;
string SoftwareElementID;
uint16 SoftwareElementState;
uint16 TargetOperatingSystem;
string Version;
};
Members
The Win32_LaunchCondition class has these types of members:
Methods
The Win32_LaunchCondition class has these methods.
| Method | Description |
|---|---|
| Invoke |
Evaluates a particular check. The details of how the method evaluates a particular check in a CIM context are described by the nonabstract CIM_Check subclasses. |
Properties
The Win32_LaunchCondition class has these properties.
- Caption
-
- Data type: string
- Access type: Read-only
Short textual description of the object.
- CheckID
-
- Data type: string
- Access type: Read-only
Identifier used in conjunction with other keys to uniquely identify the check.
- CheckMode
-
- Data type: boolean
- Access type: Read-only
Condition is expected to exist in the environment. When TRUE, the condition is expected to exist (for example, a file is expected to be on a system), so the Invoke method is expected to return TRUE.
- Condition
-
- Data type: string
- Access type: Read-only
Condition that must evaluate to TRUE for installation to begin.
- Description
-
- Data type: string
- Access type: Read-only
Description of the object.
- Name
-
- Data type: string
- Access type: Read-only
Name used to identify the software element.
- SoftwareElementID
-
- Data type: string
- Access type: Read-only
Identifier for the software element.
- SoftwareElementState
-
- Data type: uint16
- Access type: Read-only
State of a software element.
Value Meaning - 1
Deployable
- 2
Installable
- 3
Executable
- 4
Running
- TargetOperatingSystem
-
- Data type: uint16
- Access type: Read-only
Target operating system of the software element. The possible values for this property are as follows.
- Version
-
- Data type: string
- Access type: Read-only
Version of the software element. Values should be in the form [Major].[Minor].[Revision] or [Major].[Minor][letter][revision].
Remarks
The Win32_LaunchCondition class is derived from CIM_Check.
Examples
For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
For C++ code examples, see WMI C++ Application Examples.
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Namespace |
\root\CIMV2 |
|
MOF |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012