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!

DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

Version Issues

Hello,

I have a big issue regarding uninstalling a previous version. I had to change the install type for the new versions because of the issue with install paths (current user installs).

The previous version used install type "per-machine if user is administrator, per-user otherwise", i had to change to "per-machine only (fails if user is not administrator)".

Also i added a "uninstall previous versions" custom action.

I'm guessing the previous version is not being removed is because i didn't have this custom action yet.

I really need to able to install the new version and to uninstall previous version automatically. For newer versions the "uninstall previous versions" custom action works just fine paired "uninstall a package with same version (if found) this means always a clean install, correct?

For purpose of example the versions are 1.1.2 (old version) and 1.1.3 (new version with custom action and new install type).

Is there a way for me to always remove the version 1.1.2 automatically when installing 1.1.3 or above..

UPDATED:
Previous versions are in fact being uninstalled the issue is my other pc must something wrong with the registry, since no matter where i choose to install he always installs in same place. I tested it on a clean pc it works, only the cancel issue remains.


Thank You!
Last edited by DiegoCP on Tue Jan 02, 2018 5:54 pm, edited 1 time in total.
DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

Re: Version Issues

Hello,

One more question regarding "uninstall previous versions" custom action.

I have that custom action running right after user clicks install. This works great for most cases since our installer lets user install for all users and currenct user. The issue is if the user click cancel when the custom action is running, and that leaves the previous install there.
Which can make user have two app's installed at same time in different places.

Is there a way of cancelling or aborting install if user cancels custom action???


Thank You for your support.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Version Issues

Hi,

I'm afraid that the installation of the new version cannot be aborted if the "Uninstall previous versions" custom action is canceled. This is not possible because of the design of that custom action.

In order to achieve what you want, you can create you own custom action that removes the previous versions silently based on the upgrade code of the product. In this case, the uninstallation process will not be displayed and the use will not be able to stop it anymore.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

Re: Version Issues

Hello,

Thank You for Help!

I will try this custom action for my build!

For example, when i install a higher and install a lower version on top of it (not sure how this was possible but have confirmed it), now with the current settings i get a message "a more recent version is already installed", is there anyway around this without ruining upgrades. Also why does this message only show on "all users" installations (programFiles)?

Thank you for your time and help!


Best Regards,
Diego.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Version Issues

Hi Diego,

I'm not sure how you were able to install a lower version over a newer one, but this is against the Windows Installer upgrades rules. This is, however, possible, if you choose to install your packages side by side by selecting this option in the "Upgrades" page.

I'm afraid I do not fully understand how that message is displayed only for the "all users" installations. Can you please give me more details?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”