Uninstalling and Stopping a .NET Windows Service - 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!

jjones
Posts: 68
Joined: Wed Jun 29, 2011 3:30 pm

Uninstalling and Stopping a .NET Windows Service

I have my service being installed and started correctly. How do I get the service to stop and uninstall when the user is uninstalling the application? I could use the Service Manager command from a .bat file but I didn't know if there was a way withing a .NET Installer Custom Action or from AI to do this.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstalling and Stopping a .NET Windows Service

Hello,

In order to achieve this you can use a .NET Installer custom action scheduled on uninstall before "Install Execution Stage -> Remove Resources" action group. Also, you can take a look on our "HELP: Creating installer with basic .net windows service" which may be helpful for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”