Sign in to follow this  
Followers 0
bigfatroundguy

Scripting Installs that require intermediate reboots

3 posts in this topic

I am trying to script the install of NSW but am stuck on how to continue after the reboot. I have code within my script that writes entries to RunOnceEx so that a second script starts up after reboot but I have not discovered how to get both the second script and remaining portion of the NSW install to continue. It appears that RunOnceEx executes programs sequentially - my second script loads at reboot and waits for a window to appear that belongs to the remaining NSW installation, however, a window never appears because the second script that gets loaded and executed doesn't finish. Any ideas?

Share this post


Link to post
Share on other sites



I am trying to script the install of NSW but am stuck on how to continue after the reboot. I have code within my script that writes entries to RunOnceEx so that a second script starts up after reboot but I have not discovered how to get both the second script and remaining portion of the NSW install to continue. It appears that RunOnceEx executes programs sequentially - my second script loads at reboot and waits for a window to appear that belongs to the remaining NSW installation, however, a window never appears because the second script that gets loaded and executed doesn't finish. Any ideas?

Try using the RUN regkey because i believe that the RunOnceEx runs before all other programs start.

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Thank you for your suggestion. I did try that and it didn't work, however, it was the clue I needed as it inspired me to investigate and try all the other "Run" keys. With the results in, "RunServicesOnce" is the clear winner! Basically, I loaded AutoIt Info Window through RunServicesOnce and it loads prior to the additional NSW code that loads following the reboot. It gave me all the correct control identifiers to complete the "post reboot" script. Then I altered the "pre reboot" script to load the "post reboot" script through RunServicesOnce and we are good to go. Thanks again.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0