Jump to content

Recommended Posts

Posted

I need help sorting out my first RunOnceEX.cmd trial. I've used what I think is

the right setup, but wanted to verify with the pros. Here is the format of my cmd file along with the setup for my $OEM$ folder.

cmdow @ /HID

@Echo Off

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

REG ADD %KEY% /V TITLE /D "Unattended Program Installation" /f

REG ADD %KEY%\000 /VE /D "Installing .NET Framework SP1" /f

REG ADD %KEY%\000 /V 1 /D "%SystemDrive%\Install\DotNet\netfxsp1.exe" /f

REG ADD %KEY%\005 /VE /D "Installing HighMAT Support" /f

REG ADD %KEY%\005 /V 1 /D "%SystemDrive%\Install\HighMAT\HMTCDWizard.exe /qb" /f

REG ADD %KEY%\010 /VE /D "Installing Windows Genuine Authentication" /f

REG ADD %KEY%\010 /V 1 /D "%SystemDrive%\Install\WGA\LegitCheckControl.msi" /f

EXIT

My $0EM$ is being copied to the root of my iso image and here is the structure of the folder.

$OEM$\

$1

$$

cmdlines.txt

RunOnceEx.cmd

$OEM$\$1\Install\DotNet\netfxsp1.exe

$OEM$\$1\Install\HighMAT\HMTCDWizard.exe

$OEM$\$1\Install\WGA\LegitCheckControl.msi

$OEM$\$$

system32\cmdow.exe

I know this may be overkill, but just wanted to confirm the right setup. The cmdlines.txt file is calling the runonceex.cmd file, but get an error message saying that runonce can't find the file: c:\Install\DotNet\netfxsp1.exe, and same with other two. I looked and the Install folder hasn't been copied to the root of C.

This may be a minor issue to most of you, but hope you can help me get started.

Thanks,

Chris


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