Jump to content

wpi problems


Recommended Posts

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 OFF

REM
REM 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=%~dp0

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

REM Font installation - the smooth and customizable way.
start /wait %wpipath%\common\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 WPI.hta

REM Cleaning up the desktop.
del /s/q "%userprofile%\desktop\*.lnk"

REM Confirming a reboot...
echo Dim WshShell, oExec>%tmp%\WPI.vbs
echo Set WshShell = CreateObject("WScript.Shell")>>%tmp%\WPI.vbs
echo answer = Msgbox("The installation process has finished. Do you wish to reboot now?",VBYesNo,"Windows Post Installation Wizard")>>%tmp%\WPI.vbs
echo if answer = 6 then>>%tmp%\WPI.vbs
echo oExec = WshShell.Run("SHUTDOWN -r -t 0", 1, true)>>%tmp%\WPI.vbs
echo end if>>%tmp%\WPI.vbs
echo set WshShell = nothing>>%tmp%\WPI.vbs
%tmp%\WPI.vbs
del /q %tmp%\WPI.vbs

exit

:end

When 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\Install

In my WPI configuration it's like this :

%CDROM%\install\mpeg2\MPEG-2.EXE /s

can someone give me some advice pls?

thanks

Filip

Link to comment
Share on other sites


So this will allow files to be loaded from cd? And thats all thats needed?

@ECHO OFF

REM

REM 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 -q

REM Font installation - the easy way

start /wait %wpipath%\common\fonts\fontinstaller.exe

REM Hide this command window

"%wpipath%\common\cmdow.exe" @ /hid

REM Special registry tweak needed

regedit /s "%wpipath%\common\wpi.reg"

REM Make WPI driectory the current directory

for /f "delims=: tokens=1" %%i in ("%wpipath%") do %%i:

cd "%wpipath%"

REM Start WPI and waiting for its end

start /wait wpi.hta

REM Cleaning up the desktop.

del /s/q "%systemdrive%\documents and settings\%username%\desktop\*.lnk"

exit

:end

As well as "winnt.sif"

[GuiRunOnce]              %cdrom%\Install\wpi\WPI.cmd
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...