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!

schmitch
Posts: 1
Joined: Mon Sep 18, 2023 5:00 pm

Uninstall Service, but not while updating MSI

Hello,

we currently are really happy with advancedinstaller, however we install a service and want to keep the service while updating, so that windows credentials that were manually inserted/changed, will be kept the same, so we change the Service Action from On Uninstall "Stop" / "Delete" to just "Stop" and removed the delete, now the update process works fine, however when completly removing the service it won't remove the service, is there a way to achieve this?
We use MSI's.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Uninstall Service, but not while updating MSI

Hello and welcome to our forums,

First of all, thank you for your kind words!

I am glad to hear you are happy with our product.

Regarding your scenario, in the Update service without changing its logon details thread we can see a similar user that removes the service using a Custom Action.

The reason why this happens is because an upgrade is basically:

- removal of the previous version

- installation of the newer version

so if the service is not removed on upgrade, it will not be removed during normal uninstall either.

For the custom action, we could use a "Launch File" that launches sc.exe (tool that comes by default with Windows OS).

Controlling a Service Using SC

Hope this helps!

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

Return to “Common Problems”