|- WMI Library -|
WMI Libraly > Win32_RemoveFileAction Class
The RemoveFiles action uninstalls files previously installed by the InstallFiles action. Each of these files is 'gated' by a link to an entry in the Component class; only those files whose components are resolved to the iisAbsent Action state, or the iisSource Action state IF the component is currently installed locally, will be removed. The RemoveFiles action can also remove specific author-specified files that weren't installed by the InstallFiles action. Each of these files is 'gated' by a link to an entry in the Component class; those files whose components are resolved to any 'active' Action state (i.e. not in the 'off', or NULL, state) will be removed (if the file exists in the specified directory, of course). This implies that removal of files will be attempted when the gating component is first installed, during a reinstall, and again when the gating component is removed.
Remove only when the associated component is being installed (msiInstallStateLocalor msiInstallStateSource).
Remove only when the associated component is being removed (msiInstallStateAbsent).
Remove in either of the above cases.
SELECT * FROM Win32_RemoveFileAction
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.
- WMI Library -
WMI useful by VB,VB.Net,VC,VC.Net,VC#.Net,VBS(WSH),PowerShell for PC asset management, system monitoring and collecting hardware and software inventory.
This website is created by Toh.
Copyright(C) 1997-2016 WMI Fun !!. All rights reserved.
|^ Go to the top...|