It took me a bit to realize why it was failing with the same message over and over even though that line with the bug was modified.
I came to the conclusion that it wasn't the new installer that was failing, but the old one.
On upgrades i have: Initially the order was Uninstall old version first and then install new version.
But i tried to switch it up to see if it has any effect.
I've tried also `Allow side by side installs of different product version` but it still seems to execute the old installer.
I'm also unable to install the old version of the installer via Programs and Features / Add or Remove Programs.
It rollsback, like it does when i try to install the new installer.
And is all because of the old installer's customAction bug.
Inside customAction there are some methods that copyFiles, search for folders, add / remove registry
The search for folder fails due to a code bug in which it searches for folders to get the installed versions.
The bug: (i didn't wrote this)
Code: Select all
path.Substring(path.LastIndexOf("2"), 4);
Code: Select all
path.Substring(path.IndexOf("20"), 4);
I managed to uninstall it using windows fix-it tool but that doesn't help me.
I managed to uninstall it also by removing the 2020 version of the software i'm looking for in the system.
But neither of this options are good.
Is there a way to force remove the old installer using the new installer?
I'm using Advanced Installer Version 13.1 build 71115 with Enterprise license.
FOLLOW US
Get the latest news in Application Packaging