MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

When does service stop get called

Hi,

I have an installer that installs / uninstalls a windows service.
When does the SC Stop call get performed, as I have a custom action that needs to be executed while the service is running

Is the service still running if I call the "LaunchFile_Uninstall" custom action here :
CustomAction.PNG
CustomAction.PNG (15.56 KiB) Viewed 3643 times
Last edited by MLiss@Cetrus.com on Fri Jan 04, 2019 7:14 pm, edited 1 time in total.
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: When does service stop get called

Here are my service control operation parameters
-
Service_Start_Stop.PNG
Service_Start_Stop.PNG (20.52 KiB) Viewed 3639 times
Catalin
Posts: 6592
Joined: Wed Jun 13, 2018 7:49 am

Re: When does service stop get called

Hello Mike,

The "Stop service" control operation takes places during the "Remove Resources" action group --> "StopServices" action.

With that being said, if your custom action needs to be executed while the service is running, then yes, you have scheduled it correctly, since it is scheduled to execute before the "StopServices" action.

Hope this helps.

Kind regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 6592
Joined: Wed Jun 13, 2018 7:49 am

Re: When does service stop get called

You are always welcome, Mike.

I am glad I could help.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”