Flexipoint Posted December 22, 2005 Share Posted December 22, 2005 I have some applications I want to put in a RunOnceEx script, but some of them need to reboot before I can install something else.Is there a way I can reboot and pick up where I left ?Or is there another way ? Link to comment Share on other sites More sharing options...
Wesmosis Posted December 22, 2005 Share Posted December 22, 2005 I think I heard of Multiple RunOnceEx.cmd Link to comment Share on other sites More sharing options...
Flexipoint Posted December 22, 2005 Author Share Posted December 22, 2005 OK, but does that work with reboots ?Which value do I have to write into the registry so that on the next logon he executes the next RunOnceEx ? Link to comment Share on other sites More sharing options...
LostGhost Posted December 22, 2005 Share Posted December 22, 2005 (edited) I have some applications I want to put in a RunOnceEx script, but some of them need to reboot before I can install something else.Is there a way I can reboot and pick up where I left ?Or is there another way ?Try it with Windows Unattended CD Creator. It supported multireboot!http://www.vitaligraf.de/WUCDCreatorSetup-0.9.8.exeVideoTutorial:http://www.vitaligraf.de/video/tutorial.divx521.avi Edited December 22, 2005 by LostGhost Link to comment Share on other sites More sharing options...
jondercik Posted December 22, 2005 Share Posted December 22, 2005 RunOnceEx will automatically pick up the next item in line after a reboot. Entries are not cleared till they have executed. Link to comment Share on other sites More sharing options...
drscouse Posted December 22, 2005 Share Posted December 22, 2005 True... I have a 3 part roe sequeunce.. install drivers, then reboot, and it carries on with whatever came next in original lisit... I then install apps and finally a new list for regtweaks (which avoids having one huge list of installs) Link to comment Share on other sites More sharing options...
MAVERICKS CHOICE Posted December 22, 2005 Share Posted December 22, 2005 (edited) Just a quick cmd file call it reboot.cmd will do & call it after the last app you installed prior to the reboot you need in runonceex.CLS@echo offECHO.ECHO Restarting the PC in approx...Ten Seconds....psshutdown.exe -r -t 10 -f -m "Windows XP will now restart in Ten Seconds,now rebooting!"EXITCheersMC. ps.You will of course need psshutdown.exe a simple search & DL will procure that for you tho. Edited December 22, 2005 by MAVERICKS CHOICE Link to comment Share on other sites More sharing options...
nakira Posted December 22, 2005 Share Posted December 22, 2005 (edited) @ MAVERICKS CHOICEYou can use shutdown.exe just as easilyshutdown -r -f -t 10 -c "Restarting" Edited December 22, 2005 by nakira Link to comment Share on other sites More sharing options...
MAVERICKS CHOICE Posted December 23, 2005 Share Posted December 23, 2005 @ MAVERICKS CHOICEYou can use shutdown.exe just as easilyshutdown -r -f -t 10 -c "Restarting"Yes and its native to xp but I just prefer ps thats all OK. Link to comment Share on other sites More sharing options...
Wesmosis Posted December 29, 2005 Share Posted December 29, 2005 does psshutdown.exe shows a worm-like windows warning ya from your system being restarted?! Link to comment Share on other sites More sharing options...
Vadikan Posted December 29, 2005 Share Posted December 29, 2005 (edited) @Wesmosisdoes psshutdown.exe shows a worm-like windows warning ya from your system being restarted?!I think you already asked similar question and got plenty of answers including this one. Edited December 29, 2005 by Vadikan Link to comment Share on other sites More sharing options...
ponghy Posted April 14, 2007 Share Posted April 14, 2007 (edited) I bump this topic since I'm experimenting an issue when rebooting at the RunOnceEx stage.I've properly setup the needed entries into the Registry in order to run my tasks, and the last task is the reboot.Okay, you know Windows runs some tasks in the First Run after the user logs on, in order to configure Desktop, Internet Explorer, Themes Setup, and so on. When the reboot begins, I notice Windows WANTS to launch the tasks I've mentioned (configure Desktop, Internet Explorer, Themes Setup, i.e., the First Run), but the reboot takes place and all tasks are FORCED to stop and close, producing the appearing (sometimes) of an Error message box with the following text (more or less):'DLL initialization error: Application failed to initialize because the application window was closed...'. Sometimes, a blank message box appears with the following title 'Custom Settings'. Both boxes disappears in less than 1 second, but this issue generates an error in the Event Viewer with the Source name "Application Popup".If I remove the reboot process in the RunOnceEx stage, these errors are NOT generated (checked), but a reboot is necessary because I install programs which require it.I think the reboot task is not suitable if the "First Run" tasks are scheduled to launch AFTER the RunOnceEx keys are processed (and Windows always do this, check it out). My question is:Is there any way to avoid "The First Run" tasks the first time the user logs on to the system, then in the RunOnceEx stage prepare the Registry (or whatever) in order to schedule these tasks for the SECOND logon and finally reboot the system. In this way, Windows would not be forced to shutdown in an unpolite way.Any ideas? Anyone has been experimenting this issue? I'm using Windows XP SP2 Pro with latest hotfixes integrated with nLite (the RunOnceEx stage is configured by me).Thanks for any answer to this hard question, I know PD: I'm using the UnattendSwitch=Yes directive in WINNT.SIF, so no OOBE is launched after Windows is installed. The RunOnceEx stage runs immediately.EDIT: I have found the Registry key corresponding to these components (Desktop, Themes Setup, ...). It is:HKLM\SOFTWARE\Microsoft\Active Setup\Installed ComponentsAny way to prevent this run? Edited April 14, 2007 by ponghy Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now