Jump to content

Wrong path for programs.


Recommended Posts


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

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 by ArjanDotOrg
Link to comment
Share on other sites

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.

for

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%

REM Hide this command window.

REM %wpipath%\Tools\cmdow.exe @ /hid

REM Special registry tweak needed.

regedit /s "%wpipath%\wpi\common\wpi.reg

echo %wpipath%\wpi\common\wpi.reg

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

E:\

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_O

i 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:\\Install

my cd path looks like

E:\WPI\

E:\Install\

why does %cdrom% change to imitate %wpipath% it would probably work fine if the 2 variables kept themselves to themselves

the annoying thing is it was working until a couple of days ago, and i cant work out what ive messed up

Edited by Dragonstar
Link to comment
Share on other sites

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

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.

u need to change the path in the cmd to something like

start /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

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 by Dragonstar
Link to comment
Share on other sites

  • 1 month later...

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%\wpi

This worked for me. Please let me know if this resolved your problem.

Edited by targa
Link to comment
Share on other sites

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%\wpi

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

all 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 OFF

REM 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%\wpi

blah blah

:end

EDIT: i have fix this problem by editing GENERATE.JS, renaming two paths from wpi.ico to WIN51 and you are gone.

Edited by SolidasRock
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...