Freigeben über


Msizap Syntax

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Msizap Syntax

Msizap uses the following syntax combinations:

To remove remnants of an active (incomplete) installation

Art Imagemsizap[P][S]

To remove data for a specified installation

Art Imagemsizap[T][P][S][W][G] PackageName | {ProductCode}

To remove all installation data

Art Imagemsizap*[W][!]ALLPRODUCTS

To give Administrators Full Control permission to installation data

Art ImagemsizapA[*][T][W][P][S] [PackageName | {ProductCode} | ALLPRODUCTS]

To display help

Art Imagemsizap /?

Notes

  • When deleting objects that are unique in the system (such as the InProgress registry subkey or rollback data) or to change permissions, you do not need to specify an installation package.

  • The package name, product code, or ALLPRODUCTS, if included, must be the last parameter in the command. Other parameters may be listed in any order.

  • When using T, you must specify an installation by package name or product code. When using *, you must specify ALLPRODUCTS.

Parameters

  • *
    Deletes all Windows Installer configuration data on the computer. ALLPRODUCTS is required when using *. This parameter deletes the folders, files, registry subkeys, and registry entries in which Windows Installer stores configuration data, including rollback data and the InProgress registry subkeys for each installation. It also stops the Windows Installer service, deletes published icons (icons that offer to install a program), and adjusts shared DLL counts.
  • !
    Suppresses all confirmation messages.
  • A
    Gives administrators Full Control permission to the folders, files, and registry subkeys specified by other parameters in the command. When combined with A, other parameters specify which object DACLs are changed; they do not direct Msizap to delete installation configuration data.
  • P
    Deletes the InProgress registry subkey. This parameter deletes the subkey that indicates to Windows Installer that an installation is in progress: HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress While this subkey remains in the registry, Windows Installer will not install another program. Because Windows Installer deletes the InProgress subkey when an installation completes, this subkey is present only for an active installation.
  • S
    Deletes rollback data. This parameter deletes the Rollback registry subkey (below), rollback scripts, and backup copies that enable Windows Installer to restore the computer to its original state when an installation stops before it is complete. HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback Because Windows Installer automatically deletes rollback data when an installation completes, rollback data is present only for an active installation.
  • T
    Deletes Windows Installer configuration data for a specified installation. This parameter deletes the folders, files, registry subkeys, and registry entries in which Windows Installer stores configuration data for the installation (except for rollback data and the InProgress registry subkey, which are specified separately). It also stops the Windows Installer service, deletes published icons (icons that offer to install a program), and adjusts shared DLL counts.
  • W
    Extends the command to all user profiles. By default, Msizap deletes and changes user-specific data only for the current user.
  • G
    Removes orphaned cached Windows Installer data files for all users.
  • ?
    Displays help.
  • PackageName | {ProductCode}
    Specifies an installation as the target of the msizap command. Type the product code or the path and file name of the Windows Installer package file, such as: c:\ptree.msi If you do not specify an installation, then msizap commands apply to all Windows Installer installations on the computer.
  • ALLPRODUCTS
    Indicates all Windows Installer installations on the computer. ALLPRODUCTS is required when using *.

Sample Usage

 
msizap *! ALLPRODUCTS 
msizap PS 
msizap AT ptree.msi 
msizap WTP MyPackage.msi 
msizap TW {00000001-0001-0000-0000-624474736554} 

See Also

Concepts

Msizap Overview
Msizap Remarks
Msizap Examples
Alphabetical List of Tools
Windiff Overview
Remote Overview
Poolmon Overview
Msicuu Overview
Memsnap Overview
Gflags.exe
Devcon Overview