valiot
Posts: 77
Joined: Tue Dec 04, 2012 1:41 am

Make updater.exe scheduled task permanent

I'm installing the updater.exe in a common folder location and I'm making it permanent. I have this working fine.
I also have a scheduled task associated with the updater.
How do I make the scheduled task permanent?
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Make updater.exe scheduled task permanent

Hello,

I'm afraid we don't have a predefined support for this. However, in order to achieve what you want you can proceed like this:
- Go to "Table Editor" page and select "InstallExecuteSequence" table.
- If the related scheduled task is configured for Windows XP, Windows 2000, then select the "AI_UninstallTasks" action row and set its "Condition" field like this:
  • Condition: (($updater.exe = 2) AND (?updater.exe = 3))
, which means that the above action will run only when the updater.exe component will be uninstalled
- If the related scheduled task is configured for Windows Vista, Windows 7, then select the "AI_UninstallTasks2" action row and set its "Condition" field like this:
  • Condition: (($updater.exe = 2) AND (?updater.exe = 3))
- Build and run your project.

Please keep in mind that our "Table Editor" feature is available only in an "Enterprise" or higher project type.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
valiot
Posts: 77
Joined: Tue Dec 04, 2012 1:41 am

Re: Make updater.exe scheduled task permanent

Thanks, this solved my problem.
valiot
Posts: 77
Joined: Tue Dec 04, 2012 1:41 am

Re: Make updater.exe scheduled task permanent

I have a related question.

If the updater.exe is on the system and the main app is uninstalled. What will happen on the next check for updates?
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Make updater.exe scheduled task permanent

Hello,

It will work as usual if its .ini file isn't uninstalled. Also, please keep in mind this is not a recommended approach.

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

Return to “Building Installers”