Microsoft Setup Projects for Services and Automatic Removal of Previous Versions
I have an application that runs as a service.
I modified the service installer object to pass customization data to it from the user input screen in the install / install project.
All of this seems to be well separated from the following points:
- Installation without errors for FREE there is a copy of my service already installed on the client machine, in which case it throws up a window that says it is already present and bomb, although I have the RemovePreviousVersion setting property set to True.
- When the sussessful install is nearing completion, I get a message indicating that the service cannot be started automatically and cannot be used by NET START or by the service administrator.
So how do I get the automatic removal of the previous version of the service if it is installed?
Also, how do I get it to start the service automatically, or ask the user to restart the computer?
+2
ChrisBD
source
to share
1 answer
Are you changing the version of the installer? In the properties window, you need to increase the Version property. It will prompt you to create a new product code. Just click "Yes". See if this works for you.
+3
Ryan Alford
source
to share