Jump to content

Recommended Posts

Posted

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?


Posted

the thrid one is "Windows can not find nlite.inf" I talked to Nuhi and he

wants to know if WPI resets RunOnceEx now? Seems nLite uses it for

it's inf file.........this pops up just after WPI is finished......

th__nonlite.jpg

Posted

Bonedaddy - you would only have had to change the 'SET WPIPATH=...' line. All others should have been untouched. Stiil, your batch file seems to be correct....

Please post your config.js. Remove license keys.

Posted

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

Posted

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"

Posted

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

Posted

hah. and now I found the problem. seems, i left an echo where it shouldn't be:

Correct:

REM Make WPI directory the current directory
for /F "delims=: tokens=1" %%i in ("%WPIPATH%") DO %%i:
cd "%WPIPATH%"

Posted

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

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