killpacient Posted May 8, 2005 Share Posted May 8, 2005 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 Link to comment Share on other sites More sharing options...
diesel_98a Posted May 8, 2005 Share Posted May 8, 2005 have u tried it as a batch file, trying using the runoncex to call the batch file that will then install the program............. Link to comment Share on other sites More sharing options...
DLF Posted May 8, 2005 Share Posted May 8, 2005 Windows 2000? Wrong forum chap. Windows NT4/2000/2003OR:Unattended Windows Link to comment Share on other sites More sharing options...
killpacient Posted May 12, 2005 Author Share Posted May 12, 2005 diesel can u be more specific plz ? Link to comment Share on other sites More sharing options...
evilvoice Posted May 12, 2005 Share Posted May 12, 2005 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 More sharing options...
diesel_98a Posted May 13, 2005 Share Posted May 13, 2005 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...... Link to comment Share on other sites More sharing options...
evilvoice Posted May 13, 2005 Share Posted May 13, 2005 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. Link to comment Share on other sites More sharing options...
diesel_98a Posted May 17, 2005 Share Posted May 17, 2005 right u mentioned that a couple posts be4 that, i was giving him the example of what to do after that........... Link to comment Share on other sites More sharing options...
Alanoll Posted May 17, 2005 Share Posted May 17, 2005 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now