mhorowitz
Posts: 12
Joined: Sat Jul 26, 2008 7:11 am

Is there a way to streamline the installer process?

I think the best way to explain what I'm asking is to paste what my product manager said to me:
On a related note, the installer upgrade experience seems not to really understand that I'm upgrading installed software rather than doing a fresh install. In particular, I get asked questions for which I've already chosen answers (install directory, whether I want desktop/quick launch shortcuts, run after install) -- these should really be suppressed.

So putting this together, it seems like auto-update should have some way of understanding that it's updating a currently installed program, that would modify the installation dialogs so that
* User is not prompted for install directory or desktop/quicklaunch shortcut options
* If MixApp is currently running, user gets a clearer message like "I need to close MixApp for a moment to upgrade, is that cool?" with okay/cancel buttons
* Then when install is done, a success dialog appears with a "Relaunch" button.
It looks like the second bullet is addressed by http://www.advancedinstaller.com/forums ... 78&p=14885 but is there a way to deal with the first or third? Could this be handled by custom actions without too much work, perhaps? Thank you.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Is there a way to streamline the installer process?

Hello,
So putting this together, it seems like auto-update should have some way of understanding that it's updating a currently installed program, that would modify the installation dialogs so that
* User is not prompted for install directory or desktop/quicklaunch shortcut options
What you can do is conditionally display the FolderDlg depending on whether the installer is doing a fresh install, or an upgrade. For more details about that, you can consult our guide: Conditionally displaying an install dialog.
You can use the UPGRADINGPRODUCTCODE property to detect whether the installer is doing an upgrade or a fresh install.
* Then when install is done, a success dialog appears with a "Relaunch" button.
If you want an automatic restart of the application, without the user prompt, you can follow these steps:
- in your Updates Configuration project, add or select an update
- in the right Properties pane, in the "Auto Close Applications" section, press New
- select your main executable path
- please make sure you have "Disable Auto Restart" checkbox unchecked if you want your application to restart after the update has been applied

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”