Kelsenellenelvian Posted September 22, 2005 Share Posted September 22, 2005 Also delete the install from here:REM Determine the WPI startup path. REM if wpi should run off the cd the replace %~dp0 with %cdrom%.set wpipath=%cdrom%\INSTALL <---- Link to comment Share on other sites More sharing options...
ArjanDotOrg Posted September 22, 2005 Author Share Posted September 22, 2005 (edited) How many cd drives do you have? Why is there a drive k? CMD Shows the right drive?I have 2 CD drives K: & L:. L: is empty when I run a test in K:.Also delete the install from here:REM Determine the WPI startup path. REM if wpi should run off the cd the replace %~dp0 with %cdrom%.set wpipath=%cdrom%\INSTALL <----<{POST_SNAPBACK}>You advised me to do this earlier, but now I removed it - It says 'set wpipath=%cdrom%'.Now it wants to start WPI.HTA from K:'s root, and as said before, the file resides in K:\$OEM$\$1\install\WPI.So that also didn't work.Got another idea?Thank you for your help anyway. Edited September 22, 2005 by ArjanDotOrg Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted September 22, 2005 Share Posted September 22, 2005 K:\$OEM$\$1\install\WPI? AHA so the files reside at: K:\$OEM$\$1\install\WPI\install?So I am sorry then the %cdrom% entry would be = %cdrom%\$OEM$\$1\install\WPI Link to comment Share on other sites More sharing options...
Dragonstar Posted September 22, 2005 Share Posted September 22, 2005 (edited) im having the same problem and its reall weird because it used to work, i run wpi from the cd, and ive tried to change so many things, and something that works when i test it locally doesnt work when i create the iso, its frustrating, it would work perfectly if it wasnt for %wpipath% somehow changing the %cdrom% variable to match it, so before "set wpipath=%cdrom%" %cdrom% = E: after it %cdrom% = E:\ so i tried taking the extra \ from the config.js and it went even stranger, its been doing my head in for the last 2 days, lol, i need %cdrom% to just = E: because i use it for switching cd's E:\ wont work for this purpose, and for some reason it changed what drive is the cd, lol, ive commented out the cmdow so i can see whats happening.forecho 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%.set wpipath=%cdrom%REM Hide this command window.REM %wpipath%\Tools\cmdow.exe @ /hidREM Special registry tweak needed.regedit /s "%wpipath%\wpi\common\wpi.regecho %wpipath%\wpi\common\wpi.regREM Make WPI directory the current directory.for /f "delims=: tokens=1" %%i in ("%wpipath%") do %%i:cd "%wpipath%"i get..Found CD-Rom as drive E:E:\wpi\common\wpi.regE:\but when it tried to install i get "Windows can not find D:\Install\trillian-v3.1.exe..."so its also changes which letter is the CD-Rom for some reason o_Oi also had to change the path in config.js to cmd1[pn]=['%CDROM%Install\\trillian-v3.1.exe /VERYSILENT']Otherwise it tried to install to D:\\Installmy cd path looks likeE:\WPI\E:\Install\why does %cdrom% change to imitate %wpipath% it would probably work fine if the 2 variables kept themselves to themselvesthe annoying thing is it was working until a couple of days ago, and i cant work out what ive messed up Edited September 22, 2005 by Dragonstar Link to comment Share on other sites More sharing options...
Dragonstar Posted September 22, 2005 Share Posted September 22, 2005 How many cd drives do you have? Why is there a drive k? CMD Shows the right drive?I have 2 CD drives K: & L:. L: is empty when I run a test in K:.Also delete the install from here:REM Determine the WPI startup path. REM if wpi should run off the cd the replace %~dp0 with %cdrom%.set wpipath=%cdrom%\INSTALL <----<{POST_SNAPBACK}>You advised me to do this earlier, but now I removed it - It says 'set wpipath=%cdrom%'.Now it wants to start WPI.HTA from K:'s root, and as said before, the file resides in K:\$OEM$\$1\install\WPI.So that also didn't work.Got another idea?Thank you for your help anyway.<{POST_SNAPBACK}>u need to change the path in the cmd to something likestart /wait %windir%\system32\mshta.exe "%CD%\install\wpi\wpi.hta"or it might be %systemdrive%\install\wpi\wpi.hta cantt remember Link to comment Share on other sites More sharing options...
Dragonstar Posted September 22, 2005 Share Posted September 22, 2005 (edited) UG!!!!I think ive found why its no longer working for me!i just checked the generate.js and apparently it looks for a wpi.ico to get the drive letter.... yeah... i removed that.. why thats been hardcoded into it is beyond me anyway, lol, just gonna test now.Yeah that works now,Person who started this thread, have you deleted the wpi.ico as well? im guessing you have because you had the exact same problems i was having, just put it back, lol Edited September 22, 2005 by Dragonstar Link to comment Share on other sites More sharing options...
Lysdexic96 Posted September 30, 2005 Share Posted September 30, 2005 (edited) nm Edited September 30, 2005 by Lysdexic96 Link to comment Share on other sites More sharing options...
targa Posted November 2, 2005 Share Posted November 2, 2005 (edited) I had your same problem and i resolved it as follows:My WPI files reside in a folder named WPI on the root directory of the cdrom and the programs in a folder named Applications in the WPI folder.1) change the path of wpi.ico i.e.REM Example, how to look for CDROM-drive. Must have WPI.ico at the root of the CD.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:\wpi\wpi.ico set CDROM=%%i:echo Found CD-Rom as drive %CDROM%2) change wpipath from %~dp0 to the path where you have wpi folder on your cdrom i.e. set wpipath=%cdrom%\wpiThis worked for me. Please let me know if this resolved your problem. Edited November 2, 2005 by targa Link to comment Share on other sites More sharing options...
Solid as a rock Posted November 9, 2005 Share Posted November 9, 2005 (edited) I had your same problem and i resolved it as follows:My WPI files reside in a folder named WPI on the root directory of the cdrom and the programs in a folder named Applications in the WPI folder.1) change the path of wpi.ico i.e.REM Example, how to look for CDROM-drive. Must have WPI.ico at the root of the CD.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:\wpi\wpi.ico set CDROM=%%i:echo Found CD-Rom as drive %CDROM%2) change wpipath from %~dp0 to the path where you have wpi folder on your cdrom i.e. set wpipath=%cdrom%\wpiThis worked for me. Please let me know if this resolved your problem.It dont work for me, i have WPI in Install. so it is cdrom:\install\wpi\wpi.icoall other applications are in Install too (for example: cdrom:\install\framework , cdrom:\install\adobe and go so on)when i do install whatever, i get a path with \install\wpi\install\whatever. i have make the changes you talking about, but it dont fix my problem...@ECHO OFFREM Example, how to look for CDROM-drive. 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%.set wpipath=%cdrom%\wpiblah blah:endEDIT: i have fix this problem by editing GENERATE.JS, renaming two paths from wpi.ico to WIN51 and you are gone. Edited November 9, 2005 by SolidasRock 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