Jump to content

Windows 2000 runonceex


Recommended Posts

hell`o i`m a beginner in unattended setups and i need a little help.....why the runonceex not work in win2k ??

i maked runonceex like this:

cmdow @ /HID

@Echo Off

FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.TXT SET CDROM=%%i:

SET PP=%cdrom%\Install\

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

REG ADD %KEY%\001 /V TITLE /D "Instalam......." /f

REG ADD %KEY%\000 /VE /D "Adobe Photoshop CS v.8.0" /f

REG ADD %KEY%\000 /V 1 /D "%systemdrive%\install\ADOBE_PHOTOSHOP_CS\Adobe Photoshop CS\setup.exe /silent" /f

and it gives me the error .... "REG" is not recognized as an internal or external command,operable program or batch file........plz help me out :wacko:

Link to comment
Share on other sites


you need to add reg.ex_ from windows xp cd to windows 2000 cd...then it will work...you will also need to update txtsetup.sif and dosnet.inf so it gets installed properly, but this topic is better suited in the unattended windows forum and not application installs.

Link to comment
Share on other sites

for example:

runonceex:

cmdow @ /HID
@echo off

IF EXIST B:\CD.txt set CDROM=B:
IF EXIST C:\CD.txt set CDROM=C:
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 "Installing Applications" /f

REG ADD %KEY%\001 /VE /D "Apps1" /f
REG ADD %KEY%\001 /V 1 /D "%cdrom%\install\Apps1.exe" /f

REG ADD %KEY%\002 /VE /D "Apps2" /f
REG ADD %KEY%\002 /V 1 /D "%cdrom%\install\Apps2.exe" /f

REG ADD %KEY%\003 /VE /D "Apps3" /f
REG ADD %KEY%\003 /V 1 /D "%cdrom%\install\Apps3.exe" /f

EXIT

APPS1

CLS
@echo off
ECHO.
ECHO Automated installations of various
ECHO software applications and windows updates.
ECHO.
ECHO Installing .NetFrameWork 1.1...
ECHO Please wait...
start /wait %systemdrive%\install\Netframework\netfx.msi /QB
ECHO.
ECHO Installing DirectX 9.0b
ECHO Please wait...
start /wait %systemdrive%\install\X9b\DXSETUP.exe /opk
ECHO.
ECHO Installing Microsoft JavaVM - Build 3810
ECHO Please wait...
start /wait %systemdrive%\install\JavaVM\msjavwu.exe /Q:A /R:N
ECHO.
ECHO Installing Adobe Reader 6
ECHO Please wait...
start /wait %systemdrive%\install\Adobe6\AR6.msi /QB
ECHO.
ECHO Applying Registry Tweaks...
REGEDIT /S %systemdrive%\install\Tweaks.reg
ECHO Finished Installing...
ECHO.
ECHO Deleting Temp Installation Files...
RD /S /Q %systemdrive%\install
ECHO.
EXIT

this is just an example of what i did in the past, just change the things to suit ur install......

Link to comment
Share on other sites

he isnt asking how...runonceex physically DOES NOT work on w2k without adding reg.exe from windows xp.  More to the point, there is no reg.exe in windows 2000, unless you add it.

that's slightly inaccurate.

If he had per say used an .REG file to import the entries or an INF file, then RunOnceEX would have gone off without a hitch. RunOnceEX is controlled by rundll32.exe and setupapi.dll among others, and NOT REG.EXE. REG.EXE is simply a commandline version of REGEDIT.EXE, and as such allows us to import command prompt variables without hardcoding paths in the CMD files. I personally use a INF file to import my entries.

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