0

I am installing a Windows Service on my Desktop with a particular version. Then I revise my service and make some changes in the service.I upgrade my installer version.I also make the property RemovePreviousVersion true.When I start to Install the upgraded Windows Service, I get the below mentioned Error.

Error: 
The specified service already exists .
Stack Trace : At System.Process.ServiceInstaller.Install(IDictionary)at System.Configuration.Install.Installer.Install at WinDbSync1.Project.Install.
Mat
  • 202,337
  • 40
  • 393
  • 406
sachin kulkarni
  • 2,618
  • 7
  • 28
  • 33
  • 1
    Checkout this post: http://stackoverflow.com/questions/451573/how-do-i-eliminate-the-specified-service-already-exists-when-i-install-new-vers – Samich Sep 24 '11 at 09:17
  • Thanks Sarnich, But by adding NOT PREVIOUSVERSIONSINSTALLED to Condition,one cannot execute the code during installation – sachin kulkarni Sep 24 '11 at 10:42
  • Make sure that you have added your installer class to needed custom action event. – Samich Sep 24 '11 at 13:38
  • 2
    possible duplicate of [Failing to install the latest version of Windows Service](http://stackoverflow.com/questions/7538760/failing-to-install-the-latest-version-of-windows-service) – Bob Arnson Sep 24 '11 at 16:39

0 Answers0