dlevens Posted January 3, 2005 Share Posted January 3, 2005 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 OFFrem The following line hides the command window ...cmdow @ /HIDECHO.ECHO Calling WPIECHO.start /wait %systemdrive%\install\WPI\WPI.HTAstart /wait %systemdrive%\install\cleanup.cmdexitThanks in advance for clearing this confusion up Dennis Link to comment Share on other sites More sharing options...
hasi001 Posted January 3, 2005 Share Posted January 3, 2005 Hi dennis. Of course you could put WPI on DVD only. The only prob is for the install.cmd to find the cdrom-drive letteryou 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 More sharing options...
Dynaletik Posted January 4, 2005 Share Posted January 4, 2005 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 offIF 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.htaBut 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 More sharing options...
Astalavista Posted January 4, 2005 Share Posted January 4, 2005 what about thisin commandline.txti put [COMMANDS]"RunOnceEx.cmd"in my runonceEX.cmdcmdow @ /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\RunOnceExREG ADD %KEY%\005 /VE /D "WPI" /fREG ADD %KEY%\005 /V 1 /D "%cdrom%\wpi\wpi.hta" /fEXITand 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 More sharing options...
a06lp Posted January 4, 2005 Share Posted January 4, 2005 (edited) here's mine (real-world tested and working):[COMMANDS]"..\WPI\WPI.cmd"cmdow @ /HID@ECHO OFFfor %%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\RunOnceExREG ADD %KEY%\001 /V 1 /D "%CDROM%\WPI\WPI.hta" /fEXITIf 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 January 7, 2005 by a06lp Link to comment Share on other sites More sharing options...
Astalavista Posted January 4, 2005 Share Posted January 4, 2005 isn't that exactly what i hv? hehehehheit looks the same. u just rename runonceEX.cmd to wpi.cmd Link to comment Share on other sites More sharing options...
a06lp Posted January 4, 2005 Share Posted January 4, 2005 isn't that exactly what i hv? hehehehheit looks the same. u just rename runonceEX.cmd to wpi.cmdLOL, 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. Link to comment Share on other sites More sharing options...
Astalavista Posted January 4, 2005 Share Posted January 4, 2005 I remembered the code from bonedaddy and britishbulldog's post.i am using quick batch compiler so u dont see any cmd windowmine is wpi.exe and runonceEX.exe Link to comment Share on other sites More sharing options...
BritishBulldog Posted January 5, 2005 Share Posted January 5, 2005 Hi allYes 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 More sharing options...
hasi001 Posted January 5, 2005 Share Posted January 5, 2005 Bulldog's right. Therefore the option to hide the option and config button. Link to comment Share on other sites More sharing options...
risolutore Posted January 5, 2005 Share Posted January 5, 2005 what is is in your to do loist for WPI?Why not autopopulate checkboxes parsing the file structure?^ Link to comment Share on other sites More sharing options...
hasi001 Posted January 5, 2005 Share Posted January 5, 2005 ???? 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 ... ??? Link to comment Share on other sites More sharing options...
Astalavista Posted January 5, 2005 Share Posted January 5, 2005 use a translator program Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now