Jump to content

Clarification on need for $OEM$ $1 for WPI


Recommended Posts

I am not sure if this is a Monday after long holiday brain fart or what, but I am questioning why I have been putting WPI in $OEM$\$1\Install\WPI on my unattended CD. Doing this of course copies WPI to C:\Install\WPI but why is this needed? Why not just run WPI from the CD by putting WPI where I put most of my install programs like %cdrom%\Install\WPI?

I have a feeling this is because my install.cmd which is located $OEM$\$1\Install\install.cmd is not capable of calling WPI off the CD? Here is my code for install.cmd that kicks the whole thing off

@ECHO OFF
rem The following line hides the command window ...
cmdow @ /HID


ECHO.
ECHO Calling WPI
ECHO.
start /wait %systemdrive%\install\WPI\WPI.HTA
start /wait %systemdrive%\install\cleanup.cmd

exit

Thanks in advance for clearing this confusion up :)

Dennis

Link to comment
Share on other sites


Hi dennis. Of course you could put WPI on DVD only. The only prob is for the install.cmd to find the cdrom-drive letter

you could use the following

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:

start /wait %cdrom%\pathToWpi\wpi.hta
...

test it. could be, that you have to replace the double %% with a single %, since the syntaxk changes, when run throug cmd-file

Link to comment
Share on other sites

I put the following file into the $OEM$\$1\Install\ Path and execute it in the winnt.sif. It definitively starts WPI from CD/DVD

@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:

start %CDROM%\Install\WPI\wpi.hta

But then you can't change options in WPI because it saves the options in the useroptions.js and thats not possible on DVD/CD, or?

Link to comment
Share on other sites

what about this

in commandline.txt

i put

[COMMANDS]
"RunOnceEx.cmd"

in my runonceEX.cmd

cmdow @ /HID
@echo off

IF EXIST D:\CD.txt set CDROM=D:
IF EXIST E:\CD.txt set CDROM=E:
IF EXIST F:\CD.txt set CDROM=F:
IF EXIST G:\CD.txt set CDROM=G:
IF EXIST H:\CD.txt set CDROM=H:
IF EXIST I:\CD.txt set CDROM=I:
IF EXIST J:\CD.txt set CDROM=J:

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY%\005 /VE /D "WPI" /f
REG ADD %KEY%\005 /V 1 /D "%cdrom%\wpi\wpi.hta" /f

EXIT

and i remove the ref. in winnt.sif for GuiRunOnce=*

i think this is what bonedaddy or britishbulldog has been doing for a while.

Link to comment
Share on other sites

here's mine (real-world tested and working):

[COMMANDS]

"..\WPI\WPI.cmd"

cmdow @ /HID

@ECHO OFF

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:

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY%\001 /V 1 /D "%CDROM%\WPI\WPI.hta" /f

EXIT

If you use this exact code, without modifying the cmdlines.txt path, then make sure your WPI folder is at the ROOT of the CD (along with the i386 folder). Also, the WPI.cmd is in the WPI folder (along with WPI.hta). :)

Edited by a06lp
Link to comment
Share on other sites

isn't that exactly what i hv? hehehehhe

it looks the same. u just rename runonceEX.cmd to wpi.cmd

LOL, pretty much the same.

I posted mine for a few reasons:

- I've tested mine and it works (you didn't mention that in yours, so i thought, just in case, i'd post mine)

- mine checks EVERY drive for the cd, and it does it in one single line

- wpi.cmd is easier to understand than runonceex.cmd for the purposes of this board.

:P

Link to comment
Share on other sites

Hi all

Yes this what i have always done, starting from CD/DVD.

But then you can't change options in WPI because it saves the options in the useroptions.js and thats not possible on DVD/CD, or?

Why would you want to change the options when it is all set up and ready to install??

The whole thing is you set up the way software is installed and the looks etc and then burn to CD/DVD.

Choosing software to install is still available.

Link to comment
Share on other sites

:wacko: ???? :wacko:

explain why and post an example how. think it over twice. if i enumerate all -lets say subdirectories of a specific folder and use them as checkbox names - how should i know the installation switches, if the specifix app should be checked by default, if there are preconditions, if there are registsy entries to make, if the prog excludes another prog, if I'm hungry ... :P ???

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