ahmed.gad_it
Posts: 21
Joined: Fri Jun 08, 2018 12:07 pm

Removing Service once Uninstalling

Hi,

When i try to uninstall my application, it gives error that there are services running!
I want the services installed by Services on Resources to be removed as a first step when i uninstall the application.

Thanks!
Catalin
Posts: 6627
Joined: Wed Jun 13, 2018 7:49 am

Re: Removing Service once Uninstalling

Hello Ahmed,

Can you please make sure that the operations for the service upon uninstalling your product are "Stop" and "Delete" ? You can do this by going to "Services" page and under "Control Operations" check the Actions taken upon uninstalling the product. Also, please make sure that the "Wait until the service completes" option is ticked.

If this is of no help, you can use our predefined "DetectSercice" and "StopService" custom action to manually stop the service before uninstalling. Also, please keep in mind that you have to place these custom actions before "Remove Resources" action group.

Hope this helps!

Regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”