INTERACT FORUM

More => Old Versions => JRiver Media Center 25 for Windows => Topic started by: GadgetBoy on August 10, 2019, 01:32:37 pm

Title: Can I change the name of the executable? MC25.exe VS. MC.exe?
Post by: GadgetBoy on August 10, 2019, 01:32:37 pm
I have a home automation event that runs a script that calls the media center executable and sends commands to media center.

Whenever media center is upgraded, I have to re-setup my events. Can I just rename the executable after I upgrade to a generic filename (like MC.exe) and save me the hassle of the edits?

Thanks,
Jim
Title: Re: Can I change the name of the executable? MC25.exe VS. MC.exe?
Post by: Hendrik on August 10, 2019, 01:43:11 pm
I would recommend you copy it, and not rename it, since MC itself accesses it for a few functions as well. But otherwise I don't see why that wouldn't work.
Title: Re: Can I change the name of the executable? MC25.exe VS. MC.exe?
Post by: GadgetBoy on August 10, 2019, 02:00:56 pm
I would recommend you copy it, and not rename it, since MC itself accesses it for a few functions as well. But otherwise I don't see why that wouldn't work.

Wouldn't that potentially run 2 instances of the application? If I am running MC.exe and it calls for MC25.exe, it will try to launch MC25.exe, correct?

That's how it surfaced on my PC that runs media center. I had started MC25.exe and then my script called MC24.exe and launched an instance of the prior version.
Title: Re: Can I change the name of the executable? MC25.exe VS. MC.exe?
Post by: glynor on August 10, 2019, 05:49:56 pm
Use MCcl.exe instead:
https://blog.glynor.com/mccl
Title: Re: Can I change the name of the executable? MC25.exe VS. MC.exe?
Post by: GadgetBoy on August 11, 2019, 07:06:27 am
Use MCcl.exe instead:
https://blog.glynor.com/mccl

This is awesome. Thank you very much!
Title: Re: Can I change the name of the executable? MC25.exe VS. MC.exe?
Post by: GadgetBoy on August 11, 2019, 07:59:45 am
Use MCcl.exe instead:
https://blog.glynor.com/mccl

My antivirus application is preventing me from running...
Title: Re: Can I change the name of the executable? MC25.exe VS. MC.exe?
Post by: glynor on August 11, 2019, 09:25:21 am
My antivirus application is preventing me from running...

That's because it is unknown and it looks dangerous because it shells out commands. It happens. I wrote it and swear it has nothing bad so you could just set it to trust. All it does is lookup the current version from COM (when you use the --update flag), saves the version number to a data file (%AppData%\Roaming\glynor\MCcl\MCcl.opt), and then passes everything else to MC##.exe replacing ## with the saved version number.

But if you don't like it, the copy/paste/rename method Hendrik suggested works too. This is just an easier way to update it more quickly, really.