koutnypetr
Posts: 10
Joined: Mon Jan 22, 2024 3:27 pm

Updater.exe keeps running in case of error

Fri Jan 26, 2024 4:26 pm

Hi,

I am having a following situation:
- app running as Windows Service
- Updater enabled and configured to support silent updates via Support service
- manually creating a scheduled task in Powershell custom action to periodially run the Updater

In case everything is fine then the update process works quite smooth. All good here.

BUT when the scheduled task is triggered and there is some kind of a problem during update process (e.g. invalid installer url in "updates.txt" so it cannot be downloaded) then Updater.exe hangs forever and scheduled task does not run next time as Updater cannot run in multiple instances. This is a showstopper for us as it is definitely not a reliable behavior.

What do you suggest, please?

Dan
Posts: 4513
Joined: Wed Apr 24, 2013 3:51 pm

Re: Updater.exe keeps running in case of error

Sun Jan 28, 2024 5:54 pm

Hi,

Please make sure you define proper settings for the scheduled task, as you can configure the task in case of a failure.
ScheduledTask Settings.png
ScheduledTask Settings.png (55.12KiB)Viewed 18746 times


Check the New-ScheduledTaskSettingsSe options.

Another approach that you can use is withing your application, periodically check to see if any check for updates process was triggered, check its start date and if it takes longer than a specific time, you may consider that the task had failed and close the Updater's process.

Let me know if you need any help.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

koutnypetr
Posts: 10
Joined: Mon Jan 22, 2024 3:27 pm

Re: Updater.exe keeps running in case of error

Mon Jan 29, 2024 8:43 am

I have tried but Windows does not seem to care, the process keeps hanging. It is clearly a poor design of error handling within Updater app. I have found out that it manifests a faulty behavior when updates file contains invalid url of the installer to be downloaded. When can I expect it to be fixed please?

Regarding your second thought - nope, not going to happen. We cannot change the app with the installer stuff.

koutnypetr
Posts: 10
Joined: Mon Jan 22, 2024 3:27 pm

Re: Updater.exe keeps running in case of error

Mon Jan 29, 2024 4:26 pm

I have found out the root cause - I was missing the "-nogui" switch.

So I think this page should be adjusted as well :-)
https://www.advancedinstaller.com/user- ... dates.html

Liviu
Posts: 1026
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: Updater.exe keeps running in case of error

Tue Jan 30, 2024 1:19 pm

Hello,

Thank you for your followup on this.

It's great to hear that everything is now working as expected.

We will try to improve our articles, thank you for your suggestions.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”