March 2, 200917 yr 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, 200917 yr by mvtowns
March 2, 200917 yr 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, 200917 yr by g-force
March 2, 200917 yr Author 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, 200917 yr by mvtowns
March 2, 200917 yr 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.
March 2, 200917 yr 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
Create an account or sign in to comment