Disable upgrades? - Advanced Installer Community

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!

wetnose
Posts: 1
Joined: Mon Aug 23, 2010 3:09 pm

Disable upgrades?

Hi, our software has a prerequisite specified in the Software Prerequisites section. Because this prerequisite is unlikely to be used by any other software, we remove the prerequisite on uninstall. The problem rises when users try to install a new build on top of an existing one. The prereq. step will detect the prerequisite software exists, the uninstaller for the previous version runs (uninstalling the prerequisite software), and then the software for the new version will install, but the prerequisite component will be missing.
How can we get around this? Disabling upgrades would be an option (i.e. requiring that users explicitly uninstall the old version, before installing the new one), but I see no option to do this in the AdvancedInstaller UI. We are using version 7.5.2.

Thanks!
Radu
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Disable upgrades?

Hi Radu and welcome to Advanced Installer Forums,

You can create a registry key that acts as a reference count. Each time the prerequisite is tried to be installed, the ref count increases. Each time it is attempted to be uninstalled, the reference count decreases. When the reference count reaches zero, the prerequisite is uninstalled for good.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”