Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 690
RKP Avatar asked Jan 10 '11 15:01

RKP


People also ask

How do you fix there is a problem with this Windows Installer package a program run as part of the setup did not finish as expected?

Run a Windows Troubleshooter. Go to Settings > Update & Security and run the Program Compatibility Troubleshooter and Windows Store Apps Troubleshooter. Both scan and provide solutions for any app problems that cause this error message to occur. Repair the app.


1 Answers

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
like image 100
Christopher Painter Avatar answered Sep 23 '22 07:09

Christopher Painter