Jump to content

RunOnceEx probs


Recommended Posts

Just converted from Batch to RunOnceEx. I wanted to install all applications from the CD so in the CD root i put the CD.txt file and the Software folder and in the $oem$ directory the RunonceEX.cmd and cmdlines.txt. Here they are:

[COMMANDS]"RunOnceEx.cmd"
cmdow @ /HID

@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:

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

REG ADD %KEY% /V TITLE /D "XPSP1a instalation of all..." /f

REG ADD %KEY%\005 /VE /D "Lavasoft Ad-Aware 6 Build 181" /f

REG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\AdAware\Adaware6.exe/s" /f

When testing the XPcd the installation goes nowhere. It hangs after this message:
Searching for Boot Record from CDROM..OK

I've search for typo's and found no space between the @ and / in cmdow @ /HID. Havent tested to see if this will fix it as i dont see how it would.

Im sure i,ve missed something realy stupid, but after hours staring at code its all a blur now!

Link to comment
Share on other sites


uh.....

seeing as that line isn't in anywhere in your batch file...

when does it show up?

after GUIInstall, with the WindowsXP adds and blue screen...

or when?

That has nothign to do with RunOnceEX, and you code looks fine so far, except a space between /s and Adaware6.exe

Link to comment
Share on other sites

That's more likely to be a corrupted CD. Anything related to RunOnceEx doesn't kick in until its imported registry entries at the T-13 minutes stage of Windows XP Setup, so if it hangs when booting from the CD then its corrupt.

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