Jump to content

RunOnceEx configured but its not running on logon.


Recommended Posts

Hi. I'm trying to run DriverPacks finisher and start WPI (Windows Post Install) using RunOnceEx.

But I cant make RunOnceEx to work fine.

I read almoust everything about it and still cant make it work.

I did it this way:

1 - Did everything needed to modify my Windows source using NLITE.

2 - Integrate DriverPacks using DriverPack's BASE (Method 2, Custom, with KTD, withou QuickStream Cache).

3 - Created "$ OEM $" folder (without spaces).

4 - Created "$ OEM $\$$\System32" folder and put QCHAIN.EXE and CMDOW.EXE inside it.

5 - Created the file "$ OEM $\cmdlines.txt":

[COMMANDS]
"RunOnceEx.cmd"

6 - Created the file "$ OEM $\RunOnceEx.cmd":

cmdow @ /HID 
@echo off

for /f "delims=: tokens=1" %%i in ("%~dp0") do set drive=%%i:
set wpipath=%drive%\WPI

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

REG ADD %KEY% /V TITLE /D "Post Install Process" /f

REG ADD %KEY%01 /VE /D "DriverPacks Finishing Procedure" /f
REG ADD %KEY%01 /V 1 /D "%SystemDrive%\DPsFnshr.exe" /f

REG ADD %KEY%05 /VE /D "Running Windows Post Install" /f
REG ADD %KEY%05 /V 1 /D "%wpipath%\WPI.hta" /f

REG ADD %KEY%10 /VE /D "Finishing Install" /f
REG ADD %KEY%10 /V 1 /D "%wpipath%\Install\FINISH.CMD" /f

EXIT

7 - Launched NLITE again just to create the ISO file.

8 - Test it using VmWare

Everything seems to work fine, but when I logon for the first time, RunOnceEx is not running...

I checked the register and the entries is there (folders 001, 005 and 010, with everything inside).

Can anyone tell me if I'm doing something wrong or whats the problem?

Thank you very much.

Edited by marcus_cps
Link to comment
Share on other sites


I just run WPI from cmdlines.txt and everything else is being run from WPI.

You are running WPI from CMDLINES.TXT?

But WPI is supposed to run at first logon, this way it will run at T-12, will it work fine?

--

I found a way to make it work at the first logon:

I've added RunOnceEx command at the RUN registry key (same way as RunOnceEx), but I do not use the IE7 iernonceex.dll, i've used the IE6 version.

It works fine, but still there is a problem... it runs after it should run. I tryin to find a way to run it before system goes operational.

Does anyone knows how to do it?

Thanx

Link to comment
Share on other sites

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...