Updater Issue When No Updates Required - Advanced Installer Community
hawkeyedriver
Posts: 1
Joined: Wed Sep 24, 2014 1:01 am

Updater Issue When No Updates Required

We have an application, and what we want to do is:

1. Point a shortcut at updater.exe so that an update check is performed at each launch.
2. If the update is ignored, we launch the primary application
3. If the application is updated, then the application is launched after the upgrade

the problem we have is that by pointing to updater.exe, if no upgrade is required, it simply stops, and there are no mechanisms with which to simply launch our primary app.

Does anyone have any suggestions as to how we can fire the updater directly from an Icon, allow the updater to function or be delayed, and in all cases, launch our primary installed app once that process is complete, in a way that does not require us to add anything into our code?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Updater Issue When No Updates Required

Hi and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.
1. Point a shortcut at updater.exe so that an update check is performed at each launch.
In order to achieve what you want, you can follow the Deploying Updates tutorials. In those tutorials is described how to enable the Updater and create a shortcut for it. You will also find how to create a configuration file for it.
2. If the update is ignored, we launch the primary application
I'm afraid that we do not have predefined support yet, for launching the primary application when the updater shortcut is executed and no updates are found. This is already on our TODO list and it will be available in a future version of Advanced Installer.

However, you can achieve this by integrating the updater in your application, so when the application is launched, it will firstly check for updates and prompt the user if updates are found, otherwise it will continue running. This is described in our How do I integrate the Advanced Updater with my application tutorials.
3. If the application is updated, then the application is launched after the upgrade
In order to set your application to be automatically launched after update, you can go in the "Update Configuration" project, "Auto Close Application" tab, then add the path to your application and set the "Restart Always" flag for it.

Let us know if this helped, otherwise give us more details about your scenario.

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

Return to “Common Problems”