mvtowns Posted March 2, 2009 Posted March 2, 2009 (edited) I have used nlite to create an unattended install, when install is done and desktop appears, I have to reboot for the runonceex.cmd file to run. my question is there a way I can have XP autot reboot before it runs the runonceex.cmd so I do not have to manually reboot.Maybe another .cmd that my cleanup.cmd will delete when setup is finished? Edited March 2, 2009 by mvtowns
g-force Posted March 2, 2009 Posted March 2, 2009 (edited) I think another reboot isn`t the goal to achieve, cause it`s not needed at this time.Question is why your "runonceex.cmd" doesn`t run before desktop is loading the first time?Where is the "runonceex.cmd" and how is it executed?Edit: Didn`t see your edit - is the problem solved? Edited March 2, 2009 by g-force
mvtowns Posted March 2, 2009 Author Posted March 2, 2009 (edited) Ok my RunOnceEx.cmd is in $OEM$\$1\Installin my winnt.sif last line reads[GuiRunOnce]%systemdrive%\install\RunOnceEx.cmdI just made a reboot command and places in front of it[GuiRunOnce]%systemdrive%\install\reboot.cmd%systemdrive%\install\RunOnceEx.cmdI would rather the RunOnceEx.cmd run on install, but for some reason I have to reboot for it to work Edited March 2, 2009 by mvtowns
g-force Posted March 2, 2009 Posted March 2, 2009 Place the "runonceex.cmd directly in $OEM$.If you already worked with nLite, there`s a "comandlines.txt" in this folder, otherwise create one.Add a line in this file like "runonceex.cmd" - no path is needed because it`s in the same folder.
mvtowns Posted March 2, 2009 Author Posted March 2, 2009 (edited) hmmm that didnt work Edited March 2, 2009 by mvtowns
iamtheky Posted March 2, 2009 Posted March 2, 2009 mine are in $oem$\install - not in the $1I also have all my stuff 8.3 but thats more force of habit, so mine is called runonce.cmd but inside I stillSET REGKEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExas well no references are needed in the .sif file, i use the following so it reboots and logs on[GuiUnattended] EncryptedAdminPassword=NO AutoLogon=Yes AutoLogonCount=1 OEMSkipRegional=1 OEMSkipWelcome=1
mvtowns Posted March 2, 2009 Author Posted March 2, 2009 Thanks for all the reply's. The cmdlines.txt worked great!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now