Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

migrated from stackoverflow.com Jun 6 '11 at 13:23

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

1 Answer

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
add comment

Your Answer

 
discard

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.