Skip to content
⌘ NSIS Forum Archive

Scheduling Tasks

6 posts

Sailo#

Scheduling Tasks

Does anyone know how to automatically schedule a task to run daily at a given time?
kichik#
With an extension DLL of course 😁

More information at:

thelliez#
Scheduling task

Just wondering if someone has already done task scheduling from NSIS.

Thanks
Thierry
kichik#
brainsucker wrote one:

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
atsuk#
i find this version of scheduling the easyest:

nsExec::ExecToStack `"at1.job" 9:00 /every:monday,tuesday,wednesday,thursday,friday,saturday,sunday "$INSTDIR\ExecuteMe.exe"`
######if you want to rename the task(that is usually at.exe)
######include the following lines in your script as well
 
Sleep 1000
exch
Pop $0
strcpy $1 $0 10 30
Push $1
Call TrimNewlines ;To cut the new line from the end of task name(don't forget to include function TrimNewlines
Pop $1
strcpy $2 "New name for the task"
Rename /REBOOTOK $WINDIR\Tasks\At$1.job $WINDIR\Tasks\$2.job