Bagikan melalui


Win32_ReserveCost class

The Win32_ReserveCost optional WMI class allows the author to reserve a specified amount of disk space in any directory, depending on the installation state of a component. Reserving cost in this way is useful for authors who want to ensure that a minimum amount of disk space is available after the installation is completed. For example, this disk space might be reserved for user documents, or for application files (such as index files) that are created only after the application is launched following installation. The Win32_ReserveCost class also allows custom actions to specify an approximate cost for any files, registry entries, or other items, that the custom action might install.

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 inherited properties. Properties and methods are in alphabetic order, not MOF order.

Syntax

[Provider("MSIProv"), Dynamic]
class Win32_ReserveCost : CIM_Check
{
  string  Caption;
  string  CheckID;
  boolean CheckMode;
  string  Description;
  string  Name;
  string  ReserveFolder;
  string  ReserveKey;
  uint32  ReserveLocal;
  uint32  ReserveSource;
  string  SoftwareElementID;
  uint16  SoftwareElementState;
  uint16  TargetOperatingSystem;
  string  Version;
};

Members

The Win32_ReserveCost class has these types of members:

Methods

The Win32_ReserveCost 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 non-abstract CIM_Check subclasses.

Properties

The Win32_ReserveCost 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

Whether the 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.

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.

ReserveFolder

Data type: string

Access type: Read-only

Name of the directory, as a path, reference to a directory specification or reference to a property, where the space is reserved.

ReserveKey

Data type: string

Access type: Read-only

Unique key that identifies this reserve cost item within its product.

ReserveLocal

Data type: uint32

Access type: Read-only

Number of bytes of disk space reserved if the associated software element is installed to run locally.

ReserveSource

Data type: uint32

Access type: Read-only

Number of bytes of disk space reserved if the associated software element is installed to run from source.

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.

Value Meaning
0
Unknown
1
Other
2
MACOS
3
ATTUNIX
4
DGUX
5
DECNT
6
Digital Unix
7
OpenVMS
8
HPUX
9
AIX
10
MVS
11
OS400
12
OS/2
13
JavaVM
14
MSDOS
15
WIN3x
16
WIN95
17
WIN98
18
WINNT
19
WINCE
20
NCR3000
21
NetWare
22
OSF
23
DC/OS
24
Reliant UNIX
25
SCO UnixWare
26
SCO OpenServer
27
Sequent
28
IRIX
29
Solaris
30
SunOS
31
U6000
32
ASERIES
33
TandemNSK
34
TandemNT
35
BS2000
36
LINUX
37
Lynx
38
XENIX
39
VM/ESA
40
Interactive UNIX
41
BSDUNIX
42
FreeBSD
43
NetBSD
44
GNU Hurd
45
OS9
46
MACH Kernel
47
Inferno
48
QNX
49
EPOC
50
IxWorks
51
VxWorks
52
MiNT
53
BeOS
54
HP MPE
55
NextStep
56
PalmPilot
57
Rhapsody

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_ReserveCost class is derived from CIM_Check.

Requirements

Minimum supported client
Windows XP
Minimum supported server
Windows Server 2003
Namespace
Root\CIMV2
MOF
Msi.mof
DLL
Msiprov.dll

See also

Installed Applications Classes