Jump to content

RunOnce error


Recommended Posts

hello,

My unattended install worked up to a point: when it came time to install the diffrent applications I has slipstreamed it said that it could locate the install file for them.

I put the install folders for each program in the $1$ folder.

example: C:\XPCD\$OEM$\$1$\install\ECD

C:\XPCD\$OEM$\$1$\install\Alcohol

Here is a copy or my RunOnce file.

**********************************************************

@Echo Off

rem PP=%SystemDrive%\Install\

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

REG ADD %KEY% /V TITLE /D "Installing Programs" /f

REG ADD %KEY%\000 /VE /D "Alcohol 120%" /f

REG ADD %KEY%\000 /V 1 /D "%SystemDrive%\Install\Alcohol\setup.exe /qn" /f

REG ADD %KEY%\001 /VE /D "Google Toolbar" /f

REG ADD %KEY%\001 /V 1 /D "%SystemDrive%\Install\GoogleToolbarInstaller.exe /s /qn" /f

REG ADD %KEY%\002 /VE /D "Jasc Paint Shop Pro 8" /f

REG ADD %KEY%\002 /V 1 /D "%SystemDrive%\Install\PSP\JPSP8.msi /qn" /f

REG ADD %KEY%\003 /VE /D "Easy CD Creater 6.0" /f

REG ADD %KEY%\003 /V 1 /D "%SystemDrive%\Install\ECD\SETUP.EXE /s /v\"/qr REBOOT=Suppress REBOOTPROMPT=S\"" /f

EXIT

***********************************************************

Do I have the stuff in a completely wrong folder ($1$) or do I just have to adjust my RunOne.exe?

Thanks guys

miche

Link to comment
Share on other sites


@amazonjustice

mpsmith is right the folder you need to put the apps in is $OEM$\$1\Install

As for your Runonceex.cmd your syntax appears to be a little off.

Here is a copy of mine for your reference.

cmdow @ /HID

@echo off

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

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f

REG ADD %KEY%\001 /V 1 /D "%systemroot%\install\bootini.vbs" /f

REG ADD %KEY%\005 /VE /D "Creating useful shortcuts" /f

REG ADD %KEY%\005 /V 1 /D "%systemroot%\install\shortcuts.vbs" /f

REG ADD %KEY%\010 /VE /D "Creating Support User" /f

REG ADD %KEY%\010 /V 1 /D "%systemroot%\install\emeruser.vbs" /f

REG ADD %KEY%\015 /VE /D "Changing CD-ROM drive letter" /f

REG ADD %KEY%\015 /V 1 /D "%systemroot%\install\chngcdltr.bat" /f

REG ADD %KEY%\020 /VE /D "Applying Tweaks" /f

REG ADD %KEY%\020 /V 1 /D "REGEDIT /S %systemroot%\install\tweaks.reg" /f

REG ADD %KEY%\022 /VE /D "Installing Ad-Aware" /f

REG ADD %KEY%\022 /V 1 /D "%systemdrive%\winapps\aa\aawsepersonal.exe /s" /f

REG ADD %KEY%\023 /VE /D "Installing Adobe Reader 6.0.1" /f

REG ADD %KEY%\023 /V 1 /D "%systemroot%\install\adobe.bat" /f

REG ADD %KEY%\025 /VE /D "Installing Diskeeper Pro v.8" /f

REG ADD %KEY%\025 /V 1 /D "%systemdrive%\winapps\dk8\setup.exe /s /v/qn" /f

REG ADD %KEY%\026 /VE /D "Installing JustZIPit" /f

REG ADD %KEY%\026 /V 1 /D "%systemroot%\install\zip.bat" /f

REG ADD %KEY%\030 /VE /D "Installing Power Toys" /f

REG ADD %KEY%\030 /V 1 /D "msiexec /i \"%systemdrive%\winapps\ptoys\tweakui.msi\" /qb" /f

REG ADD %KEY%\030 /V 2 /D "%systemdrive%\winapps\ptoys\cmdhere.exe /s /v/qn" /f

REG ADD %KEY%\030 /V 3 /D "%systemdrive%\winapps\ptoys\powercalc.exe /s /v/qn" /f

REG ADD %KEY%\030 /V 4 /D "%systemdrive%\winapps\ptoys\taskswitch.exe /s /v/qn" /f

REG ADD %KEY%\035 /VE /D "Installing Sun JVM" /f

REG ADD %KEY%\035 /V 1 /D "%SYSTEMROOT%\Install\jvm.bat" /f

REG ADD %KEY%\040 /VE /D "Installing Support Tools" /f

REG ADD %KEY%\040 /V 1 /D "msiexec /i \"%SYSTEMDRIVE%\WINAPPS\suptools.msi\" /qb" /f

REG ADD %KEY%\055 /VE /D "Applying Security Policy" /f

REG ADD %KEY%\055 /V 1 /D "%systemroot%\install\secedit.bat" /f

REG ADD %KEY%\060 /VE /D "Cleaning Up and Rebooting" /f

REG ADD %KEY%\060 /V 1 /D "%systemroot%\install\cleanup.cmd" /f

EXIT

Note: Ignore the line wrapping where applicable.

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