We have created an application which is installed using Innosetup. Marketing have now decided to rebrand the application ("NewAppName"), so we are in the process of updating our installer for the rebranded app. We can install the new app, but what we also want to do is uninstall any old versions ("OldAppName") of the app that may be installed (note. we only support 64bit).
What I need the Inno-Setup to do is:
If I look at my personal installation, I can see that both installed apps are located in the same folder (not sure if can navigate to the OldApp uninstaller from the NewApp location):
C:\Program Files\MyCompany\OldAppName\unins000.exe (Uninstaller path)
C:\Program Files\MyCompany\NewAppName\unins000.exe (Uninstaller path)
With complex upgrades, sometimes the appropriate solution is to uninstall the existing package and then install the new version. This is the purpose of UninsIS.dll:
https://github.com/Bill-Stewart/UninsIS
It provides version comparison functionality and the ability to uninstall the existing installed version based on your application's requirements.