Scheduled Task Advanced Settings - Advanced Installer Community
visualsi
Posts: 40
Joined: Fri Oct 14, 2011 4:16 pm

Scheduled Task Advanced Settings

Hi,

We are creating scheduled tasks and would prefer to not have a separate set of "post-installation instructions" for our users to follow.

We need to set the "Delay task for up to (random delay):" parameter when we create a scheduled task. In the current screen for creating scheduled tasks, there is only options to set the very basics for a schedule. Has anyone been able to get to any of the "Advanced Settings" (well, this one in particular)?

Thanks,
Rob
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Scheduled Task Advanced Settings

Hi Rob,

I'm afraid that any other customizations you need to be applied on your scheduled task require you to create a custom action, that should run after "Add Resources" group, visible in Custom Actions page.

The following forums thread discusses a similar request.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
visualsi
Posts: 40
Joined: Fri Oct 14, 2011 4:16 pm

Re: Scheduled Task Advanced Settings

I ALMOST got around this.

By creating the XML file as a "Type = XML File (Windows Installer)", including things like setting the priority to exactly what i want it to be, the Operating System type to what I want, etc. based on user input, this gives me something that can be used as an import file into the task scheduler. It works very well when I manually import it into the scheduler.

Unfortunately, if I go to the "Scheduled Task" section in AI, it will not let me use this file the same way it would let me use a physical XML file.

Is this something that can be changed in AI? Users really hate to get an installer PLUS a separate list of post installer install instructions. Makes it look like a junk installer.

Thanks,
Rob
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Scheduled Task Advanced Settings

Hello Rob,

We'll try to add an improvement regarding this in a future version of Advanced Installer. Thank you for your suggestion.

However, as a a workaround, if you want to create a scheduled task using an XML file added in "Files and Folders" page then you can use a custom action which will launch the Schtasks.exe tool with a proper command line. The custom action should be added after "Install Execution Stage -> Add Resources" actions group and should run as deferred with no impersonation.

Please take a look on the "Time Trigger Example (XML)" article which should be useful for you.

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

Return to “Common Problems”