Jump to content

Recommended Posts

Posted

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 off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\020 /VE /D "Novell 4.9" /f

REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\Novell49\setupnc.exe /qn" /f

REG ADD %KEY%\030 /VE /D "McAfee Antivirus version 8.0" /f

REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\mcafee\setup.exe /qn" /f

REG ADD %KEY%\035 /VE /D "Java 5.0.6 Runtime Environment" /f

REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\java\jre506.exe /qn" /f

REG ADD %KEY%\040 /VE /D "Adding user,Cleaning Up and Rebooting" /f

REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f

EXIT

I 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


Posted

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.

Posted

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 run

cmdow @ /HID

Thanx Djé for the suggestion to actually remove this line....

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...