MSFN Forum: Clarification on need for $OEM$ $1 for WPI - MSFN Forum

Jump to content



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

Clarification on need for $OEM$ $1 for WPI Rate Topic: -----

#1 User is offline   dlevens 

  • Member
  • PipPip
  • Group: Members
  • Posts: 101
  • Joined: 07-September 04

  Posted 03 January 2005 - 12:41 PM

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


#2 User is offline   hasi001 

  • Coder
  • PipPipPip
  • Group: Members
  • Posts: 324
  • Joined: 27-September 04

Posted 03 January 2005 - 01:06 PM

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

#3 User is offline   Dynaletik 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 633
  • Joined: 18-September 04
  • OS:none specified
  • Country: Country Flag

Posted 04 January 2005 - 02:22 AM

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?

#4 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,338
  • Joined: 02-December 03

Posted 04 January 2005 - 03:03 AM

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.

#5 User is offline   a06lp 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 976
  • Joined: 19-August 04

Posted 04 January 2005 - 08:01 AM

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

cmdlines.txt said:

[COMMANDS]
"..\WPI\WPI.cmd"


wpi.cmd said:

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

This post has been edited by a06lp: 07 January 2005 - 08:20 AM


#6 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,338
  • Joined: 02-December 03

Posted 04 January 2005 - 08:47 AM

isn't that exactly what i hv? hehehehhe

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

#7 User is offline   a06lp 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 976
  • Joined: 19-August 04

Posted 04 January 2005 - 11:19 AM

Astalavista, on Jan 4 2005, 10:47 AM, said:

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

#8 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,338
  • Joined: 02-December 03

Posted 04 January 2005 - 11:27 AM

I remembered the code from bonedaddy and britishbulldog's post.

i am using quick batch compiler so u dont see any cmd window

mine is wpi.exe and runonceEX.exe

#9 User is offline   BritishBulldog 

  • Member
  • PipPip
  • Group: Members
  • Posts: 271
  • Joined: 11-October 04

Posted 05 January 2005 - 05:20 AM

Hi all

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


Quote

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.

#10 User is offline   hasi001 

  • Coder
  • PipPipPip
  • Group: Members
  • Posts: 324
  • Joined: 27-September 04

Posted 05 January 2005 - 06:57 AM

Bulldog's right. Therefore the option to hide the option and config button.

#11 User is offline   risolutore 

  • Newbie
  • Group: Members
  • Posts: 29
  • Joined: 08-July 04

Posted 05 January 2005 - 09:48 AM

what is is in your to do loist for WPI?
Why not autopopulate checkboxes parsing the file structure?^

#12 User is offline   hasi001 

  • Coder
  • PipPipPip
  • Group: Members
  • Posts: 324
  • Joined: 27-September 04

Posted 05 January 2005 - 09:59 AM

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

#13 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,338
  • Joined: 02-December 03

Posted 05 January 2005 - 10:14 AM

use a translator program

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