MSFN Forum: Trouble calling wpi.cmd - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Trouble calling wpi.cmd Rate Topic: -----

#1 User is offline   bart of borg 

  • Member
  • PipPip
  • Group: Members
  • Posts: 177
  • Joined: 22-August 04

Posted 11 December 2005 - 08:59 PM

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!Attached File  Clipboard.jpg (120.64K)
Number of downloads: 118


#2 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,652
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 11 December 2005 - 09:41 PM

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.

This post has been edited by kelsenellenelvian: 11 December 2005 - 09:42 PM


#3 User is offline   bart of borg 

  • Member
  • PipPip
  • Group: Members
  • Posts: 177
  • Joined: 22-August 04

Posted 12 December 2005 - 02:49 AM

Yahoo! It works again! Thx Kel!!!!!!!

#4 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,652
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 12 December 2005 - 03:03 AM

No prob m8.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy