RKP
RKP

Reputation: 5385

the installed product does not match the installation source(s) error when uninstalling a windows service

when I try to uninstall a windows service from the control panel, I am getting error "the installed product does not match the installation source(s), until a matching source is provided or the installed product and the source are synchronized, this action cannot be performed". actually I do have the original MSI file, but I modified some settings in the config file (where it is installed) after installation, so that might have caused it, how can I uninstall it now?

Upvotes: 11

Views: 23890

Answers (1)

Christopher Painter
Christopher Painter

Reputation: 55620

The MSI you think is the original probably isn't really. It sounds like you got yourself in a situation where PackageCode ( GUID ) A is installed and now you have an MSI with PackageCode B.

Take the MSI you have and run the following command:

MsiExec.exe /I foo.msi REINSTALLMODE=voums REINSTALL=ALL

This will "recache" the MSI with the updated PackageCode. You should then be able to uninstall either through Add Remove Programs ( Programs and Features ) or with the command

MsiExec.exe /X foo.msi

Upvotes: 32

Related Questions