Jump to content

RunOnceEx installs one program, but skips the rest


Recommended Posts

Posted

ok...i have 7 or so programs that i want to be installed to my unattended install...

i am using the RunOnceEx method.

when windows boots the first time it installs the first program fine, but the skips the other ones...it sort of moves through them as if they get installed, but they done...

i have attatched my RunOnceEx.cmd file

runonceex.cmd


Posted (edited)

Your RunOnceEx.cmd

cmdow @ /HID
@echo off

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

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

REG ADD %KEY%\005 /VE /D "Adobe Reader 7" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\AR7\AR7.exe"

REG ADD %KEY%\015 /VE /D "Installing GDI Detection Tool" /f
REG ADD %KEY%\015 /V 1 /D "REGEDIT /S %systemdrive%\install\GDI\gdi.reg" /f
REG ADD %KEY%\015 /V 2 /D "REGEDIT /S %systemdrive%\install\GDI\KB873374.exe /Q:A /R:N" /f

REG ADD %KEY%\020 /VE /D "Winodws Genuaine Advantage" /f
REG ADD %KEY%\020 /V 1 /D "REGEDIT /S %systemdrive%\install\GWVT\GWVT.exe" /f

REG ADD %KEY%\025 /VE /D "Installing Java Runtime Env" /f
REG ADD %KEY%\025 /V 1 /D "REGEDIT /S %systemdrive%\install\JRE\j2re.exe" /f

REG ADD %KEY%\030 /VE /D "Installing MSN Messenger 7.5" /f
REG ADD %KEY%\030 /V 1 /D "REGEDIT /S %systemdrive%\install\MSN\msnmsg75.exe" /f

REG ADD %KEY%\035 /VE /D "Installing Windows Installer 3.1" /f
REG ADD %KEY%\035 /V 1 /D "REGEDIT /S %systemdrive%\install\WinInst\winins31.exe" /f

REG ADD %KEY%\040 /VE /D "Installing Windows Update V6" /f
REG ADD %KEY%\040 /V 1 /D "REGEDIT /S %systemdrive%\install\WU6\WU6.exe" /f

EXIT

Your 1st program is installed as it does not have RegEdit doing it. The rest of the installation commands have RegEdit doing it? RegEdit is not an installation command. RegEdit /s will just do the *.reg files for you.

Edit: wow, codebox strips empty lines.

Edited by MHz
Posted

lol...thanks for that...im still new to this, and don't know wat the files should look like...

even so...that is pretty obvious, now that i think about it...

THANKS!

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