Jacob Metro
2nd June 2003, 17:05
I have a question which I fear may not have a very good answer. Forgive me if I am repeating a question asked in this forum previously, I did query the forum but found no direct references to my question.
I want to install several different packages (or portions of a bigger package). Each of these packages (or portions thereof) make registry and environmental settings changes (and other things) and therefore require a reboot. These packages depend on each other to properly function.
Here's what I currently do. I have my user select the first package. He/She installs the first package upon which the system automatically reboots and prepares the system for the next package. My user then selects the second package. The system is rebooted after installation in like manner. My user then selects the final package. After installation the system reboots and is ready to use.
This system works fine.
Do to severe OS problems on any PC I've tested with, if I install all three packages without reboot the system hangs and refuses to load Windows (thanks to Bill Gates and his development team). [Of course, muchos cudos to him I can simply use the LAST KNOWN GOOD configuration option in Windows 2000/NT and be back to square one if that happens.]
What I'd like to be able to do is this. I'd like to be able to set a tag of some kind in my installer such that...
(Pseudocode):
SectionOne Finished then call SavePlace
SavePlace:
set variable PLACE = SectionTwo
reboot
restart installer MyInstaller.exe
StartOfInstaller:
Read variable PLACE
Place = SectionTwo
Turn off SectionOne goto SectionTwo
SectionTwo Finished then call SavePlace
SavePlace:
set variable PLACE = SectionThree
reboot
restart installer MyInstaller.exe
StartofInstaller:
Read variable PLACE
place = SectionThree
Turn off SectionOne and SectionTwo goto SectionThree
SectionThree Finished then call SavePlace
SavePlace:
set variable PLACE = "No More Sections"
reboot
restart installer MyInstaller.exe
StartOfInstaller:
Read variable Plave
place = "No More Sections"
Turn off SectionOne, SectionTwo, and SectionThree goto Section "No More Sections"
"No More Sections":
MsgBox "No more sections...stuff installed"
quit
Is this possible? I don't know of any installer off the top of my head which has this kind of reboot support. Can this be done with NSIS? Do you think an external DLL or program could do this?
I know this isn't a tremendously exciting question but I thought I'd throw it out since, I couldn't find a method myself.
Sincerely,
Jacob
I want to install several different packages (or portions of a bigger package). Each of these packages (or portions thereof) make registry and environmental settings changes (and other things) and therefore require a reboot. These packages depend on each other to properly function.
Here's what I currently do. I have my user select the first package. He/She installs the first package upon which the system automatically reboots and prepares the system for the next package. My user then selects the second package. The system is rebooted after installation in like manner. My user then selects the final package. After installation the system reboots and is ready to use.
This system works fine.
Do to severe OS problems on any PC I've tested with, if I install all three packages without reboot the system hangs and refuses to load Windows (thanks to Bill Gates and his development team). [Of course, muchos cudos to him I can simply use the LAST KNOWN GOOD configuration option in Windows 2000/NT and be back to square one if that happens.]
What I'd like to be able to do is this. I'd like to be able to set a tag of some kind in my installer such that...
(Pseudocode):
SectionOne Finished then call SavePlace
SavePlace:
set variable PLACE = SectionTwo
reboot
restart installer MyInstaller.exe
StartOfInstaller:
Read variable PLACE
Place = SectionTwo
Turn off SectionOne goto SectionTwo
SectionTwo Finished then call SavePlace
SavePlace:
set variable PLACE = SectionThree
reboot
restart installer MyInstaller.exe
StartofInstaller:
Read variable PLACE
place = SectionThree
Turn off SectionOne and SectionTwo goto SectionThree
SectionThree Finished then call SavePlace
SavePlace:
set variable PLACE = "No More Sections"
reboot
restart installer MyInstaller.exe
StartOfInstaller:
Read variable Plave
place = "No More Sections"
Turn off SectionOne, SectionTwo, and SectionThree goto Section "No More Sections"
"No More Sections":
MsgBox "No more sections...stuff installed"
quit
Is this possible? I don't know of any installer off the top of my head which has this kind of reboot support. Can this be done with NSIS? Do you think an external DLL or program could do this?
I know this isn't a tremendously exciting question but I thought I'd throw it out since, I couldn't find a method myself.
Sincerely,
Jacob