Jump to content

Getting 3.3.5 ready.......


Recommended Posts

Ok, is this going to work? I have wpi335 on the cd at software\wpi and

wpi.cmd at $oem$\$1\install\wpi.cmd

@ECHO OFF

REM

REM WPI startup something.

REM

REM Example, how to look for CDROM-drive. Must have a file called WIN51 in its root.

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%\PathToWPI

set WPIPATH=%cdrom%\software\wpi

echo WPI will run from %cdrom%\software\wpi

REM Font installation - the easy way

for /R %%i in ( *.ttf ) do (

echo Installing font %%~ni.ttf

copy /Y "%%~fi" "%windir%\Fonts" > nul

"%cdrom%\software\wpi\common\installfont.exe" "%windir%\Fonts\%%~ni.ttf" > nul

)

REM Hide this command window

REM "%WPIPATH%\common\cmdow.exe" @ /HID

REM Special registry tweak needed

regedit /S "%CDROM%\software\wpi\common\wpi.reg"

REM Make WPI driectory the current directory

for /F "delims=: tokens=1" %%i in ("%cdrom%\software\wpi") DO echo %%i:

cd "%cdrom%\software\wpi"

REM Start WPI and wait for its end

start /wait WPI.hta

REM call any cleanup code here, or after this script.

exit

thanks for lookin'

BD

EDIT

Oh yes, does that _________next_________at the bottom stay there all the time?

Link to comment
Share on other sites


re: the waits

MS Office 2k extracts then needs to install but RunOnce starts to move to the

next program unless I stop it with wait........ Not installing when errors occur.

ATI drivers like a little time between them, also not installing during this test.....

BD

Link to comment
Share on other sites

WOW, got it working PERFECT.......just not from cd, had to move from cd to

$oem$\$1\install\wpi

I was using cmdlines to call RunOnceEx and using it to call WPI, that is a no no

for me, causes the IE is running slow, and will mess up nLite.inf............

can not make it work from cd here;

REM Make WPI driectory the current directory

for /F "delims=: tokens=1" %%i in ("%cdrom%\software\wpi") DO echo %%i:

cd "%cdrom%\software\wpi"

Link to comment
Share on other sites

I just use my old SIMPLE code and it works perfectly for me!!!

cmdow.exe @ /HID
@echo off

IF EXIST D:\WIN51 set CDROM=D:
IF EXIST E:\WIN51 set CDROM=E:
IF EXIST F:\WIN51 set CDROM=F:
IF EXIST G:\WIN51 set CDROM=G:
IF EXIST H:\WIN51 set CDROM=H:
IF EXIST I:\WIN51 set CDROM=I:
IF EXIST J:\WIN51 set CDROM=J:
IF EXIST K:\Win51 set CDROM=K:

%CDROM%

cd %CDROM%\Install\WPI\commmon\

regedit /S WPI.reg

cd %CDROM%\Install\WPI\

start /wait WPI.hta

exit

Link to comment
Share on other sites

I want to run this from a dvd I am getting errors

I dont understand the color red statement.

Can we pls hv some instructions?

@ECHO OFF

REM

REM WPI startup something.

REM

REM Example, how to look for CDROM-drive. Must have a file called WIN51 in its root.

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%\PathToWPI

set WPIPATH=%~dp0

echo WPI will run from %WPIPATH%

REM Font installation - the easy way

for /R %%i in ( *.ttf ) do (

echo Installing font %%~ni.ttf

copy /Y "%%~fi" "%windir%\Fonts" > nul

"%WPIPATH%\common\installfont.exe" "%windir%\Fonts\%%~ni.ttf" > nul

)

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 echo %%i:

cd "%cdrom%\software\wpi"

REM Start WPI and wait for its end

start /wait WPI.hta

REM call any cleanup code here, or after this script.

exit

:end

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