Skip to content

Sys_MoveRunOnceValues

Moves the commands in HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce to HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce_Temp. This way the commands that an installation adds to RunOnce don’t wait for the next restart. Sys_ExecuteRunOnceValues runs them later in the package. Only string values are moved.

You don’t normally need to call this function. Job_PostInstallProcedure calls it.

Sys_MoveRunOnceValues() as Boolean

If bStatus Then bStatus = Sys_MoveRunOnceValues()

Scripting Guidelines

Sys_ExecuteRunOnceValues Job_PostInstallProcedure Constants Package Property Variables