is0xx Posted March 2, 2005 Share Posted March 2, 2005 Hello, this my first time trying to run WPI directly from the CDROMbut i keep getting the cant find D:\...The wpi Path = $OEM$\$1\Install\wpik...the FAQ on wpi's mainpage shows me an answer,cale n00b i aint getting it However, I cannot test my installers anymore. I thought I read (in this thread somewhere) that this setup would work, and WPI would install the apps from "XPCD" dir as if the whole "XPCD" dir was the root of the CD??? What's wrong?The error message I always get is "Windows cannot find D:\...."But why is it looking in D:\ (my CD-Rom drive)??? I thought it is supposed to look WHEREVER wpi is?A: Is the Windows CD in the CDROM's tray ? If yes, remove it for testing purposes.Searching for the %cdrom% path works the following way:Get all the systems drive letters and their types (eg A=Floppy, C=Hdd, D=Cdrom, E=Cdrom, X=Network)From these, take only Cdroms (D,E)On the resulting drives, look for a file called WIN51 (D:\WIN51 if Windows-CD in drive)If the file is found, then set %cdrom% = the resulting drive letter (%cdrom%=D:\), and exitIf not exited before, search the current directory for a file called WIN51While WIN51 is NOT found, set current directory = parent directory and search again, until WIN51 is found or current directory=root directory.If WIN51 is found then set %cdrom% = current directory (C:\XPCD in your case), and exitIf not exited before set %cdrom%=registry entry (HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Setup\\SourcePath)end.Remove the cd from its tray and try again.call me tick,noob whatever i really have no single clue..all settings are set to run from %CDROM%WPI.cmd@ECHO OFFREMREM 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=%%iREM Determine the WPI startup path.REM If WPI should run off the CD the replace %dp0 with %CDROM%\PathToWPIset WPIPATH=%CDROM%\WPI\regedit /S "%WPIPATH%\common\wpi.reg"for /F "delims=: tokens=1" %%d in ("%WPIPATH%") DO %%d:cd "%WPIPATH%"start /wait WPI.htaREM call any cleanup code here, or after this script.exit:endconfig.js//---------------------------------------------------------------------------------------------// Reference ... prog[0] won't be used. It's just an example // look in program.js to see explanation of these properties//--------------------------------------------------------------------------------------------- // pn=0 // start value vor prog numbering// prog[pn]=['ProgramName']// desc[pn]=['Description']// regb[pn]=['Registry Key Path']// cmd1[pn]=['CommandLine 1']// cmd2[pn]=['CommandLine 2']// cmd3[pn]=['CommandLine 3']// cmd4[pn]=['CommandLine 4']// cmd5[pn]=['CommandLine 5']// cmd6[pn]=['CommandLine 6']// rega[pn]=['Registry Key Path']// dflt[pn]=['no']// forc[pn]=['false']// cat[pn]=['Application Category']// ordr[pn]=[0]// uid[pn]=['APP1']// cond[pn]=['Javascript Conditional Statement']// deps[pn]=[]// excl[pn]=[]// pn++//---------------------------------------------------------------------------------------------// Your programs here ...//---------------------------------------------------------------------------------------------pn=1;prog[pn]=['.Net Framework 1.1']uid[pn]=['DOTNETFW']desc[pn]=['Installs Microsoft .NET Framework Redistributable Package 1.1. <i>Recommended</i>']cmd1[pn]=['%CDROM%\\Install\\DotNetFramework\\DotNetFramework1.1.exe']cmd2[pn]=['%CDROM%\\Install\\DotNetFramework\\DotNetFramework1.1sp1.exe /I /Q']dflt[pn]=['yes']cond[pn]=['FileExists("%CDROM%\\Install\\DotNetFramework\\DotNetFramework1.1.exe")']cat[pn]=['System Tools']pn++prog[pn]=['Adobe Reader 7.0 Full']desc[pn]=['Allows to view PDF-Files.<i>Recommended</i>']ordr[pn]=[5]cmd1[pn]=['%CDROM%\\Install\\AdobeReader7\acroread7.exe']dflt[pn]=['yes']cat[pn]=['Office']pn++prog[pn]=['Alcohol 120%']desc[pn]=['Create CD/DVD Images and use them as virtual drive.']cmd1[pn]=['msiexec.exe /passive /norestart /i %CDROM%\\Install\\alcohol\\setup.msi']cmd2[pn]=['REGEDIT /S %CDROM%\\Install\\alcohol\\register.reg']dflt[pn]=['yes']cat[pn]=['Multimedia']pn++any help is appriciated Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted March 2, 2005 Share Posted March 2, 2005 (edited) REM Determine the WPI startup path.REM If WPI should run off the CD the replace %dp0 with %CDROM%\PathToWPIset WPIPATH=%CDROM%\WPI\DO you actually have your files at wpi\install?if not remove the \wpi\ from your autorun ok.the only thing you really need is the %CDROM% part.Missed a part in your first post.Your cmd file should read thusly = %CDROM%\$OEM$\$1\Install\wpior change all of your prog entries to read %CDROM%\$OEM$\$1\Install\wpi\install\prog.exe and leave the cmd file to read %CDROM% Edited March 2, 2005 by kelsenellenelvian Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted March 2, 2005 Share Posted March 2, 2005 prog[pn]=['Adobe Reader 7.0 Full']desc[pn]=['Allows to view PDF-Files.<i>Recommended</i>']ordr[pn]=[5]cmd1[pn]=['%CDROM%\\Install\\AdobeReader7\acroread7.exe']dflt[pn]=['yes']cat[pn]=['Office']Also you are missin a \ between adobereader7 and the acroread7.exe Link to comment Share on other sites More sharing options...
is0xx Posted March 2, 2005 Author Share Posted March 2, 2005 ty m8..not sure wots wrong aarrg my brain this is my install.cmdrem The following line hides the command window ...cmdow @ /HIDECHO.ECHO Calling WPIECHO.start /wait %systemdrive%\install\WPI\WPI.HTAECHO ESTABLISHING CD-ROM DRIVESET CDROM=AIF EXIST D:\wpi.cmd SET CDROM=D:IF EXIST E:\wpi.cmd SET CDROM=E:IF EXIST F:\wpi.cmd SET CDROM=F:IF EXIST G:\wpi.cmd SET CDROM=G:IF EXIST H:\wpi.cmd SET CDROM=H:IF EXIST I:\wpi.cmd SET CDROM=I:IF EXIST J:\wpi.cmd SET CDROM=J:IF EXIST K:\wpi.cmd SET CDROM=K:IF EXIST L:\wpi.cmd SET CDROM=L:IF EXIST M:\wpi.cmd SET CDROM=M:IF EXIST N:\wpi.cmd SET CDROM=N:IF EXIST O:\wpi.cmd SET CDROM=O:IF EXIST P:\wpi.cmd SET CDROM=P:IF EXIST Q:\wpi.cmd SET CDROM=Q:IF EXIST R:\wpi.cmd SET CDROM=R:IF EXIST S:\wpi.cmd SET CDROM=S:IF EXIST T:\wpi.cmd SET CDROM=T:IF EXIST U:\wpi.cmd SET CDROM=U:IF EXIST V:\wpi.cmd SET CDROM=V:IF EXIST W:\wpi.cmd SET CDROM=W:IF EXIST X:\wpi.cmd SET CDROM=X:IF EXIST Y:\wpi.cmd SET CDROM=Y:IF EXIST Z:\wpi.cmd SET CDROM=Z:ECHO YOUR CD-ROM DRIVE IS %CDROM%ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\installECHO.exit$OEM$\$1\Installwpi:wpi.cmd@ECHO OFFREMREM 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%\PathToWPIset WPIPATH=%CDROM%echo WPI will run from %WPIPATH%REM Font installation - the easy wayfor /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" @ /HIDREM Special registry tweak neededregedit /S "%WPIPATH%\common\wpi.reg"REM Make WPI driectory the current directoryfor /F "delims=: tokens=1" %%i in ("%WPIPATH%") DO echo %%i:cd "%WPIPATH%"REM Start WPI and wait for its endstart /wait WPI.htaREM call any cleanup code here, or after this script.exit:endbtw ty for the adobe error..man i aint have my days and the wpi mainsite shows me only this for install.cmd:@ECHO OFFrem The following line hides the command window ...cmdow @ /HIDECHO.ECHO Calling WPIECHO.start /wait %systemdrive%\install\WPI\WPI.HTAexiti think i have to start over again Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted March 2, 2005 Share Posted March 2, 2005 start /wait %systemdrive%\install\WPI\WPI.HTAShouldn't you be calling your WPI.CMD frome this one NOT wpi.hta?Why THIS? = ECHO ESTABLISHING CD-ROM DRIVESET CDROM=AIF EXIST D:\wpi.cmd SET CDROM=D:IF EXIST E:\wpi.cmd SET CDROM=E:IF EXIST F:\wpi.cmd SET CDROM=F:IF EXIST G:\wpi.cmd SET CDROM=G:IF EXIST H:\wpi.cmd SET CDROM=H:IF EXIST I:\wpi.cmd SET CDROM=I:IF EXIST J:\wpi.cmd SET CDROM=J:IF EXIST K:\wpi.cmd SET CDROM=K:IF EXIST L:\wpi.cmd SET CDROM=L:IF EXIST M:\wpi.cmd SET CDROM=M:IF EXIST N:\wpi.cmd SET CDROM=N:IF EXIST O:\wpi.cmd SET CDROM=O:IF EXIST P:\wpi.cmd SET CDROM=P:IF EXIST Q:\wpi.cmd SET CDROM=Q:IF EXIST R:\wpi.cmd SET CDROM=R:IF EXIST S:\wpi.cmd SET CDROM=S:IF EXIST T:\wpi.cmd SET CDROM=T:IF EXIST U:\wpi.cmd SET CDROM=U:IF EXIST V:\wpi.cmd SET CDROM=V:IF EXIST W:\wpi.cmd SET CDROM=W:IF EXIST X:\wpi.cmd SET CDROM=X:IF EXIST Y:\wpi.cmd SET CDROM=Y:IF EXIST Z:\wpi.cmd SET CDROM=Z:ECHO YOUR CD-ROM DRIVE IS %CDROM%WPI.cmd will do this.All you need for the first one is to start wpi.cmd not all that other stuff.like thisECHO.ECHO Calling WPIECHO.start /wait %systemdrive%\install\WPI\WPI.CMDexitYou need to call the CMD file to set the drive letter and use the reg fix needed to not get the time-out error. Link to comment Share on other sites More sharing options...
is0xx Posted March 4, 2005 Author Share Posted March 4, 2005 oke ty for taking the time ..atm im running it from systemdrive. but i'd redo whit cdrom..i think i got it now..first need to save my ** bfore making mess again Cheers for the help bro!! : Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted March 4, 2005 Share Posted March 4, 2005 also change the %CDROM% variable to %~dp0\install\wpi since you are really runing it from the hard drive after oem copying... 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