On uninstall ServiceName gets retrieved - Advanced Installer Community
thanhha146
Posts: 1
Joined: Wed Sep 25, 2019 5:55 am

On uninstall ServiceName gets retrieved

Hi all,
I am currently creating a setup for our software-product.
The program itself is a windows service which gets deployed through a CustomAction (Powershell-Script). In addition to the default entries "Path" and "Version" I am setting a new registry value "ServiceName" to be recalled on uninstall.
On uninstall ServiceName gets retrieved through a Search which in turn will be used in my other CustomAction to remove the service again.

This works great so far and the registry gets removed when there is a single instance installed. But if there is more than one instance everything but the registry key for that single instance gets removed.
Thanks
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: On uninstall ServiceName gets retrieved

Hello and welcome to Advanced Installer forums,

First of all, please accept my apologies for the delayed reply.

In what regards your scenario, unfortunately, I can not say for sure why this happens.

In order for me to further investigate this, could you please forward me, by e-mail at support at advancedinstaller dot com, the following:

- the .AIP file

- a download link for the setup

- a test-case which I can follow in order to replicate the behavior

Looking forward to hearing from you.

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

Return to “Common Problems”