Archive: Reboot in the middle of the installation


Reboot in the middle of the installation
Hey guys I realy need help.

I need the installer to reboot the computer halfway through the installation, wich I can do, but when the computer has been rebooted, the installer does not continue the rest of the installation,

Please try and help me.
Thanx so much.
Manyoka


Make 2 Installers ?

Installer1.exe: Who's installs some things and reboots
Installer2.exe: This Installer is going to be runned after the reboot. Use a register key, for getting the Installdirectory of Installer1.exe.

You at least need something like this in Installer1.exe, For letting Installer2.exe run at windows startup


WriteRegStr HKLM "Software\Microsoft\Windows\Currentversion\Run" "My_Installer" "$SYSDIR\Installer2.exe"


And remove the key that causes Installer2.exe to run on startup(This needs to be in Installer2.exe)

DeleteRegValue HKLM "Software\Microsoft\Windows\Currentversion\Run" "My_Installer"


Be carfull with the reboot. If it fails, use the .onRebootFailed function. And maybe there is some other way of doing this, but not that I know.