RemoteMaster/RMIR v2.00-preview4 - setup.vbs

Discussion forum for JP1 software tools currently in use, or being developed, such as IR, KM, RemoteMaster, and other misc apps/tools.

Moderator: Moderators

Capn Trips
Expert
Posts: 3989
Joined: Fri Oct 03, 2003 6:56 am

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

Post 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?
Beginners - Read this thread first
READ BEFORE POSTING or your post will be DELETED!


Remotes: OFA XSight Touch, AR XSight Touch
TVs: LG 65" Smart LED TV; Samsung QN850BF Series - 8K UHD Neo QLED LCD TV
RCVR: Onkyo TX-SR875; Integra DTR 40.3
DVD/VCR: Pioneer DV-400VK (multi-region DVD), Sony BDP-S350 (Blu-ray), Toshiba HD-A3 (HD-DVD), Panasonic AG-W1 (Multi-system VCR);
Laserdisc: Pioneer CLD-D704.
Amazon Firestick
tape deck: Pioneer CT 1380WR (double cassette deck)
(But I still have to get up for my beer)
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

Uh-oh. Try logging in with admin privileges
Capn Trips
Expert
Posts: 3989
Joined: Fri Oct 03, 2003 6:56 am

Post by Capn Trips »

I am the only login on the machine and I have admin privileges.
Beginners - Read this thread first
READ BEFORE POSTING or your post will be DELETED!


Remotes: OFA XSight Touch, AR XSight Touch
TVs: LG 65" Smart LED TV; Samsung QN850BF Series - 8K UHD Neo QLED LCD TV
RCVR: Onkyo TX-SR875; Integra DTR 40.3
DVD/VCR: Pioneer DV-400VK (multi-region DVD), Sony BDP-S350 (Blu-ray), Toshiba HD-A3 (HD-DVD), Panasonic AG-W1 (Multi-system VCR);
Laserdisc: Pioneer CLD-D704.
Amazon Firestick
tape deck: Pioneer CT 1380WR (double cassette deck)
(But I still have to get up for my beer)
xnappo
Expert
Posts: 862
Joined: Tue Dec 30, 2003 12:29 pm

Post 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
Capn Trips
Expert
Posts: 3989
Joined: Fri Oct 03, 2003 6:56 am

Post by Capn Trips »

Will try when I come home.
Beginners - Read this thread first
READ BEFORE POSTING or your post will be DELETED!


Remotes: OFA XSight Touch, AR XSight Touch
TVs: LG 65" Smart LED TV; Samsung QN850BF Series - 8K UHD Neo QLED LCD TV
RCVR: Onkyo TX-SR875; Integra DTR 40.3
DVD/VCR: Pioneer DV-400VK (multi-region DVD), Sony BDP-S350 (Blu-ray), Toshiba HD-A3 (HD-DVD), Panasonic AG-W1 (Multi-system VCR);
Laserdisc: Pioneer CLD-D704.
Amazon Firestick
tape deck: Pioneer CT 1380WR (double cassette deck)
(But I still have to get up for my beer)
eferz
Expert
Posts: 1078
Joined: Thu Jun 03, 2010 1:25 am
Location: Austin, Texas

Post 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
Last edited by eferz on Sun Sep 05, 2010 10:07 pm, edited 1 time in total.
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

What a pain.

Does HKEY_CLASSES_ROOT\jarfile\shell\open\command exist?
eferz
Expert
Posts: 1078
Joined: Thu Jun 03, 2010 1:25 am
Location: Austin, Texas

Post 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" %*"
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post 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\
Capn Trips
Expert
Posts: 3989
Joined: Fri Oct 03, 2003 6:56 am

Post 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?
Beginners - Read this thread first
READ BEFORE POSTING or your post will be DELETED!


Remotes: OFA XSight Touch, AR XSight Touch
TVs: LG 65" Smart LED TV; Samsung QN850BF Series - 8K UHD Neo QLED LCD TV
RCVR: Onkyo TX-SR875; Integra DTR 40.3
DVD/VCR: Pioneer DV-400VK (multi-region DVD), Sony BDP-S350 (Blu-ray), Toshiba HD-A3 (HD-DVD), Panasonic AG-W1 (Multi-system VCR);
Laserdisc: Pioneer CLD-D704.
Amazon Firestick
tape deck: Pioneer CT 1380WR (double cassette deck)
(But I still have to get up for my beer)
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post 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.
Capn Trips
Expert
Posts: 3989
Joined: Fri Oct 03, 2003 6:56 am

Post 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.
Beginners - Read this thread first
READ BEFORE POSTING or your post will be DELETED!


Remotes: OFA XSight Touch, AR XSight Touch
TVs: LG 65" Smart LED TV; Samsung QN850BF Series - 8K UHD Neo QLED LCD TV
RCVR: Onkyo TX-SR875; Integra DTR 40.3
DVD/VCR: Pioneer DV-400VK (multi-region DVD), Sony BDP-S350 (Blu-ray), Toshiba HD-A3 (HD-DVD), Panasonic AG-W1 (Multi-system VCR);
Laserdisc: Pioneer CLD-D704.
Amazon Firestick
tape deck: Pioneer CT 1380WR (double cassette deck)
(But I still have to get up for my beer)
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

Alright, I think I've got the final fix now: Setup.vbs
Capn Trips
Expert
Posts: 3989
Joined: Fri Oct 03, 2003 6:56 am

Post 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?
Beginners - Read this thread first
READ BEFORE POSTING or your post will be DELETED!


Remotes: OFA XSight Touch, AR XSight Touch
TVs: LG 65" Smart LED TV; Samsung QN850BF Series - 8K UHD Neo QLED LCD TV
RCVR: Onkyo TX-SR875; Integra DTR 40.3
DVD/VCR: Pioneer DV-400VK (multi-region DVD), Sony BDP-S350 (Blu-ray), Toshiba HD-A3 (HD-DVD), Panasonic AG-W1 (Multi-system VCR);
Laserdisc: Pioneer CLD-D704.
Amazon Firestick
tape deck: Pioneer CT 1380WR (double cassette deck)
(But I still have to get up for my beer)
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

It's not you, it's me. Here's another Setup.vbs
Post Reply