ran Posted October 11, 2004 Share Posted October 11, 2004 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" /fREG 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 \"" /fThen 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 Link to comment Share on other sites More sharing options...
sdageforde Posted October 11, 2004 Share Posted October 11, 2004 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 ModeSee if there is anything on this webpage that might help. Doesn't say that the variable won't work. Link to comment Share on other sites More sharing options...
ran Posted October 11, 2004 Author Share Posted October 11, 2004 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-) Link to comment Share on other sites More sharing options...
sdageforde Posted October 11, 2004 Share Posted October 11, 2004 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.... Link to comment Share on other sites More sharing options...
ran Posted October 11, 2004 Author Share Posted October 11, 2004 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 fileFunny 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 \" " /fIt 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' messageSo, 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!RanP.S. thanks for the replies! Link to comment Share on other sites More sharing options...
sdageforde Posted October 11, 2004 Share Posted October 11, 2004 Since it won't play nice with variables use...<driveof your choice>:\Progra~1\<rest of path>Hope that helps.... Link to comment Share on other sites More sharing options...
ran Posted October 11, 2004 Author Share Posted October 11, 2004 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 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