Uninstall previous versions - Advanced Installer Community
NMind
Posts: 3
Joined: Tue Feb 07, 2017 6:54 pm

Uninstall previous versions

We have migrated from per machine to per user. The updater is not removing the previous version and the instructions on using a Custom Action do not seem to do anything.

Here is the Verbose log:
MSI (s) (3C:60) [13:06:55:330]: Doing action: UninstallPreviousVersions
Action start 13:06:55: UninstallPreviousVersions.
MSI (s) (3C:A8) [13:06:55:332]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSIDA61.tmp, Entrypoint: UninstallPreviousVersions
MSI (s) (3C:F4) [13:06:58:382]: Running as a service.
Action ended 13:06:58: UninstallPreviousVersions. Return value 1.


But the old version still remains

Figured it out (with the help of Dan)! You have to add the custom action before "Wizard Dialogs Stage > Paths Resolution". That alone did not solve my issue. Under Install Parameters we had a check on "Limit to basic user interface"; this was preventing the uninstall from having a chance to run before the msi package ran for the install (can't have two running at once). We will add the check back to limited UI after this release when the install types (machine vs user) will match once again.

Hope that helps someone.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Uninstall previous versions

Hi and welcome to our forums.

Thank you for sharing the solution on the forums. I'm sure it will help other users in the future.

Just let us know if there is anything else that we can help you with.

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

Return to “Common Problems”