May 8, 200521 yr 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 OffFOR %%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\RunOnceExREG ADD %KEY%\001 /V TITLE /D "Instalam......." /fREG ADD %KEY%\000 /VE /D "Adobe Photoshop CS v.8.0" /fREG ADD %KEY%\000 /V 1 /D "%systemdrive%\install\ADOBE_PHOTOSHOP_CS\Adobe Photoshop CS\setup.exe /silent" /fand it gives me the error .... "REG" is not recognized as an internal or external command,operable program or batch file........plz help me out
May 8, 200521 yr have u tried it as a batch file, trying using the runoncex to call the batch file that will then install the program.............
May 12, 200521 yr 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.
May 13, 200521 yr for example:runonceex:cmdow @ /HID@echo offIF 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\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\001 /VE /D "Apps1" /fREG ADD %KEY%\001 /V 1 /D "%cdrom%\install\Apps1.exe" /fREG ADD %KEY%\002 /VE /D "Apps2" /fREG ADD %KEY%\002 /V 1 /D "%cdrom%\install\Apps2.exe" /fREG ADD %KEY%\003 /VE /D "Apps3" /fREG ADD %KEY%\003 /V 1 /D "%cdrom%\install\Apps3.exe" /fEXITAPPS1CLS@echo offECHO.ECHO Automated installations of variousECHO software applications and windows updates.ECHO.ECHO Installing .NetFrameWork 1.1...ECHO Please wait...start /wait %systemdrive%\install\Netframework\netfx.msi /QBECHO.ECHO Installing DirectX 9.0bECHO Please wait...start /wait %systemdrive%\install\X9b\DXSETUP.exe /opkECHO.ECHO Installing Microsoft JavaVM - Build 3810ECHO Please wait...start /wait %systemdrive%\install\JavaVM\msjavwu.exe /Q:A /R:NECHO.ECHO Installing Adobe Reader 6ECHO Please wait...start /wait %systemdrive%\install\Adobe6\AR6.msi /QBECHO.ECHO Applying Registry Tweaks...REGEDIT /S %systemdrive%\install\Tweaks.regECHO Finished Installing...ECHO.ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\installECHO.EXITthis is just an example of what i did in the past, just change the things to suit ur install......
May 13, 200521 yr 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.
May 17, 200521 yr right u mentioned that a couple posts be4 that, i was giving him the example of what to do after that...........
May 17, 200521 yr 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.<{POST_SNAPBACK}>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.
Create an account or sign in to comment