PDA

View Full Version : Double Reboot/Resume



NewsArchive
09-21-2010, 01:58 AM
I have an install program, installOne that depending on conditions will
optinoall call another install program, InstallTwo.
InstallTwo has a number of prerequists for the OS. The installers for the
requirements are bundled in InstallTwo. Some of these additional installs
require the system to be rebooted before the main part of InstallTwo can
complete.
I have no problem using reboot and resume in InstallTwo to continue after
the reboot. However, I want InstallOne to continue and complete after
InstallTwo completes even if there was a reboot during InstallTwo.

I have complicated ideas about InstallTwo recalling InstallOne when running
in resume mode but before I go down that road I want check here to see if
anyone has a suggestion.

To summarize:
InstallOne sometimes needs to call InstallTwo
InstallTwo depending on OS level, etc. needs install additional components
If these additional components are installed the system needs to reboot
before InstallTwo completes.
One InstallTwo completes after reboot I want to complete InstallOne.

I've probably just answered my own question with that summary :)

Any help is appreciated.
Rick

NewsArchive
09-21-2010, 02:01 AM
Rick,

> To summarize:
> InstallOne sometimes needs to call InstallTwo
> InstallTwo depending on OS level, etc. needs install additional components
> If these additional components are installed the system needs to reboot
> before InstallTwo completes.
> One InstallTwo completes after reboot I want to complete InstallOne.

I have developed and uploaded (binaries and source codes) a project to
demonstrate this reboot/resume process.

http://www.lindersoft.com/projects/reboot_2apps_demo.zip

Okay, how does it work? See attached screenshots.

1. InstallONE displays a "This is InstallONE (before the reboot)" message.
If you click the 'Next' button, the 1st installer launches (and waits for)
InstallTWO.

2. The 2nd installer displays "This is InstallTWO (before the reboot)"
message. If you click the 'Next' button, the 2nd installer returns '666'
(you can use your own return code here) to the calling 1st installer.

3. InstallONE reboots the Windows system and "resumes".

4. The reboot process "resumes" InstallONE which resumes InstallTWO.

5. After InstallTWO completed, InstallONE completes.

That's it <g>.

Does this help?

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder is Windows 7 installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
09-22-2010, 12:36 AM
>
> Okay, how does it work? See attached screenshots.
>
>
> Does this help?
>
Hi Friedrich,

I've been out most of yesterday and today. I'll check out your scripts.

Thanks,
Rick