Reino Posted September 19, 2004 Posted September 19, 2004 As you can see in the Windows XP Setup Timeline at First Logon it says:Both [GuiRunOnce]from winnt.sif and RunOnceEx executes at the same timeDoes this mean RunOnceEx.cmd automatically starts just like WINNT.SIF, or do I still have put it in WINNT.SIF like this?[GuiRunOnce]%systemdrive%\Install\RunOnceEx.cmd
MHz Posted September 19, 2004 Posted September 19, 2004 Runonceex.cmd is inserted into cmdlines.txt in $oem$ folder. This contains commands which are entered into registry.If you choose to install directly from batch script, the you would use the guirunonce in winnt.sif. Like code box that you have displayed.The msfn unattended guide is a good resource, for researching these 2 methods.
Reino Posted September 19, 2004 Author Posted September 19, 2004 You see I'm quit a noob with those scripts So with "batch script" you mean the language with "@ECHO OFF" and "start /wait"?Then how do you call the script language where you use:...?SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fAnyway...I use the batch script and so if I understand correctly I then don't want to put it into cmdlines.txt, but instead only in WINNT.SIF?
Alanoll Posted September 19, 2004 Posted September 19, 2004 if you have commands in your file that are for RUNONCEEX like you have, execute the CMD file from cmdlines.txt.If you instead use conventional batch scripting withstart /wait someprogram.exeThen use GUIRunOnce.The two run at the same time, but how they run is different. RunDLL32 executes the RunOnceEX keys the same time as GUIRunOnce, but the keys have to be PRESENT before it executes which is why they're imported at CMDLINES.TXT
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