emadhamdy2002 Posted April 25, 2007 Share Posted April 25, 2007 i have windows os size 1.4 gb and have no dvdi put WPI in a cd and windows files in another cd include $oem$but i want to have a FULL runonce.cmd file so i can put it to run with cmdline to request for insert of the 2nd cd which include WPI and WPI.cmdplz help soon here the CDhttp://img235.imageshack.us/my.php?image=54114990gx8.jpg aftr the splithttp://www.ninjadesigns.net/images/shot1.jpghttp://www.ninjadesigns.net/images/shot2.jpgthnks for phknija for helping me bt i couldnot continue plz all wht i want just ready files to put directly for eunonce or any bat or cmd file to ask for the second cd which include wpi.cmd Link to comment Share on other sites More sharing options...
phkninja Posted April 25, 2007 Share Posted April 25, 2007 (edited) add the following to runonce.bat....REM This is where we add the second diskecho Please insert CD2, and press a key to continuepausefor %%i in (c 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:\wpi.cmd set CDROM2=%%i:call %CDROM2%\wpi.cmdThis can be used wth a machine with only 1 cd drive (eject original disk, put in disk 1 and press a key) or in a machine with 2 cd drives (just press a key to continue).The ..... is where you have the rst of your RunOnce.cmd file Edited April 25, 2007 by phkninja Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted April 25, 2007 Share Posted April 25, 2007 Sheesh or you could simply goto the WPI forum and ask there REM This is where we add the second diskecho Please insert CD2, and press a key to continuepausefor %%i in (c 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:\wpi.cmd set CDROM2=%%i:call %CDROM2%\wpi.cmdThis could very easily be added to the $oem$ runwpi.cmd file we already provide... Link to comment Share on other sites More sharing options...
emadhamdy2002 Posted April 25, 2007 Author Share Posted April 25, 2007 thanks aloooot for the reply it helped me alot bt i hace another quetion how i can make it run in GUIrunonce according to specific order here my GUIRUNONCe[GUIRunOnce]command9="%SystemDrive%\DPsFnshr.exe"%WinDir%\INSTALL\START.CMD%WinDir%\INSTALL\ENC.EXE%WinDir%\INSTALL\D.CMD%WinDir%\INSTALL\WPI.CMDcoz i guess all run at the same time ecxpt for DPSfnshri want to make them to run in an ordercan i add command10="%WinDir%\INSTALL\START.CMD"command11="%WinDir%\INSTALL\ENC.EXE"and so on? Link to comment Share on other sites More sharing options...
phkninja Posted April 25, 2007 Share Posted April 25, 2007 instead of re-inventing the wheel so to speak, take a look at this page from the unattended guide Link to comment Share on other sites More sharing options...
emadhamdy2002 Posted April 26, 2007 Author Share Posted April 26, 2007 thnks alot man for ur reply bt hopd to tell me the order can i or not? Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted April 26, 2007 Share Posted April 26, 2007 As far as I understand each one is ran in the sequence that the are presented in your winnt.sif.Failing that you can name them just like that = command1, command2, cammand3 and so-on... Link to comment Share on other sites More sharing options...
emadhamdy2002 Posted April 26, 2007 Author Share Posted April 26, 2007 thnks alot for ur reply it's really greaaaaaaaat forum thnks again and i hv little aski canot make silent programe bt i use wpi to install programe for examplei have winrar.exe and mke silent i made a small cmd file called it rar.cmd put in itstart winrar.exe \sit work well if i dpl clik on the file directly bt whn i use wpi to open it it give me error and no install happen tell me canot find winrar.exe \scould u plz help me with the right cmd file to make wpi run winrar silently? Link to comment Share on other sites More sharing options...
phkninja Posted April 26, 2007 Share Posted April 26, 2007 (edited) yes you can order them. Firstly create a runonce.bat (or .cmd) file, instead of running the RunOnce from the winnt.sif file. You create an $OEM$ folder and add a cmdlines.txt file that runs the required apps. The easiest is to havecmdlines.txt[COMMANDS] RUNONCE.CMDThen you do the followingRunOnce.cmdREM Do not edit hereFOR %%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 KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREM Program Install code goes hereREG ADD %KEY%01 /VE /D "Preparing Installation..." /fREG ADD %KEY%01 /V 1 /D "%SystemDrive%\DPsFnshr.exe" /fREG ADD %KEY%01 /V 2 /D "%WinDir%\INSTALL\START.CMD" /fREG ADD %KEY%01 /V 3 /D "%WinDir%\INSTALL\ENC.EXE" /fREG ADD %KEY%01 /V 4 /D "%WinDir%\INSTALL\D.CMD" /fREG ADD %KEY%01 /V 5 /D "%WinDir%\INSTALL\WPI.CMD" /fRuns all the required stuff like one application install, or you cold haveRunOnce.cmdREM Do not edit hereFOR %%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 KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREM Program Install code goes hereREG ADD %KEY%01 /VE /D "Finish Drivers..." /fREG ADD %KEY%01 /V 1 /D "%SystemDrive%\DPsFnshr.exe" /fREG ADD %KEY%02 /VE /D "Preparing Installation..." /fREG ADD %KEY%02 /V 1 /D "%WinDir%\INSTALL\START.CMD" /fREG ADD %KEY%03 /VE /D "Enc.exe..." /fREG ADD %KEY%03 /V 1 /D "%WinDir%\INSTALL\ENC.EXE" /fREG ADD %KEY%04 /VE /D "D.cmd..." /fREG ADD %KEY%04 /V 1 /D "%WinDir%\INSTALL\D.CMD" /fREG ADD %KEY%05 /VE /D "WPI.cmd..." /fREG ADD %KEY%05 /V 1 /D "%WinDir%\INSTALL\WPI.CMD" /fSee the programs go here bit. Copy and paste, then increment the %KEY%\ to 002 etc.Or just have cmdlines.txt[COMMANDS] %SystemDrive%\DPsFnshr.exe %WinDir%\INSTALL\START.CMD %WinDir%\INSTALL\ENC.EXE %WinDir%\INSTALL\D.CMD %WinDir%\INSTALL\WPI.CMDthere are numerous ways to do the same thing. I would suggest that the DPsFnshr.exe remains in the winnt.sif file and have the rest in the cmdlines.txt etc, as this is essentail for the windows install to function correctly butthe rest are personal preferences. (DPsFnshr.exe is for the Bashrat Driver Packs to install on the machine first) Edited April 26, 2007 by phkninja Link to comment Share on other sites More sharing options...
emadhamdy2002 Posted April 26, 2007 Author Share Posted April 26, 2007 wawwwwwwwo man thnks alot for all that explaintion and putting all codes here thnks agian u r great man thnks again and plz if u have solution for the next lines plz tell me fastin sumry i want to silent insatll for winrar from WPI by cmd filebelow wht i wantthnks againthnks alot for ur reply it's really greaaaaaaaat forum thnks again and i hv little aski canot make silent programe bt i use wpi to install programe for examplei have winrar.exe and mke silent i made a small cmd file called it rar.cmd put in itstart winrar.exe \sit work well if i dpl clik on the file directly bt whn i use wpi to open it it give me error and no install happen tell me canot find winrar.exe \scould u plz help me with the right cmd file to make wpi run winrar silently? Link to comment Share on other sites More sharing options...
phkninja Posted April 26, 2007 Share Posted April 26, 2007 firstly if you were doing that it would bestart winrar.exe /snotstart winrar.exe \sSecondly, using InstallRite its easy to create a silent install. you install the Installrite exe then tell it to monitor the installation of the winrar.exe. then click through the installation. At the end installrite will create a single exe the you call with winrar.exe /s Link to comment Share on other sites More sharing options...
emadhamdy2002 Posted April 26, 2007 Author Share Posted April 26, 2007 thnaks alot man for ur reply i really appreciate ur effort bt also using the codestart winrar.exe /swhn try excute it by wpi it tell me canot find winrar.exei guess i must put path or certail thing to tell wpi to run the progrme find the folder of the rar.cmdthnks again man Link to comment Share on other sites More sharing options...
emadhamdy2002 Posted April 26, 2007 Author Share Posted April 26, 2007 thnks man i got a solution here the answerREM Example, how to look for CDROM-drive. Must have WPI.ico at the root of the CD.for %%i in (C 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:\wpi.cmd set CDROM=%%i:echo Found CD-Rom as drive %CDROM%REM Determine the WPI startup path. REM if wpi should run off the cd the replace %~dp0 with %cdrom%.set installpath=%cdrom%/wpi/Programs/Rem Program commands to runstart /wait %installpath%\winrar.exe /s:end Link to comment Share on other sites More sharing options...
phkninja Posted April 26, 2007 Share Posted April 26, 2007 just as a matter of intrest, if your using wpi, why are you usingstart /wait %installpath%\winrar.exe /sWPI allows you to add the program as a selecteable product. the above code deosnt use WPI, it installs winrar no matter what. Link to comment Share on other sites More sharing options...
emadhamdy2002 Posted April 27, 2007 Author Share Posted April 27, 2007 ok thnks alot man for ur reply and adding to me i really appreciate ur help thnks again 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