jiggles19c Posted March 27, 2006 Posted March 27, 2006 Hi All,I've been at this for a couple of weeks now and I'm getting frustrated...I've setup RunOnceEx according to the Definitive How To Guide from here;http://unattended.msfn.org/unattended.xp/view/web/31/here's what my cmdlines.txt looks like;[Commands]"rundll32 advpack.dll,LaunchINFSection nLite.inf,nLiteReg""RunOnceEx.cmd"here's what my RunOnceEx cmd file looks like;cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\020 /VE /D "Novell 4.9" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\Novell49\setupnc.exe /qn" /fREG ADD %KEY%\030 /VE /D "McAfee Antivirus version 8.0" /fREG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\mcafee\setup.exe /qn" /fREG ADD %KEY%\035 /VE /D "Java 5.0.6 Runtime Environment" /fREG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\java\jre506.exe /qn" /fREG ADD %KEY%\040 /VE /D "Adding user,Cleaning Up and Rebooting" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\cleanup.cmd" /fEXITI create my ISO using nLite, I boot the computer, windows installs beautifully BUT, not the RunOnceEx file.It DOES work however, when I execute it from the command prompt;START>RUN> rundll32.exe iernonce.dll,RunOnceExProcess On that same note, I can't seem to find winnt.sif to remove [GuiRunOnce] so that it doesn't interfere with "my" setup.So I am at a loss as to what to do next and I would really apreciate some help.Thanx
Djé Posted March 28, 2006 Posted March 28, 2006 There are 2 parts for RunOnceEx:1- the .cmd file store actions in the registry when it's executed (T12 in your case)2- The actions themselves are executed just after the next login (first login in your case)For the first part:I would first remove cmdow @ /HID and @echo off for having a clear view while debuging (it's like searching for something in a darkroom with sunglasses!). Then, replace exit by pause at the end of the file. And see if the installation stops for your script at T12.Also you can try to put "RunOnceEx.cmd" as the first line in cmdline.txt and see if that change something (be careful to remove exit at its end)Now if the 1st part is executed normally but the 2nd is not (you should have a list of progs installing before the desktop loads), and if the keys are in the registry at the correct location, I'd say something may be broken. also sometimes, the RunOnceEx takes some time to show up (specially if one of the progs is returning an error!) and some other times it has no time to show (small list on fast computer!) but progs are executed indeed.Winnt.sif shoud be in the I386 folder.
jiggles19c Posted March 28, 2006 Author Posted March 28, 2006 Thanx for the reply,I'll get on it as soon as I get back to work.Cheers
jiggles19c Posted March 28, 2006 Author Posted March 28, 2006 Eureka !!!!I had forgotten to copy the cmdnow app into the system32 folder...and seeing as this was the 1st line of my .cmd file it wouldnt runcmdow @ /HIDThanx Djé for the suggestion to actually remove this line....
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