Article ID: 940410 - View products that this article applies to.
This article describes how to use Package Manager to uninstall a package in Windows Vista.
Note This article also applies to Windows Server 2008.
To uninstall a package, use one of the following methods. Both methods use the Package Manager tool (Pkgmgr.exe).
For example purposes, these methods assume that you want to uninstall update 929761. These methods also assume that you have installed the Windows6.0-KB929761-x86.msu file to the C:\Temp folder.
Method 1: Modify the .xml file for the package
Method 2: Use the command lineAt the command prompt, run the following command:
start /w pkgmgr /up:package_nameNote You cannot use the /up option together with the /m option. The /m option points Package Manager to the folder in which the package is located. When you use the /up option, the command requires that you use the actual name of the package. This behavior differs from the behavior of the /ip option.
You may want to retrieve the package name and then pass the name to Package Manager to uninstall the package. To do this, follow these steps:
How to test the success of the uninstallationTo determine whether the uninstallation was successful, type the following command at a command prompt:
echo %errorlevel%If the result is 0, the uninstall operation was completed successfully. If the operation is successful, you do not have to restart the computer or perform any additional tasks. If the operation is not successful, you can find information about the error code by searching for it in the Winerror.h file to. For more information about the Winerror.h file, visit the following Web site:
http://msdn.microsoft.com/en-us/library/ms819772.aspxPackage Manager may return error code 87. This error code indicates that Package Manager has received incorrect parameters. Package Manager may also return error code 3010. This error code indicates that you should restart the computer for the changes to take effect.
You may also want to view the log file. The log file is located in the %windir%\Logs\Cbs\Cbs.log folder.
For more information about Package Manager, visit the following Web site:
Package Manager Technical ReferenceFor more information about how to use the Ocsetup.exe tool to install or to remove Windows optional components in Windows Vista , click the following article number to view the article in the Microsoft Knowledge Base:
(https://support.microsoft.com/kb/936209/ )How to use the Ocsetup.exe tool to install or to remove Windows optional components in Windows Vista
Article ID: 940410 - Last Review: March 25, 2008 - Revision: 3.4