Windows Services on Upgrade - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

colinw999
Posts: 2
Joined: Thu Sep 16, 2010 3:54 pm

Windows Services on Upgrade

Hi,

I have a reasonably simple installer. It copies some files (exe's and dll's) into a folder and then installs two services. One of the services uses one or more of the dlls that get installed.

On performing an upgrade I would like to stop the services, update all files, and then restart the services. Occasionally I get some of the files not being updated correctly - I presume because they are still in use by one of the services when the installer tries to update them?

I have Service Control Operations for both services as follows:

On Install: Start, Stop
On Uninstall: Stop, Delete

Is this correct? Because the help does not really describe when in relation to other events the services get started/stopped.

Thanks
Colin
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Windows Services on Upgrade

Hi Colin,

Your settings seem to be correct.
Occasionally I get some of the files not being updated correctly
Are the files not updated at all?
The services are stopped before the files are removed, so the files shouldn't be in use. Please make sure your services stop properly.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
colinw999
Posts: 2
Joined: Thu Sep 16, 2010 3:54 pm

Re: Windows Services on Upgrade

Hi Gabriel,

I really just wanted to make sure that I wasn't doing something wrong with my settings.

The problem has happened on a couple of Server 2003 boxes but I haven't had any such problems on 2008. So it could just be a problem with that OS.

The services definitely stopped as I saw them disappearing out of Task Manager and then reappearing. I'll try it again to see if I get the same issues.

Thanks
Colin

Return to “Common Problems”