Win32_DuplicateFileAction class
The Win32_DuplicateFileAction WMI class represents a file that is duplicated at install time, either to a different directory than the original file, or to the same directory, but with a different name.
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.
[Provider("MSIProv"), Dynamic]
class Win32_DuplicateFileAction : CIM_CopyFileAction
{
string ActionID;
string Caption;
boolean DeleteAfterCopy;
string Description;
string Destination;
uint16 Direction;
string FileKey;
string Name;
string SoftwareElementID;
uint16 SoftwareElementState;
string Source;
uint16 TargetOperatingSystem;
string Version;
};
The Win32_DuplicateFileAction class has these types of members:
- Methods
- Properties
The Win32_DuplicateFileAction class has these methods.
Method | Description |
---|---|
Invoke | Takes a particular action. The details of how the method performs the action are implementation-specific. |
The Win32_DuplicateFileAction class has these properties.
ActionID
Data type: string
Access type: Read-only
Unique identifier assigned to a particular action for a software element.
Caption
Data type: string
Access type: Read-only
Short textual description of the object.
DeleteAfterCopy
Data type: boolean
Access type: Read-only
Delete the source file after the copy operation.
Description
Data type: string
Access type: Read-only
Description of the object.
Destination
Data type: string
Access type: Read-only
Fully qualified destination file name.
Direction
Data type: uint16
Access type: Read-only
Whether a particular CIM_Action object is part of a sequence of actions to transition the current software element to its next state (Install) or to remove the current software element (Uninstall).
Value | Meaning |
---|---|
1 | Install |
2 | Uninstall |
FileKey
Data type: string
Access type: Read-only
Unique key identifying this duplicate file action within a product.
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 | Run |
Source
Data type: string
Access type: Read-only
Fully qualified source file name.
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. Values should be in the form [Major].[Minor].[Revision] or [Major].[Minor][letter][revision].
The Win32_DuplicateFileAction class is derived from CIM_CopyFileAction.
Minimum supported client |
Windows XP |
Minimum supported server |
Windows Server 2003 |
Namespace |
Root\CIMV2 |
MOF |
Msi.mof |
DLL |
Msiprov.dll |