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?
Best Answer
You can uninstall it using the product code:
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.