t-bullet Posted May 4, 2005 Share Posted May 4, 2005 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 Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted May 4, 2005 Share Posted May 4, 2005 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%. Link to comment Share on other sites More sharing options...
Ctwizzy Posted May 4, 2005 Share Posted May 4, 2005 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. Link to comment Share on other sites More sharing options...
t-bullet Posted May 4, 2005 Author Share Posted May 4, 2005 no , i run WPI from my harddisk but my files are on the cd-rom.greets Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted May 4, 2005 Share Posted May 4, 2005 You still need to make that change so the cdrom variable is set to %wpipath%.... Link to comment Share on other sites More sharing options...
TheeBeets Posted May 5, 2005 Share Posted May 5, 2005 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 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