May 4, 200521 yr I have my files on my xp cd in a install map.I run WPI from my hard disk (C:\laborxp\installation)this is my cmd :@ECHO OFFREMREM WPI startup module.REM REM Example, how to look for CDROM-drive. Must have a file to identify in its root (like WIN51 or WPI.ico).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%.set wpipath=%~dp0REM Hide this command window."%wpipath%\common\cmdow.exe" @ /hidREM Font installation - the smooth and customizable way.start /wait %wpipath%\common\fonts\fontinstaller.exeREM Special registry tweak needed.regedit /s "%wpipath%\common\wpi.reg"REM Make WPI directory the current directory.for /f "delims=: tokens=1" %%i in ("%wpipath%") do %%i:cd "%wpipath%"REM Start WPI and wait for its endstart /wait WPI.htaREM Cleaning up the desktop.del /s/q "%userprofile%\desktop\*.lnk"REM Confirming a reboot...echo Dim WshShell, oExec>%tmp%\WPI.vbsecho Set WshShell = CreateObject("WScript.Shell")>>%tmp%\WPI.vbsecho answer = Msgbox("The installation process has finished. Do you wish to reboot now?",VBYesNo,"Windows Post Installation Wizard")>>%tmp%\WPI.vbsecho if answer = 6 then>>%tmp%\WPI.vbsecho oExec = WshShell.Run("SHUTDOWN -r -t 0", 1, true)>>%tmp%\WPI.vbsecho end if>>%tmp%\WPI.vbsecho set WshShell = nothing>>%tmp%\WPI.vbs%tmp%\WPI.vbsdel /q %tmp%\WPI.vbsexit:endWhen i try to test wpi i get a lot of errors.Because it can't find the installfiles.It goes allways to this folder : C:\laborxp\installation\InstallIn my WPI configuration it's like this :%CDROM%\install\mpeg2\MPEG-2.EXE /scan someone give me some advice pls?thanksFilip
May 4, 200521 yr REM Determine the WPI startup path. REM if wpi should run off the cd the replace %~dp0 with %CDROM%.set wpipath=%~dp0Change %~dp0 to %CDROM%.
May 4, 200521 yr This is covered in the WPI.CMD file that comes with WPI.If your going to use this app at least take a look at it and get a feel for what its doing.
May 5, 200521 yr So this will allow files to be loaded from cd? And thats all thats needed?@ECHO OFFREMREM WPI startup module.REM REM Example, how to look for CDROM-drive. Must have a file to identify in its root (like WIN51 or WPI.ico).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.ico 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 wpipath=%cdrom%REM Force resolution to needed size for wpi interface.start /wait %wpipath%\common\VideoChanger.exe 1600x1200x32@85 -qREM Font installation - the easy waystart /wait %wpipath%\common\fonts\fontinstaller.exeREM 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 %%i:cd "%wpipath%"REM Start WPI and waiting for its endstart /wait wpi.htaREM Cleaning up the desktop.del /s/q "%systemdrive%\documents and settings\%username%\desktop\*.lnk"exit:endAs well as "winnt.sif"[GuiRunOnce] %cdrom%\Install\wpi\WPI.cmd
Create an account or sign in to comment