InstallAware for Windows Installer
 

Schedule Task

This command schedules a task using the Windows Task Scheduler.

Task Name

Enter the name of your scheduled task here. Your task will be listed in the Windows Task Scheduler management interface under this given name.

Target Computer

Enter the name of the computer to schedule the task on. To schedule the task on the current computer setup is running on, leave this field empty.

When computer boots

Select this radio button to run the scheduled task every time the target computer boots.

When computer boots

Select this radio button to run the scheduled task every time the user logs on to the target computer.

Weekly

Select this radio button to run the scheduled task at the specified schedule.

The schedule is specified using the combo boxes found under the radio button. You may click the drop-down arrow in the combo boxes to choose your desired schedule.

You may also use variables in place of the hard coded values in the combo boxes, as long as the variables contain a value similar to one of the default values in the combo boxes. For instance, to schedule a task to run on Monday, as long as the variable entered into the combo box contains some form of the text monday, the scheduler will schedule the task to run on Monday.

Similarly, when using a variable to indicate your timing, use the same HH:MM AM/PM format that is found in the default combo box values. You are not restricted to using exact hours and may specify any minute.

Run if connected to Internet

Check this box to have the scheduled task run only when an Internet connection is available.

Interactive task

Check this box to indicate that the task runs interactively on the users desktop.

Run only when user is logged on

Check this box to have the task run only when a user is logged on to the scheduled system.

Run Program

Type the full path to the program that this scheduled task should run.

Working Directory

Type the full path for the startup folder of the program. Leave empty for the default (current) folder.

Command Line Parameters

If you will be passing any command line parameters to the program, enter them in this field.

User Name

If you wish to run the program under a different user account than the current logged on user, enter that account name here.

Password

If you entered a user account in the User Name field, enter the password for that account here.

 Notes

  • The scheduled task may not run if the task scheduler service is not running at the scheduled time.
  • If the task scheduler service is installed but not running when this command is called, the command starts the service automatically.