Command Reference

Move File on Reboot

Tells Windows to move a file from one location to another the next time that the system is rebooted.

Action ID: 74
Action Category: Reboot

Settings

Source

The path and filename of the file that you would like to move.

Destination

The path and filename that you would like the file moved to. Important: On Windows 95/98/ME systems, the destination cannot contain long path or file names, i.e., the destination path must conform to the DOS 8.3 naming convention. Windows NT, 2000 and XP do not suffer from this limitation; however, if your installer needs to run on Windows 95, 98 or ME, you will need to use the DOS 8.3 naming convention to ensure that the action will work for all users.

(More info)

Note: The destination directory MUST already exist when performing this action. If Destination specifies a path to a file, all of the folders included in the path must already exist. You can use a Create Directory action to create a destination directory if necessary.

Return Values

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 OK

 

1

Failed move file on reboot command.

Could not set value.
<<Source>>
<<Destination>>

Example

In this example, we will move a file from the user's temporary directory to %AppDir%. We are moving this file on reboot because it is our main executable and it was probably running during the installation.

Source (full path): %TempDir%\MainRun.exe
Destination (full path): %AppDir%\MainRun.exe

 

See Also: Alphabetical List of Actions, Categorical List of Actions, On Error tab