codesynergy
Posts: 100
Joined: Fri Nov 14, 2014 10:29 pm

Minor Upgrades Have No User Interface

Hi. This is a question that i think might turn into a feature request.

When performing a minor upgrade (not a patch), no user interface is displayed, and there is nothing to suggest that a minor upgrade occurred and that it finished (I couldn't tell if there was a progess dialog, as my installation finished so quickly). In my opinion, this makes minor upgrades almost useless (even if there is a progress dialog). My question: is there any way to display some sort of interface that tells the user they are performing a minor upgrade and that the upgrade has finished? I think the answer is no, as this thread mentions (from 2011): http://www.advancedinstaller.com/forums ... =2&t=18436. Best i can tell, it looks like the setup bootstrapper is using a command similar to:

Code: Select all

msiexec /fvomus <path to msi> AI_SETUPEXEPATH=<path to exe> SETUPEXEDIR=<path to exe dir> EXE_CMD_LINE="/exenoupdates /exelang 0 /nopreqs "
Using /fvomus performs a repair, which results in no user interface. InstallShield's bootstrapper command for minor upgrades looks something like:

Code: Select all

msiexec /i <path to msi> REINSTALL=ALL REINSTALLMODE=vomus IS_MINOR_UPGRADE=1 SETUPEXEDIR=<path to exe dir>
Using /i REINSTALLMODE=ALL and REINSTALLMODE=vomus results in a minor upgrade that utilizes a user interface. InstallShield also adds a dialog asking if you want to perform an upgrade, which is nice. This appears to be an extra dialog (a basic yes/no messagebox-type dialog) they added to their bootstrapper.

So, shouldn't AI's boostrapper be using a command more similar to InstallShield for minor upgrades, so the msi's user interface is displayed? If I extract the msi from the AI boostrapper and run it with /i REINSTALLMODE=ALL and REINSTALLMODE=vomus, it looks like the minor upgrade works fine, and it has the user interface.

In the end, I think some sort of interface is needed that:
- Indicates an upgrade is occuring.
- Indicates progress.
- Indicates when the upgrade has finished with a finish dialog.
...whether it is implemented by the bootstrapper or the command the boostrapper passes to the msi.

I was testing the best way to deliver updates and upgrades to our users. I think not having a user interface rules out minor upgrades as an option. Though, I may be able to hack together a custom action to work around this. Thoughts?

Thanks.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Minor Upgrades Have No User Interface

Hi,

Indeed, we do not have this option yet, but I added this improvement on our TODO list and it will be available in a future version of Advanced Installer. Thank you for your suggestion.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
codesynergy
Posts: 100
Joined: Fri Nov 14, 2014 10:29 pm

Re: Minor Upgrades Have No User Interface

Thanks for the reply. I look forward to the addition of this feature in the future. For anyone else that might need a work around, I think something like this will work (I haven't fully tested this yet):

• Add a "Display message box" custom action to the beginning of the execute phase to prompt the user if they want to upgrade. Set the "Oputput property" field to BTN_MINOR_UPGRADE (or whatever you want).
• For execution conditions, check the "Maintenance" box and set the "Condition" field to REINSTALLMODE="vomus". These conditions may need tweaked.
• Add a custom action after this one that will cause the installer to exit if the user selected "No" to the upgrade prompt. I wrote a simple custom action that just returned ActionResult.Failure.
• For execution conditions, check the "Maintenance" box and set the "Condition" field to REINSTALLMODE="vomus" AND BTN_MINOR_UPGRADE="IDNO".
• Add another message box custom action to the end of the execution phase to display when the upgrade has finished. Same execute conditions as the first message box.

You don't get the nice installer dialogs using this method, but as least you can inform the user that an upgrade is occurring and when it finishes.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Minor Upgrades Have No User Interface

Hi,

Thank you for sharing your solution with us, I'm sure it will help other users in the future.

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

Return to “Building Installers”