December 12, 200520 yr I am having trouble with wpi.cmd not found after windows installs. I have tried everything i can think of and I just can't get it to run properly.....it worked with the previous version of wpi but, I switched to this one and I don't see the problem. Maybe I'm too close to the forest to see the tree i need! Here are my relevent cmds.....I have wpi.ico, as well as all my wpi scripts and folders in the root directory like the attached image, as well...WPI.cmd:@ECHO OFFREM 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.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 Hide this command window.%wpipath%\Tools\cmdow.exe @ /hidREM Force resolution to needed size for wpi interface.start %wpipath%\Tools\VideoChanger.exe 1024x768x32@60 -qREM Font installation - the smooth and customizable way.start /wait %wpipath%\Tools\fonts\fontinstaller.exeREM Special registry tweak needed.regedit /s "%wpipath%\common\wpi.reg"regedit /s "%wpipath%\common\regtweaks.reg"regedit /s "%wpipath%\common\hackef_files.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 %windir%\system32\mshta.exe "%cdrom%\wpi.hta"REM Cleaning up the desktop.del /s/q "%userprofile%\desktop\*.lnk"REM Rebooting the sytem to finalize the installation process.shutdown.exe -r -f -t 60 -c "To finish installations Windows will now reboot in 60 sec..."exit:endWinnt.sif:;SetupMgrTag[Data] AutoPartition=0 MsDosInitiated="0" UnattendedInstall="Yes"[Unattended] UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=Yes UnattendSwitch="yes" TargetPath=\WINDOWS[GuiUnattended] AdminPassword=* EncryptedAdminPassword=NO AutoLogon=Yes AutoLogonCount=1 OEMSkipRegional=1 TimeZone=10 OemSkipWelcome=1[UserData] ProductKey=*****-*****-*****-*****-***** FullName="************" OrgName="************" ComputerName="**********"[Display] BitsPerPel=32 Xresolution=1024 YResolution=768 Vrefresh=60 Autoconfirm=1[RegionalSettings] LanguageGroup=1 SystemLocale=00001009 UserLocale=00001009 InputLocale=1009:00000409[Networking] InstallDefaultComponents=Yes [Identification] JoinWorkgroup=mshome[Components] msmsgs=off msnexplr=off freecell=off hearts=off minesweeper=off pinball=off solitaire=off spider=off zonegames=off[GuiRunOnce] command1=%systemdrive%\DP\BTS_DPs_Control_Panels.cmd command2=%cdrom%\WPI.cmdAny suggestions would be greatly appreciated....I've searched but, I'm too tired to find the answer, I think!
December 12, 200520 yr Place WPI.cmd in your $OEM$\$$\SYSTEM32 and call it from winnt.sif like so:[GuiRunOnce] "%systemroot%\system32\wpi.cmd"For some reason a lot of people seem to have problems running wpi.cmd from the cd. Edited December 12, 200520 yr by kelsenellenelvian
Create an account or sign in to comment