Compartilhar via


Win32_DirectorySpecification class

The Win32_DirectorySpecification class represents the directory layout for the product. Each instance of the class represents a directory in both the source image and the destination image.

Directory resolution is performed as follows:

  • Root destination directories: The root directory entries are those with a null Directory_Parent value or a Directory_Parent value identical to the Directory value. The value in the Directory property is interpreted as the name of a property defining the location of the destination directory. If the property is defined, the destination directory is resolved to the property's value. If the property is undefined, the ROOTDRIVE property is used instead to resolve the path.
  • Root source directories: The value of the DefaultDir column for root entries is interpreted as the name of a property defining the source location of this directory. This property must be defined or an error will occur.
  • Nonroot destination directories: The Directory value for a nonroot directory is also interpreted as the name of a property defining the location of the destination. If the property is defined, the destination directory is resolved to the property's value. If the property is not defined, the destination directory is resolved to a subdirectory beneath the resolved destination directory for the Directory_Parent entry. The DefaultDir value defines the name of the subdirectory.
  • Nonroot source directories: The source directory for a nonroot directory is resolved to a subdirectory of the resolved source directory for the Directory_Parent entry. Again, the DefaultDir value defines the name of the subdirectory.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties are listed in alphabetic order, not MOF order.

Syntax

[Provider("MSIProv"), Dynamic]
class Win32_DirectorySpecification : CIM_DirectorySpecification
{
  string  Caption;
  string  CheckID;
  boolean CheckMode;
  string  DefaultDir;
  string  Description;
  string  Directory;
  string  DirectoryPath;
  uint16  DirectoryType;
  string  Name;
  string  SoftwareElementID;
  uint16  SoftwareElementState;
  uint16  TargetOperatingSystem;
  string  Version;
};

Members

The Win32_DirectorySpecification class has these types of members:

Properties

The Win32_DirectorySpecification class has these properties.

Caption

Data type: string

Access type: Read-only

Short description of the object.

CheckID

Data type: string

Access type: Read-only

Qualifiers: Key, Dynamic

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 or not exist in the environment. When TRUE, the condition is expected to exist (a file is expected to be on a system) so the Invoke() method is expected to return TRUE.

DefaultDir

Data type: string

Access type: Read-only

Description

Data type: string

Access type: Read-only

Description of the objects.

Directory

Data type: string

Access type: Read-only

DirectoryPath

Data type: string

Access type: Read-only

Name of a directory. The value supplied by an application provider is actually a default or recommended path name and can be changed for a particular environment.

DirectoryType

Data type: uint16

Access type: Read-only

Type of directory being described.

Value Meaning
1
Product log directory
2
Shared base directory
3
Shared executable directory
4
Shared library directory
5
Shared include directory
6
System base directory
7
System executable directory
8
System library directory
9
System configuration directory
10
System include directory
11
System log directory
12
Other

Name

Data type: string

Access type: Read-only

Name used to identify this software element.

SoftwareElementID

Data type: string

Access type: Read-only

Identifier for this software element. Designed to be used in conjunction with other keys to create a unique representation of this CIM_SoftwareElement instance.

SoftwareElementState

Data type: uint16

Access type: Read-only

State of a software element.

Value Meaning
1
Disabled
2
Installable
3
Executable
4
Running

TargetOperatingSystem

Data type: uint16

Access type: Read-only

Target operating system of the owning 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. Version should be in the form <Major>.<Minor>.<Revision> or <Major>.<Minor><letter><revision>.

Remarks

The Win32_DirectorySpecification class is derived from CIM_DirectorySpecification.

Requirements

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

See also

Operating System Classes