"Specified service already exists" while patching
Posted on 2008-09-30
I have created a patch for a windows service installer and am getting the error message: "Specified service already exists" when I run the patch executable. I am using a 3rd party patching program that basically takes in the old .msi (Version x.y.10) and the new .msi (Version x.y.11) both created with a VS2008 setup project. I have the required code in the ServiceInstaller class constructor. I think the problem derives from the fact that if I try to run the new .msi on a system with the product installed from the old .msi , even with the RemovePreviousVersions property set to true in the setup project used to create the new .msi, I get a message telling me to remove the existing version of the product using Add/Remove Programs in the control panel. This happens because I am not changing the major or minor version of the product between .msi's. So I guess the most prevalent question here is, what is the best way to go from x.y.10 to x.y.11 without having the user manually uninstall x.y.10?