Jump to content

Trouble calling wpi.cmd


Recommended Posts

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 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=%cdrom%

REM Hide this command window.
%wpipath%\Tools\cmdow.exe @ /hid

REM Force resolution to needed size for wpi interface.
start %wpipath%\Tools\VideoChanger.exe 1024x768x32@60 -q

REM Font installation - the smooth and customizable way.
start /wait %wpipath%\Tools\fonts\fontinstaller.exe

REM 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 end
start /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

:end

Winnt.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.cmd

Any suggestions would be greatly appreciated....I've searched but, I'm too tired to find the answer, I think!post-28534-1134356226_thumb.jpg

Link to comment
Share on other sites


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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...