Old 17th January 2005, 14:58   #1
manyoka
Junior Member
 
Join Date: Dec 2004
Location: Jo-burg.South Africa
Posts: 14
Cool 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
manyoka is offline   Reply With Quote
Old 18th January 2005, 09:31   #2
VegetaSan
Senior Member
 
VegetaSan's Avatar
 
Join Date: Jan 2004
Location: The Netherlands
Posts: 260
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
code:

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)
code:

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.
VegetaSan is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump