Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to uninstall a MSI package through command line. So i used:

msiexec /x package.msi

But this command requires the package.msi to be present in the local machine.

I want to uninstall the msi even if the msi file is missing.

How can I do that?

share|improve this question

migrated from Jun 6 '11 at 13:23

This question came from our site for professional and enthusiast programmers.

See here for a list of different ways to uninstall an MSI: – Stein Åsmul Apr 18 '14 at 21:44

You can uninstall it using the product code:

msiexec.exe /x {your-product-code-guid}

You would obtain this code from the MSI itself, or whatever tool you are using to build the MSI.

Note that when you uninstall a product, it uses a cached MSI, since only the original MSI knows how to uninstall itself. When you use the product code, it uses the cached MSI from C:\WINDOWS\Installer.

share|improve this answer
what if you don't have the product id and it doesn't show up under "program and features" after you added the "product id" column? – Tomas Jansson May 13 '15 at 14:04
Unfortunately, this still shows "Locate MSI file" dialog – Ivan Nikitin May 11 at 21:15

See my answer on for various ways to uninstall MSI files / Windows Installer Packages from your computer.

You can uninstall via: msiexec, ARP, WMI, PowerShell, Deployment Systems such as SCCM, VBScript / COM Automation, DTF, or via hidden Windows cache folders, and a few other options.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.