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

The Robman
Site Owner
Posts: 21892
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

I just tried running setup.vbs on my XP machine at work (where I DON'T have admin rights) and while I can confirm that it does associate RMDU files with RM, I don't see any new shortcuts. At least, they're not in my RM folder, if that's where they are supposed to be.

Also, when I double click an RMDU file, rather than just getting RM pop up, I'm getting RMIR with RM on top of it. Is it possible to change it so that I just get RM?
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

The Robman wrote:I just tried running setup.vbs on my XP machine at work (where I DON'T have admin rights) and while I can confirm that it does associate RMDU files with RM, I don't see any new shortcuts. At least, they're not in my RM folder, if that's where they are supposed to be.
They are created in the Start menu.
Also, when I double click an RMDU file, rather than just getting RM pop up, I'm getting RMIR with RM on top of it. Is it possible to change it so that I just get RM?
That shouldn't be happening if you have preview4. At least it's not what happens when I do it.

At the command prompt type

Code: Select all

assoc .rmdu
You should see
.rmdu=RMDeviceUpgrade
Now type

Code: Select all

ftype RMDeviceUpgrade
What do you see? I see
RMDeviceUpgrade="C:\Program Files\Java\jre6\bin\javaw.exe" -jar "C:\RemoteMaster.v2.00\RemoteMaster.jar" -h "C:\RemoteMaster.v2.00" -rm "%1"
The Robman
Site Owner
Posts: 21892
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

Sorry, I was still on preview3 at work. I've got preview4 now and it works properly, and I can see the shortcuts on the Start menu (didn't think to look for them there).

Would it be possible to have setup.vbs also create two shortcuts in the RM folder? That's where I was expecting them to appear.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

Not sure what the RM folder is. Is it the folder in which you unzipped RM/RMIR? Try Setup.vbs
The Robman
Site Owner
Posts: 21892
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

It's the folder where RM resides, and yes it's also the folder where I've been saving setup.vbs.

I just tried the new setup and it works, the shortcuts are there, thanks.

Now I'm going to see if I can see what you're doing in there as I might try to clone it so I can fix my IR file association.
Last edited by The Robman on Tue Sep 07, 2010 3:02 pm, edited 1 time in total.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Capn Trips
Expert
Posts: 3989
Joined: Fri Oct 03, 2003 6:56 am

Post by Capn Trips »

Still no joy. Setup.vbs runs, and then:

When i click on a rmdu file I get:
Image
followed by:
Image

When i click on a rmir file I get:
Image

And when i run the assoc and ftype commands, I get:
Image

WTF?
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 »

Man I hate Windows!

Based on the presence of the " -ir" in RMRemoteConfig I would say the association was not created by the latest Setup.vbs. Either you accidentally ran an old copy, or it just isn't updating the associations. As to why that would be, I am clueless.
Capn Trips
Expert
Posts: 3989
Joined: Fri Oct 03, 2003 6:56 am

Post by Capn Trips »

I am pretty confident that I have run the latest setup.vbs.

That said, I am now searching my entire computer and am deleting every copy of setup.vbs that may be floating around out there, and will download your latest once again and give it a go.

On the other hand, is there a place where I can go and manually make this happen through brute force?
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 »

I think you can use the assoc and ftype commands to create the associations

Code: Select all

C:\RemoteMaster.v2.00>help ftype
Displays or modifies file types used in file extension associations

FTYPE [fileType[=[openCommandString]]]

  fileType  Specifies the file type to examine or change
  openCommandString Specifies the open command to use when launching files
                    of this type.

Type FTYPE without parameters to display the current file types that
have open command strings defined.  FTYPE is invoked with just a file
type, it displays the current open command string for that file type.
Specify nothing for the open command string and the FTYPE command will
delete the open command string for the file type.  Within an open
command string %0 or %1 are substituted with the file name being
launched through the assocation.  %* gets all the parameters and %2
gets the 1st parameter, %3 the second, etc.  %~n gets all the remaining
parameters starting with the nth parameter, where n may be between 2 and 9,
inclusive.  For example:

    ASSOC .pl=PerlScript
    FTYPE PerlScript=perl.exe %1 %*

would allow you to invoke a Perl script as follows:

    script.pl 1 2 3

If you want to eliminate the need to type the extensions, then do the
following:

    set PATHEXT=.pl;%PATHEXT%

and the script could be invoked as follows:

    script 1 2 3

C:\RemoteMaster.v2.00>
Capn Trips
Expert
Posts: 3989
Joined: Fri Oct 03, 2003 6:56 am

Post by Capn Trips »

OK, deleted all of my setup.vbs files (there were several) and downloaded and ran your latest again. Same symptoms.

In Control Panel, there is a "Set Associations" option. Can i not do this from that utility?

Here's what it says right now:
Image

What "program" do I assign for it to work correctly? The shortcuts do not appear anywhere as programs or files to which i can navigate. (at least as far as I can see)
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 »

Well, you do want to run Java, but you have to add extra command-line parameters. I've never used Windows 7, so I don't know if it lets you do that easily. From what I can see on that screen capture it doesn't look like there is a way to do it.

From the command line you should be able to do this, after adjusting the paths to match your system:

Code: Select all

assoc .rmdu=RMDeviceUpgrade

Code: Select all

ftype RMDeviceUpgrade="C:\Program Files\Java\jre6\bin\javaw.exe" -jar "C:\JP1\RemoteMaster.jar" -h "C:\JP1" -rm "%1"

Code: Select all

assoc .rmir=RMRemoteConfig

Code: Select all

ftype RMRemoteConfig="C:\Program Files\Java\jre6\bin\javaw.exe" -jar "C:\JP1\RemoteMaster.jar" -h "C:\JP1" "%1"
Capn Trips
Expert
Posts: 3989
Joined: Fri Oct 03, 2003 6:56 am

Post by Capn Trips »

I did just that while you were typing it (had to open a command prompt "As Administrator" first), but omitted the -h switches, and it does not work.

Then WITH the -h switches, still no good.

What is the third path for?

Here's what I've got right now:

Code: Select all

ftype RMRemoteConfig="C:\Program Files (x86)\Java\jre6\bin\javaw.exe" -jar "C:\JP1\RemoteMaster.jar" -h "%1"

assoc .rmir=RMRemoteConfig

ftype RMDeviceUpgrade="C:\Program Files (x86)\Java\jre6\bin\javaw.exe" -jar "C:\JP1\RemoteMaster.jar" -h -rm "%1"

assoc .rmdu=RMDeviceUpgrade
When I do the assoc and ftype checks, I get exactly what is above read back, yet I still get the same behavior (in the pictures above) when i double-click a file. Will try to reboot to see if that is required for these changes to take effect.
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 »

First is the fully qualified path to javaw
Second is the fully qualified path of remotemaster.jar
Third is the home folder containing protocols.ini and other needed files. This must be preceded by the -h

What you showed did not have that
eferz
Expert
Posts: 1078
Joined: Thu Jun 03, 2010 1:25 am
Location: Austin, Texas

Post by eferz »

Capn Trips wrote:What is the third path for?
Here's the breakdown.

Code: Select all

"C:\Program Files\Java\jre6\bin\javaw.exe"
Is the Java executable

Code: Select all

-jar "C:\JP1\RemoteMaster.jar"
Is argument and the file path to the java archive for "javaw.exe"

Code: Select all

-h "C:\JP1"
Is the argument and directory path for the working directory of "RemoteMaster.jar"

Code: Select all

-rm
Is the argument to run Remote Master for "RemoteMaster.jar"

Code: Select all

"%1"
Is an additional command line or shortcut arguments for "RemoteMaster.jar" .
Capn Trips
Expert
Posts: 3989
Joined: Fri Oct 03, 2003 6:56 am

Post by Capn Trips »

OK, this time I am really at my wits' end. I've made all of those changes, my command prompt displays follow:

Code: Select all

ftype RMRemoteConfig="C:\Program Files (x86)\Java\jre6\bin\javaw.exe" -jar "C:\JP1\RemoteMaster.jar" -h "C:\JP1" "%1"

assoc .rmir=RMRemoteConfig

ftype RMDeviceUpgrade="C:\Program Files (x86)\Java\jre6\bin\javaw.exe" -jar "C:\JP1\RemoteMaster.jar" -h "C:\JP1" -rm "%1"

assoc .rmdu=RMDeviceUpgrade
and they read back correctly.

The paths are correct.

Yet double-clicking on the files still gives me the errors I showed above.

When i click on a rmdu file I get:
Image
followed by:
Image

When i click on a rmir file I get:
Image

However in Control Panel, I still get the following file associations displayed:

Image
I know this is not a RM problem, but a Win 7 issue, but can anybody help me solve it? I cannot find a way to simply "delete" a file association. I can only CHANGE it to a different executable program, and the RM and RMIR shortcuts are not available options!


:evil: :evil: :evil: :evil: :evil:
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)
Post Reply