bonedaddy Posted January 11, 2005 Posted January 11, 2005 Ok, is this going to work? I have wpi335 on the cd at software\wpi andwpi.cmd at $oem$\$1\install\wpi.cmd@ECHO OFFREMREM WPI startup something.REM REM Example, how to look for CDROM-drive. Must have a file called WIN51 in its root.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:\WIN51 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%\PathToWPIset WPIPATH=%cdrom%\software\wpiecho WPI will run from %cdrom%\software\wpiREM Font installation - the easy wayfor /R %%i in ( *.ttf ) do ( echo Installing font %%~ni.ttf copy /Y "%%~fi" "%windir%\Fonts" > nul "%cdrom%\software\wpi\common\installfont.exe" "%windir%\Fonts\%%~ni.ttf" > nul)REM Hide this command windowREM "%WPIPATH%\common\cmdow.exe" @ /HIDREM Special registry tweak neededregedit /S "%CDROM%\software\wpi\common\wpi.reg"REM Make WPI driectory the current directoryfor /F "delims=: tokens=1" %%i in ("%cdrom%\software\wpi") DO echo %%i:cd "%cdrom%\software\wpi"REM Start WPI and wait for its endstart /wait WPI.htaREM call any cleanup code here, or after this script.exitthanks for lookin'BDEDITOh yes, does that _________next_________at the bottom stay there all the time?
bonedaddy Posted January 11, 2005 Author Posted January 11, 2005 Guess not.... check out the errors........
bonedaddy Posted January 11, 2005 Author Posted January 11, 2005 the thrid one is "Windows can not find nlite.inf" I talked to Nuhi and hewants to know if WPI resets RunOnceEx now? Seems nLite uses it forit's inf file.........this pops up just after WPI is finished......
hasi001 Posted January 12, 2005 Posted January 12, 2005 Bonedaddy - you would only have had to change the 'SET WPIPATH=...' line. All others should have been untouched. Stiil, your batch file seems to be correct....Please post your config.js. Remove license keys.
hasi001 Posted January 12, 2005 Posted January 12, 2005 One thing first. I see, I left my test-programs in there. Remove the last line in config.js (for....)
bonedaddy Posted January 12, 2005 Author Posted January 12, 2005 re: the waitsMS Office 2k extracts then needs to install but RunOnce starts to move to thenext program unless I stop it with wait........ Not installing when errors occur.ATI drivers like a little time between them, also not installing during this test.....BD
bonedaddy Posted January 12, 2005 Author Posted January 12, 2005 WOW, got it working PERFECT.......just not from cd, had to move from cd to$oem$\$1\install\wpiI was using cmdlines to call RunOnceEx and using it to call WPI, that is a no nofor me, causes the IE is running slow, and will mess up nLite.inf............can not make it work from cd here;REM Make WPI driectory the current directoryfor /F "delims=: tokens=1" %%i in ("%cdrom%\software\wpi") DO echo %%i:cd "%cdrom%\software\wpi"
Dynaletik Posted January 12, 2005 Posted January 12, 2005 I just use my old SIMPLE code and it works perfectly for me!!!cmdow.exe @ /HID@echo offIF EXIST D:\WIN51 set CDROM=D:IF EXIST E:\WIN51 set CDROM=E:IF EXIST F:\WIN51 set CDROM=F:IF EXIST G:\WIN51 set CDROM=G:IF EXIST H:\WIN51 set CDROM=H:IF EXIST I:\WIN51 set CDROM=I:IF EXIST J:\WIN51 set CDROM=J:IF EXIST K:\Win51 set CDROM=K:%CDROM%cd %CDROM%\Install\WPI\commmon\regedit /S WPI.regcd %CDROM%\Install\WPI\start /wait WPI.htaexit
hasi001 Posted January 12, 2005 Posted January 12, 2005 hah. and now I found the problem. seems, i left an echo where it shouldn't be:Correct:REM Make WPI directory the current directoryfor /F "delims=: tokens=1" %%i in ("%WPIPATH%") DO %%i:cd "%WPIPATH%"
bonedaddy Posted January 13, 2005 Author Posted January 13, 2005 Oh ya, works great from CD now............. thanksBD
Astalavista Posted January 17, 2005 Posted January 17, 2005 I want to run this from a dvd I am getting errorsI dont understand the color red statement.Can we pls hv some instructions?@ECHO OFFREMREM WPI startup something.REM REM Example, how to look for CDROM-drive. Must have a file called WIN51 in its root.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:\WIN51 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%\PathToWPIset WPIPATH=%~dp0echo WPI will run from %WPIPATH%REM Font installation - the easy wayfor /R %%i in ( *.ttf ) do ( echo Installing font %%~ni.ttf copy /Y "%%~fi" "%windir%\Fonts" > nul "%WPIPATH%\common\installfont.exe" "%windir%\Fonts\%%~ni.ttf" > nul)REM Hide this command window"%WPIPATH%\common\cmdow.exe" @ /HIDREM Special registry tweak neededregedit /S "%WPIPATH%\common\wpi.reg"REM Make WPI driectory the current directoryfor /F "delims=: tokens=1" %%i in ("%WPIPATH%") DO echo %%i:cd "%cdrom%\software\wpi"REM Start WPI and wait for its endstart /wait WPI.htaREM call any cleanup code here, or after this script.exit:end
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