Windows Tools

Msizap Syntax

Overview | Notes | Syntax | Examples | Related Tools Open Command Prompt

Msizap uses the following syntax combinations:

To remove remnants of an active (incomplete) installation.

One Step msizap [P][S]

To remove data for a specified installation.

One Step msizap [T][P][S][W]  PackageName | { ProductCode }

To remove all installation data.

One Step msizap *[W][!] ALLPRODUCTS

To give Administrators Full Control permission to installation data.

One Step msizap A[*][T][W][P][S]  [PackageName | { ProductCode } | ALLPRODUCTS]

To display help.

One Step msizap /?

Note

Parameters

PackageName | { ProductCode }
Specifies an installation as the target of the Msizap command. Type the product code or the path and file name of the MSI 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 *.
*
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.

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.

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 (HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback), 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. Because Windows Installer automatically deletes rollback data when an installation completes, rollback data is present only for an active installation.

W
Extends the command to all user profiles. By default, Msizap deletes and changes user-specific data only for the current user.
A
Gives Adminstrators 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.

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

!
Suppresses all confirmation messages.
?
Displays help.

Sample Usage

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