Restart

Invoked to indicate that the computer has to be restarted to apply the changes.

Parameters:

(none)

Remarks:

This function will not restart the computer directly, it will just set a flag. If it's set, X-Setup will display a message to the user on program exit, if the computer should be restarted.

Example:

Call RegWriteValue("HKCU\Software\TestVal1","Yes",1) 'write Data
Call Restart 'need restart!