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!

PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Removing a service

We have a product that used to be installed as a service. The installer was written with AI and has worked well for a number of years. All our installs are written as major upgrades.
The latest version of the product no longer has a requirement to run as a service. The problem that we have is that the upgrade from the previous version does not remove the existing service information from the service control manager. What I would really like the installer to do is stop the existing service if it is running and remove the service info. I can probably knock up some sort of CA to achieve this but is there an easier way?

Phil
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Removing a service

Hi Phil,

I've tested your scenario, but I cannot reproduce the behavior. Your service should be removed correctly if in the Service page, "Control Operations" folder, the "Stop" and "Delete" actions were checked "On Uninstall" in the previous version of the product.

Else, in the "Control Operations" folder you can select the "Stop" and "Delete" actions "On Install" in the latest version of the product, but remove the service from the "Service to Install" folder.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Re: Removing a service

The previous version(s) do indeed have the "Stop" and "Delete" actions checked "On Uninstall". They would have been built with V8.6 (or earlier) of AI.
I'll try your suggestion of selecting the "Stop" and "Delete" actions "On Install" without adding the service in the latest version and let you know the result.

Thanks,

Phil
PhilB
Posts: 95
Joined: Fri Jul 06, 2007 4:13 pm

Re: Removing a service

Hi Eusebiu,

That all worked fine,

Thanks Again,

Phil
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Removing a service

You're welcome Phil. I'm glad you got this working.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”