Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can Java 5.0 INSTALLDIR accept %ProgramFiles%?

Featured Replies

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

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.

  • Author

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

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:

  • Author

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! ;)

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

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

Hope that helps....

  • Author

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

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.