Cmd line execution do not Uninstall previous version when upgrade. - Advanced Installer Community
rbarros-symphony
Posts: 8
Joined: Mon Jun 05, 2017 4:31 pm

Cmd line execution do not Uninstall previous version when upgrade.

Problem description - Uninstall Previous Version custom action do not works on cmd line silent installation.

How to reproduce ?
1. Having two consecutive installer, one with version 1.0 and another with 1.1, allowing installation for Single or all users, including Uninstall Previous Version Custom Action on Wizards Dialog Stage and Install Execution Stage.
2. Install version 1.0 as Single user. Doesnt matter if using wizard or cmd line install.
3. Using cmd line instalation, silently install version 1.1 for All users.
4. Check on Add/Remove programs, both versions are listed.

When doing step 3 with Wizard UI, previous version is correctly uninstalled and is no longer shown on step 4.

Environment - Windows 10. Log file indicates that Uninstall Previous Version Custom Action run with RC=1 but previous version was not uninstalled.
This has been asked on http://www.advancedinstaller.com/forums ... =5&t=34401 but proposed workaround is not feasible due to multiple previous version we have. This has been tried on latest available version of Advanced Installer, with same result.
Attachments
symphony_install.log
(35.18 KiB) Downloaded 236 times
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Cmd line execution do not Uninstall previous version when upgrade.

Hello,

Please see my reply on this topic: Uninstall previous version when upgrade from cmd line
When doing step 3 with Wizard UI, previous version is correctly uninstalled and is no longer shown on step 4.
As I said in the previous mentioned topic, an uninstall could not be triggered in Silent mode because of a Windows Installer limitation - two installation processes could not run at the same time.

If the UI mode is used, the "Uninstall previous versions custom action" is launched in "Wizzard Dialogs Stage". In the silent mode, only the sequence from "Install Execution Stage" is executed. Unfortunately you cannot move the the "uninstall previous version" custom action on the "Install Execution Stage" because of the Windows Installer limitation I mentioned earlier.

Please try to use the workaround I presented in the previous topic.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”