Jump to content

Runonceex does not start


Recommended Posts

Hi all,

Before I continue, I would like to point out that this site has the by far most complete / best unattend xp cd guide I've seen till now.

My problem is that my runonceex script does not start. I'v ran it on my test computer and all entries were made in the registry. When I run the unattended installation the script hangs on the first entry.

I've made the cd almost the same as described by aaron, but just to be sure i'm posting my runonceex.

CMDOW @ /HID

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

REG ADD %KEY% /V TITLE /D "Configuring Workstation" /f

REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /f

REG ADD %KEY%\002 /VE /D "DirectX 9.0b" /f
REG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\DirectX9b\dxsetup.exe /windowsupdate" /f

REG ADD %KEY%\003 /VE /D "Windows Media Player 9" /f
REG ADD %KEY%\003 /V 1 /D "%systemdrive%\install\WMP9\MPSetupXP.exe /Q:A /R:N" /f
REG ADD %KEY%\003 /V 2 /D "%systemdrive%\install\WMP9\Wm9codecs.exe /Q:A /R:N" /f

REG ADD %KEY%\004 /VE /D "Microsoft Java" /f
REG ADD %KEY%\004 /V 1 /D "%systemdrive%\install\apps\msjavx86.exe /Q" /f

REG ADD %KEY%\005 /VE /D "MDAC Update" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\hotfixes\ENG_Q832483_MDAC_X86.EXE /C:"dahotfix.exe /q /n" /q" /f

REG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\050 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /f

REG ADD %KEY%\051 /VE /D "Securing Workstation" /f
REG ADD %KEY%\051 /V 1 /D "REGEDIT /S %systemdrive%\install\Registry\Security.reg" /f

REG ADD %KEY%\055 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\clean.cmd" /f

EXIT

Could anyone tell me why this isn't working ? I would be most grateful.

Link to comment
Share on other sites


i take it you did follow this guide

Running RunOnceEx from CD

...and have put this

@echo off

IF EXIST D:\CD.txt set CDROM=D:
IF EXIST E:\CD.txt set CDROM=E:
IF EXIST F:\CD.txt set CDROM=F:
IF EXIST G:\CD.txt set CDROM=G:
IF EXIST H:\CD.txt set CDROM=H:
IF EXIST I:\CD.txt set CDROM=I:
IF EXIST J:\CD.txt set CDROM=J:

in your RunOnceEx.cmd, and used CD.txt and put it in your root of XPCD.

Have you ran it and checked the entries appear in the reg? (HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx)

Link to comment
Share on other sites

i take it you did follow this guide

Running RunOnceEx from CD

...and have put this

@echo off

IF EXIST D:\CD.txt set CDROM=D:
IF EXIST E:\CD.txt set CDROM=E:
IF EXIST F:\CD.txt set CDROM=F:
IF EXIST G:\CD.txt set CDROM=G:
IF EXIST H:\CD.txt set CDROM=H:
IF EXIST I:\CD.txt set CDROM=I:
IF EXIST J:\CD.txt set CDROM=J:

in your RunOnceEx.cmd, and used CD.txt and put it in your root of XPCD.

It would be fine to include that if he actually used the cdrom variable, which he doesn't.

Have you ran it and checked the entries appear in the reg? (HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx)

This is the advice I would follow. Does anything happen to run also. If not, check your cmdlines.txt to see if it has the runonce cmd file in there.

Link to comment
Share on other sites

Guys,

Thanks for the answers. I found out that the prepare.cmd tried to copy a file which wasn't included on my install directory.

Very stupid mistake. I changed this and now all works well.

Thanks again.

Mark

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