Portalman66
Posts: 8
Joined: Thu Jan 23, 2025 9:55 am

Uninstall with multiple instances setup

Hello,

I have a multiple instances setup. During uninstall I have a inline powershell script that is executed "when the system is being modified (deferred)" and that needs to know which instance was selected in the MultipleInstancesDlg for uninstall. How can I achieve this?

Thank you for your help.

Best regards,
Portalman
Catalin
Posts: 7267
Joined: Wed Jun 13, 2018 7:49 am

Re: Uninstall with multiple instances setup

Hello Portalman,

What we can do here is write, during the installation, the InstanceId property into the registries and then retrieve it during uninstall in the PowerShell script.
Screenshot_230.png
Screenshot_230.png (10.86 KiB) Viewed 4839 times

Please note that this would need to be retrieved before the "Remove resources" action group, as that is when the registries will be removed from the machine.

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

Return to “Building Installers”