The WriteRegistryValues action sets up registry information that the application desires in the system Registry. The registry information is gated by the Component class. A registry value is written to the system registry if the corresponding component has been set to be installed either locally or run from source.
Namespace value is root/CIMV2.
WMI Provider value is MSIProv.
The ActionID property is a unique identifier assigned to a particular action for a software element.
A description of the object.
The Direction property indicates whether a particular CIM_Action object is part of a sequence of actions to transition the current software element to its next state, such as "Install" or to remove the current software element, such as "Uninstall".
This property contains the registry value name. If this is Null, then the data entered into the Value proeprty are written to the default registry key.
This property is the registry value.
The key for the registry value.
Name is used to identify this software element
The registry value name. If the Value column is null, then the following strings in the Name column have special significance. + The key is to be created, if absent upon the installation of the component. - The key is to be deleted, if present, with all its values and subkeys upon the uninstallation of the component. * The key is to be created, if absent upon the installation of the component AND the key is to be deleted, if present, with all its values and subkeys upon the uninstallation of the component.
The SoftwareElementID is an identifier for this software element.
The SoftwareElementState indicates the state of a software element
The TargetOperatingSystem indicates the target operating system of the owning software element.
Version should be in the form .. or ..
The invoke method is to take a particular action. The details of how the method performs the action is implementation specific. The results of the method are based on the return value. - A 0 (zero) is returned if the condition is satisfied. - A 1 (one) is returned if the method is not supported. - Any other value indicates the condition is not satisfied.
SELECT * FROM Win32_RegistryAction
About this site information
This contents is created by WMI having class information.
WMI Environment is Windows Server 2008 R2 Enterprise Edition.
This link is Microsoft documents for "Managing Windows with WMI".
That is VB(Visual Basic) scripting sample.
This link is Microsoft documents for "Advanced Programming Topics in WMI .NET".
That is VB.net(Visual Basic .net) scripting sample.