nchounlapane
Posts: 33
Joined: Tue Mar 31, 2020 10:01 pm

Removing prerequisites during uninstallation of main package

On my main installer, I've added pre-requisites using the /NewPrerequisite command. Is there a way to uninstall the pre-requisites when the main installer is being uninstalled? It seems that using a powershell script wouldn't work since running it blocks any uninstalls if there is already one running?

Nick
Catalin
Posts: 7504
Joined: Wed Jun 13, 2018 7:49 am

Re: Removing prerequisites during uninstallation of main package

Hello Nick,

In order to uninstall the prerequisite when the main package is uninstalled, you should use the "Allow uninstall" option.
Screenshot_239.png
Screenshot_239.png (4.16 KiB) Viewed 11052 times

If the prerequisite is an MSI package, the uninstlal command line will be completed automatically.

Otherwise, you would have to do so yourself (e.g. adding an uninstall command line).

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nchounlapane
Posts: 33
Joined: Tue Mar 31, 2020 10:01 pm

Re: Removing prerequisites during uninstallation of main package

This is actually what I needed. Since I added the prerequisite using /NewPrerequisite command, is there any way to update the prerequisite's Uninstall Command Line and enable Allow Uninstall from advanced installer command line?
Catalin
Posts: 7504
Joined: Wed Jun 13, 2018 7:49 am

Re: Removing prerequisites during uninstallation of main package

Hello Nick,

I'm afraid that we do not have automation support for that specific request.

However, i will add this on our TODO list of improvements and it should be added in a future version of Advanced Installer.

Until that, you can check the checkbox manually and input the uninstall command line.

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

Re: Removing prerequisites during uninstallation of main package

You are always welcome, Nick!

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

Re: Removing prerequisites during uninstallation of main package

Hello Nick,

This improvement has been added in version 22.9 of Advanced Installer, released July 23rd, 2025.

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

Return to “Common Problems”