MSFN Forum: Can Java 5.0 INSTALLDIR accept %ProgramFiles%? - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

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

Can Java 5.0 INSTALLDIR accept %ProgramFiles%? Rate Topic: -----

#1 User is offline   ran 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 18-August 04

Posted 11 October 2004 - 09:07 AM

As the title suggests, I am having a problem using the installdir to set the installation directory.

If I hardcode it (e.g. e:\Java) then it works. But, If i attempt the following:

REG ADD %KEY%\030 /VE /D "Sun Java VM v5.0" /f
REG ADD %KEY%\030 /V 1 /D "%SystemDrive%\Install\Applications\jre150.exe /s /v\"/qb ADDLOCAL=jrecore IEXPLORER=1 reboot=Reallysuppress JAVAUPDATE=0 INSTALLDIR=%ProgramFiles%\java\jre \"" /f


Then it won't unpack the .msi and install in my desired directory. I've tried adding quotes around the installdir path as well (\" ... \") , to no avail.

I just don't want it installing to 'C:\Program Files\' as C: is my swapfile partition - no files to go there!

Any ideas?
(I've tried RyanVM's as well, and for some reason his still reboots on me - hence I'm trying to use the Sun version)

Ran


#2 User is offline   sdageforde 

  • Newbie
  • Group: Members
  • Posts: 28
  • Joined: 23-August 04

Posted 11 October 2004 - 09:25 AM

I think that RyanVM repacked his installer after the same complaint you are experiencing was reported, you might what to check out the new version.

Installation in Silent Mode

See if there is anything on this webpage that might help. Doesn't say that the variable won't work.

#3 User is offline   ran 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 18-August 04

Posted 11 October 2004 - 09:42 AM

Thanks for the reply sdageforde!

I actually PM'd him yesterday and he suggested the same. So, I downloaded the new one..and still...reboot! Weird! 8-)

#4 User is offline   sdageforde 

  • Newbie
  • Group: Members
  • Posts: 28
  • Joined: 23-August 04

Posted 11 October 2004 - 09:47 AM

Bummer.... then I would go for the one from Sun.

Also, try adding a key at the top of your RunOnce defining where your program directory is going to be. Other than that.... :wacko:

#5 User is offline   ran 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 18-August 04

Posted 11 October 2004 - 11:50 AM

Hmmm...

That should already be set, I would think by my winnt.sif. I know the path is right, I just can't seem to get it interpreted correctly in the RunOnceEx.cmd file

Funny thing is, if I try this:

"%SystemDrive%\Install\Applications\jre150.exe /s /v\"/qb ADDLOCAL=jrecore IEXPLORER=1 reboot=Reallysuppress JAVAUPDATE=0 INSTALLDIR=e:\Program files\java\jre \" " /f


It still won't work, due to the space between 'Program' and 'Files'. I've tried enclosing the INSTALLDIR path with quotes (\"E:\Program Files\java\jre\") and that doesn't work either. and I get an 'incorrect parameter' message

So, my installer refuses to accept the %..% pathname, or a direct "en-quoted" path name. It has to be a straight path with no spaces for it to work (e.g. e:\java\jre).

Maybe I'm missing something basic with how msiexec or these .cmd files work..but I'm clueless!

Ran
P.S. thanks for the replies! ;)

#6 User is offline   sdageforde 

  • Newbie
  • Group: Members
  • Posts: 28
  • Joined: 23-August 04

Posted 11 October 2004 - 03:45 PM

Since it won't play nice with variables use...

<driveof your choice>:\Progra~1\<rest of path>

Hope that helps....

#7 User is offline   ran 

  • Junior
  • Pip
  • Group: Members
  • Posts: 64
  • Joined: 18-August 04

Posted 11 October 2004 - 04:45 PM

Hmm..

I completely forgot the use of tildes..... Do you think they'll still work in the RunOnceEx fields?

I'll have to give those a try..... :)

Thanks!

Ran

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