![]() |
Execute script after reboot automatically
Hi,
I have to execute a part of the installation after a reboot. That means, some files are installed, the system is rebooted and after the reboot the installation process has to be continued. So my question is: how can I define a NSIS-script that is executed after rebooting? Oxyyy |
You can add your installer in RunOnce key of regestry. Execute your installer with parameter which can tell you about computer's restart.
|
Or even write a registry key to tell your installer that the PC was just rebooted (remember to remove it afterwards!)
-Stu |
Quote:
|
Try CopyFiles on itself. If this doesn't work (I doubt it will) then you need to write another installer to do it. This other installer will contain the following:
code: So you should include this file as any other file, extract it to $TEMP and execute it from there with "$INSTDIR" as the parameter. Ideally the installer should Exec it and then Quit immediately. Also you need the GetParameters function in the script (which you can grab in the docs under Useful Scripts). -Stu |
| All times are GMT. The time now is 04:56. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.