Page 1 of 3

Re: RemoteMaster/RMIR v2.00-preview4 is now available

Posted: Sun Sep 05, 2010 9:25 am
by Capn Trips
gfb107 wrote: [*]Launch RM directly from RM shortcut (Run Setup.vbs to create/update the shortcuts)
When i run Setup.vbs, I get an error message:

Image

What does it mean? ..and more importantly, how do I fix it?

Posted: Sun Sep 05, 2010 10:59 am
by gfb107
Uh-oh. Try logging in with admin privileges

Posted: Sun Sep 05, 2010 4:19 pm
by Capn Trips
I am the only login on the machine and I have admin privileges.

Posted: Sun Sep 05, 2010 4:23 pm
by xnappo
Capn Trips wrote:I am the only login on the machine and I have admin privileges.
But have you right-clicked and done 'run as administrator'?

xnappo

Posted: Sun Sep 05, 2010 4:27 pm
by Capn Trips
Will try when I come home.

Posted: Sun Sep 05, 2010 6:21 pm
by eferz
I understand the difference between the administrator account and the equivalent given to user accounts. However, because the Setup.vbs file is a vb script file and not an executable, you don't have the option to "Run as administrator". So, I logged in as Administrator...

Image

The issue seems to be more specific to the "JavaHome" key being in a different place on 64-bit systems. This is where I found it instead.

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment\1.6]
"JavaHome"="C:\\Program Files (x86)\\Java\\jre6"
"RuntimeLib"="C:\\Program Files (x86)\\Java\\jre6\\bin\\client\\jvm.dll"
"MicroVersion"="0"
As a work around, I created a short-cut for "RM" specifying "-rm" as an argument for "RemoteMaster.jar". Where as without any arguments, double-clicking on "RemoteMaster.jar" will bring me into "RMIR" directly.

Image
Uploaded with ImageShack.us

Posted: Sun Sep 05, 2010 7:04 pm
by gfb107
What a pain.

Does HKEY_CLASSES_ROOT\jarfile\shell\open\command exist?

Posted: Sun Sep 05, 2010 7:17 pm
by eferz
gfb107 wrote:What a pain.

Does HKEY_CLASSES_ROOT\jarfile\shell\open\command exist?
Yes.

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\jarfile\shell\open\command]
@=""C:\\Program Files (x86)\\Java\\jre6\\bin\\javaw.exe" -jar "%1" %*"

Posted: Mon Sep 06, 2010 6:59 pm
by gfb107
Here's a version of Setup.vbs that will try the following 3 keys one after the other to find javaw.exe

HKLM\SOFTWARE\JavaSoft\Java Runtime Environment\1.6\JavaHome
HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment\1.6\JavaHome
HKCR\jarfile\shell\open\command\

Posted: Tue Sep 07, 2010 8:54 am
by Capn Trips
Better.

Now the script runs, at least, but I get a pop-up that says:

"Program shortcuts were not created because javaw.exe was not found."

I am running Win 7 64-bit. Javaw.exe is installed in its default directory (C:\Program Files (x86)\Java\jre6\bin)

RMIR runs fine, so i know that the system can "find" the program, but no matter where I put setup.vbs, I get that pop-up about being unable to find javaw.exe.

I have run setup.vbs from the default download directory, moved it to c:\Program Files(x86)\java directory and each subordinate folder including the \bin folder, and I always get the same pop-up. How can I tell the vbs where to look for the javaw.exe file?

Posted: Tue Sep 07, 2010 9:20 am
by gfb107
One more try: Setup.vbs


It must be run from the folder in which you unzipped RM/RMIR

Setup.vbs is a text file, so you can edit it in Notepad.

Posted: Tue Sep 07, 2010 10:27 am
by Capn Trips
Well, it ran, but both created shortcuts open in RMIR. I edited the properties of the one labeled RemoteMaster and manually added the -rm switch and it works now.

Posted: Tue Sep 07, 2010 10:54 am
by gfb107
Alright, I think I've got the final fix now: Setup.vbs

Posted: Tue Sep 07, 2010 12:00 pm
by Capn Trips
Success! Thanks.

That said, I just checked and although I now have functioning shortcuts, the file association has not occurred.

This is not to say that I've EVER had the RM file association work, I have not, but I just read that setup.vbs should ESTABLISH those file associations.

I'm sure that it;s due to years of overwriting and manually replacing various files here and there, but ...

What do I have to do so that I can double-click on a rmdu file and have RM open, and to double-click on a RMIR file and have RMIR open?

I've tried the "open with.." and then select program trick, but neither of the RM or RMIR shortcuts is an option. I've tried associating it with Java, with remotemaster.jar, and with remotemaster.bat, but none of those work either.

What have i screwed up?

Posted: Tue Sep 07, 2010 12:07 pm
by gfb107
It's not you, it's me. Here's another Setup.vbs