matt.luthi@gmail.com
Posts: 44
Joined: Thu Jun 20, 2013 4:42 am

Updater started by scheduled task not working

Hi, our updater is started every x period using a scheduled task (as System). I can see it running in the process list but it fails to update - it just runs but never ends (is it waiting for user input?). When I "kill" the process, and then start updater manually, it works fine and upgrades the application.

Any ideas are greatly appreciated.

Thanks & Regards,
Matt
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Updater started by scheduled task not working

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Can you please try to configure your updater scheduled task to run the updater silently and see if the behavior still persist? Also, you should configure your updates configuration project to start the upgrade package in silent mode.

In order to achieve that you can go in the “Task Properties” => “Task” tab and in the “Command Line:” field you can set:

Code: Select all

/silentall
This means that the Updater will search silently for updates and automatically install all updates.

In order to enable an installation without UI of the updates you should set the “Command Line” field, from your update configuration project -> Updates page -> Proprieties tab -> “Update Installer section, like this:

Code: Select all

/qn
This means that no UI will be showed during the installation.

If the behavior still persist can you please send us the .AIP (project file) to support at advancedinstaller dot com so we can investigate it?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
matt.luthi@gmail.com
Posts: 44
Joined: Thu Jun 20, 2013 4:42 am

Re: Updater started by scheduled task not working

This is going a bit better now.

But I have now a new problem with the ini file for the updater. Please look at the contents of the .ini file below, in particular the "DownloadsFolder". The way this is set is not consistent. When a user installs the application the first time, the path points to the %user%\AppData\Roaming\Capisce\Capisce Client\updates\ folder. However, our updater runs as "SYSTEM", so after the "SYSTEM" installs the next version/upgrade, the setting is as below, and that will fail the updater when it runs with the new version for the version following it. Hope I am making sense.

The settings for the "Downloads" folder on the updater page is: [AppDataFolder][Manufacturer]\[ProductName]\updates\

[General]
URL=http://capisce/CapisceSendServer/updates/updates.txt
DownloadsFolder=C:\Windows\system32\config\systemprofile\AppData\Roaming\Capisce\Capisce Client\updates\
DefaultCommandLine=/silentall -nofreqcheck
ApplicationVersion=1.1.29
ID={D5DBF6AE-2D8D-40A0-96DA-AE32CCD4ADE8}
ApplicationName=Capisce Client
CompanyName=Capisce
AppDir=C:\Program Files\Capisce\Capisce Client\
Flags=NoDisableAutoCheck

Thanks,
Matt
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Updater started by scheduled task not working

Hello Matt,

Can you please set "Downloads updates in this folder" field from "Updater" page to a per-machine location (i.e. [CommonAppDataFolder][Manufacturer]\[ProductName]\updates\) and see if the behavior still persist?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
matt.luthi@gmail.com
Posts: 44
Joined: Thu Jun 20, 2013 4:42 am

Re: Updater started by scheduled task not working

Hi Daniel, thanks for your help - yes - this fixed the issue, thanks.

Matt
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Updater started by scheduled task not working

You're welcome. I'm glad you got this working.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”