MGS
Posts: 96
Joined: Tue Oct 04, 2022 9:52 am

Starting and stopping services during install and uninstall

Hi,

we have 2 questions regarding services.
  • 1. If I need to start a service during install is there a way to tell the installer to continue the installation? On our current installer there is only an option to cancel the whole installation.
    2. If I need to (force) stop a service without any confirmation can I do this with the Services -> Control Operations? If not is there a way in the installer to do this?
Best regards,
Kilian
Catalin
Posts: 6661
Joined: Wed Jun 13, 2018 7:49 am

Re: Starting and stopping services during install and uninstall

Hello Kilian,
1. If I need to start a service during install is there a way to tell the installer to continue the installation? On our current installer there is only an option to cancel the whole installation.
By using the predefined support (Control Operations), I'm afraid that this might not be possible.

However, if you start the service through a custom action, you can uncheck the "Fail installation if custom action returns error" and that should give you the desired result.
Screenshot_149.png
Screenshot_149.png (51.12 KiB) Viewed 415 times
2. If I need to (force) stop a service without any confirmation can I do this with the Services -> Control Operations? If not is there a way in the installer to do this?
Yes, this should stop the service silently.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MGS
Posts: 96
Joined: Tue Oct 04, 2022 9:52 am

Re: Starting and stopping services during install and uninstall

Hi,

Where can I find the "StopService" action? I only can add "StopServices" and I can't edit anything there.
Capture.PNG
Capture.PNG (184.06 KiB) Viewed 405 times

It also doesn't stop the services silently. Is there a hidden option to make it silent?
2024-05-10 11_58_37-mgsbldsrv02 - Remote Desktop Connection.png
2024-05-10 11_58_37-mgsbldsrv02 - Remote Desktop Connection.png (69.18 KiB) Viewed 79 times

Best regards,
Kilian
Last edited by MGS on Fri May 10, 2024 11:09 am, edited 1 time in total.
Liviu
Posts: 1054
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Starting and stopping services during install and uninstall

Hello Kilian,

Sorry for the delayed reply on this.

You can find the Stop service custom action in the predefined list:
stop service.png
stop service.png (159.75 KiB) Viewed 378 times

Hope this helps!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”