Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can't get RunOnceEx to run

Featured Replies

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


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.

  • Author

Thanx for the reply,

I'll get on it as soon as I get back to work.

Cheers

  • Author

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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.