AutoUpdater stays in background if update cancelled - Advanced Installer Community
thill
Posts: 111
Joined: Sat Jan 21, 2012 5:58 pm

AutoUpdater stays in background if update cancelled

Our LAN-based application requires the client to exactly match the server version. So our shortcut runs AutoUpdater that then executes our client app.

Easy using /silentall -nofreqcheck -showaitdlg (and the app args)

However, if the user cancels the update when that installer comes up the AutoUpdater stays in memory with no visible indication other than (hiding) in the system tray. Once that happens the application can no longer be started. If the application shortcut is run nothing happens and it appears to be badly broken.

Seems like a bug unless I'm doing something wrong.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: AutoUpdater stays in background if update cancelled

Hello,
Our LAN-based application requires the client to exactly match the server version. So our shortcut runs AutoUpdater that then executes our client app.

Easy using /silentall -nofreqcheck -showaitdlg (and the app args)

However, if the user cancels the update when that installer comes up the AutoUpdater stays in memory with no visible indication other than (hiding) in the system tray.
Please keep in mind that this is the normal behavior when using our "/silentall" command. The Updater won't display any UI. As a workaround you can try to use a command line like this:

Code: Select all

/silentall -nofreqcheck -showaitdlg -reducedgui
and see if this helps.
Once that happens the application can no longer be started. If the application shortcut is run nothing happens and it appears to be badly broken.

Seems like a bug unless I'm doing something wrong.
I'm not sure why this happens. To investigate this behavior we would need a sample or a detailed step by step test case which we can test on our side. So, if you could isolate the behavior in a buildable sample or if you could give us more information about how we can replicate this issue, this will be very useful.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thill
Posts: 111
Joined: Sat Jan 21, 2012 5:58 pm

Re: AutoUpdater stays in background if update cancelled

This is interesting ... a desktop shortcut runs the updater that then executes our Java application. The updates are triggered by version which works well.

If I use:
"... adminclient-updater.exe" /silentall -nofreqcheck -showaitdlg -restartapp adminclient.exe -restartappcmd http://IE8-SQLSimple:8080/

and the update installer is cancelled the updater itself stays in memory and the system tray. It also blocks any further execution. If the shortcut is clicked nothing happens.

But if I add the argument you suggest:
"... adminclient-updater.exe" /silentall -nofreqcheck -showaitdlg -reducedgui -restartapp adminclient.exe -restartappcmd http://IE8-SQLSimple:8080/

and the update installer is cancelled the updater exits.

A difference in the behavior is -reducedgui displays an error dialog when the installer is cancelled, whereas without the argument it does not. Seems like the updater isn't handling the return from the installer the same way without -reducedgui.

I do not have access to AI today. Let me know if you would like me to send anything or do something to help further. But I think the issue is resolved for us - it works!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: AutoUpdater stays in background if update cancelled

Hello,
If I use:
"... adminclient-updater.exe" /silentall -nofreqcheck -showaitdlg -restartapp adminclient.exe -restartappcmd http://IE8-SQLSimple:8080/

and the update installer is cancelled the updater itself stays in memory and the system tray. It also blocks any further execution. If the shortcut is clicked nothing happens.
I've tested the scenario, but I cannot replicate the behavior. To have a better view of your installation scenario, can you please send us the .AIPs (project files) of your old product version, of the upgraded product version and of the updates configuration project to support at advancedinstaller dot com so we can investigate its settings?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
thill
Posts: 111
Joined: Sat Jan 21, 2012 5:58 pm

Re: AutoUpdater stays in background if update cancelled

After making various changes - :arrow: some with the help of the excellent Advanced Installer Support folks - that issue has gone away. It's working great!

Return to “Common Problems”