解決方式
1. 將 WPI 目錄放到磁碟機根目錄,例如 C:\ D:\。不要放在桌面。
或是
2.將 WPI.cmd 換成下面這個
WPI.cmd
======
複製程式
@ECHO OFF
REM 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=%~dp0
REM Hide this command window.
"%wpipath%\Tools\cmdow.exe" @ /hid
REM Force resolution to needed size for wpi interface.
rem start "%wpipath%\Tools\VideoChanger.exe" 1280x1024x32@85 -q
REM Font installation - the smooth and customizable way.
REM start /wait "%wpipath%\Tools\fonts\fontinstaller.exe"
REM 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 end
start /wait %windir%\system32\mshta.exe "%CD%\wpi.hta"
REM Cleaning up the desktop.
REM del /s/q "%userprofile%\desktop\*.lnk"
REM Rebooting the sytem to finalize the installation process.
REM shutdown.exe -r -f -t 30 -c "To finish installations WPI will now reboot in 30 sec..."
exit
:end