plz runonce.cmd for 2cd install
#1
Posted 25 April 2007 - 10:41 AM
i 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.cmd
plz help soon here the CD
http://img235.images...54114990gx8.jpg
aftr the split
http://www.ninjadesi...mages/shot1.jpg
http://www.ninjadesi...mages/shot2.jpg
thnks 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
#2
Posted 25 April 2007 - 12:46 PM
.... REM This is where we add the second disk echo Please insert CD2, and press a key to continue pause 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 CDROM2=%%i: call %CDROM2%\wpi.cmd
This 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
This post has been edited by phkninja: 25 April 2007 - 12:47 PM
#3
Posted 25 April 2007 - 12:51 PM
REM This is where we add the second disk echo Please insert CD2, and press a key to continue pause 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 CDROM2=%%i: call %CDROM2%\wpi.cmd
This could very easily be added to the $oem$ runwpi.cmd file we already provide...
#4
Posted 25 April 2007 - 03:45 PM
[GUIRunOnce]
command9="%SystemDrive%\DPsFnshr.exe"
%WinDir%\INSTALL\START.CMD
%WinDir%\INSTALL\ENC.EXE
%WinDir%\INSTALL\D.CMD
%WinDir%\INSTALL\WPI.CMD
coz i guess all run at the same time ecxpt for DPSfnshr
i want to make them to run in an order
can i add
command10="%WinDir%\INSTALL\START.CMD"
command11="%WinDir%\INSTALL\ENC.EXE"
and so on?
#5
Posted 25 April 2007 - 03:59 PM
#6
Posted 25 April 2007 - 11:02 PM
#7
Posted 26 April 2007 - 12:50 AM
Failing that you can name them just like that = command1, command2, cammand3 and so-on...
#8
Posted 26 April 2007 - 04:19 AM
and i hv little ask
i canot make silent programe bt i use wpi to install programe for example
i have winrar.exe and mke silent i made a small cmd file called it rar.cmd put in it
start winrar.exe \s
it 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 \s
could u plz help me with the right cmd file to make wpi run winrar silently
?
#9
Posted 26 April 2007 - 07:19 AM
cmdlines.txt
[COMMANDS] RUNONCE.CMD
Then you do the following
RunOnce.cmd
REM Do not edit here 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 KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Installing Applications" /f REM Program Install code goes here REG ADD %KEY%01 /VE /D "Preparing Installation..." /f REG ADD %KEY%01 /V 1 /D "%SystemDrive%\DPsFnshr.exe" /f REG ADD %KEY%01 /V 2 /D "%WinDir%\INSTALL\START.CMD" /f REG ADD %KEY%01 /V 3 /D "%WinDir%\INSTALL\ENC.EXE" /f REG ADD %KEY%01 /V 4 /D "%WinDir%\INSTALL\D.CMD" /f REG ADD %KEY%01 /V 5 /D "%WinDir%\INSTALL\WPI.CMD" /f
Runs all the required stuff like one application install, or you cold have
RunOnce.cmd
REM Do not edit here 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 KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Installing Applications" /f REM Program Install code goes here REG ADD %KEY%01 /VE /D "Finish Drivers..." /f REG ADD %KEY%01 /V 1 /D "%SystemDrive%\DPsFnshr.exe" /f REG ADD %KEY%02 /VE /D "Preparing Installation..." /f REG ADD %KEY%02 /V 1 /D "%WinDir%\INSTALL\START.CMD" /f REG ADD %KEY%03 /VE /D "Enc.exe..." /f REG ADD %KEY%03 /V 1 /D "%WinDir%\INSTALL\ENC.EXE" /f REG ADD %KEY%04 /VE /D "D.cmd..." /f REG ADD %KEY%04 /V 1 /D "%WinDir%\INSTALL\D.CMD" /f REG ADD %KEY%05 /VE /D "WPI.cmd..." /f REG ADD %KEY%05 /V 1 /D "%WinDir%\INSTALL\WPI.CMD" /f
See 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.CMD
there 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)
This post has been edited by phkninja: 26 April 2007 - 07:25 AM
#10
Posted 26 April 2007 - 07:41 AM
and plz if u have solution for the next lines plz tell me fast
in sumry i want to silent insatll for winrar from WPI by cmd file
below wht i want
thnks again
emadhamdy2002, on Apr 26 2007, 04:19 AM, said:
and i hv little ask
i canot make silent programe bt i use wpi to install programe for example
i have winrar.exe and mke silent i made a small cmd file called it rar.cmd put in it
start winrar.exe \s
it 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 \s
could u plz help me with the right cmd file to make wpi run winrar silently
?
#11
Posted 26 April 2007 - 07:54 AM
start winrar.exe /s
not
start winrar.exe \s
Secondly, 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
#12
Posted 26 April 2007 - 09:49 AM
start winrar.exe /s
whn try excute it by wpi it tell me
canot find winrar.exe
i guess i must put path or certail thing to tell wpi to run the progrme find the folder of the rar.cmd
thnks again man
#13
Posted 26 April 2007 - 10:29 AM
Quote
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 run
start /wait %installpath%\winrar.exe /s
:end
#14
Posted 26 April 2007 - 11:54 AM
start /wait %installpath%\winrar.exe /s
WPI allows you to add the program as a selecteable product. the above code deosnt use WPI, it installs winrar no matter what.
#15
Posted 27 April 2007 - 03:06 AM



Help
Back to top









