Hello all!
I´m facing an odd situation and I´d like to ask if someone has already seen something like this and can give me some help:
I have an installer that on previous version only allow user to install as single user.
An update was created in order to allow user to install as single user or all user.
In order to have previous version uninstalled, I have set a custom action UnistallPreviousVersion just after InstallTypeDlg.
This works like a charm when user is installed through UI and selects to install as All Users.
When user is installing through cmd line though, it does not uninstall the previous version when installing as All User. So, I ended with 2 registers on Add/Remove apps.
Is there any way to force uninstalling previous version when doing an install? I checked on Upgrades and Automatically upgrade older product version is set.
I have also tried to add a RemoveExistingProducts on Install Execution Stage but this does not seem to have any effect in my case.
I really appreciate any help on this.
Thanks!!!