New fork for vmccontroller

May 2, 2012 at 11:07 AM

I created a fork from the vmccontroller source, because i like to add some new features and solve some outstandig bugs:

- button problem for x86 and x64

- set mce focus

etc.

see: https://github.com/gjniewenhuijse/MceController

Aug 6, 2012 at 10:55 AM

Oh wow, thanks! With a lot of troubleshooting, I downloaded your fork and was able to build MSIs in VS 2012 RC using the new WiX. I successfully installed the 64-bit version but have yet to do any testing. Are you planning any other changes/fixes?

Aug 11, 2012 at 5:53 PM

Any chance you would be willing to distribute this pre-compiled to x86 and x64?

Aug 18, 2012 at 11:58 AM

Hi

I think we spoke previously about this but I never got round to trying your version of VMC Controller. Two main things I am looking for are the ability to be able to launch 3rd party MCE add-ins using the GOTO command and to be able to send Shutdown / S3 sleep commands to the MCE PC. 

Can this be done ?

Many thanks 

Stuart

aka CW-KID

Aug 28, 2012 at 12:42 AM

These are the links to the setup executables compiled from the source at https://github.com/gjniewenhuijse/MceController

32-bit: https://www.dropbox.com/s/ruw08rinln804nt/Setup.msi

64-bit: https://www.dropbox.com/s/iq4w0bf0dgl5hfr/Setup_x64.msi

 

They both install but I can't confirm they actually fix the bugs with the buttons and MCE focus. What exactly were the button problems? I don't use that aspect so I am not sure exactly how to test. Please let me know how they work for you.

Sep 27, 2012 at 8:47 PM

Are you able to re-upload the latest x64 msi? Drop box links dont work. Would love to use the command 'music-list-album-artists' as the current msi does not support this.

I have downloaded the code from github.com and have been trying to compile it all evening, but keep getting errors creating the msi using wix. 

Sep 28, 2012 at 1:28 AM

Sorry for that. I was rearranging some items in my Dropbox. Here are the new links:

 

32-bit: https://www.dropbox.com/s/n7pxzyhzu73lkja/Setup.msi

64-bit: https://www.dropbox.com/s/lqmg2o0mt39rrej/Setup_x64.msi

 

I love the new album artists command as it actually seems to give proper album artists unlike the hack I was using before. Can anyone test the 32-bit version? I think there's still a bug with the commands, but I can't find a 32-bit installation anywhere and it's driving me nuts.

Sep 28, 2012 at 8:47 AM
Edited Sep 28, 2012 at 10:05 AM

Thanks Dinobud,

I'll install it over the weekend, I created a plugin for HouseBot software that uses the old version of vmccontroller.  It used the music-list-artists, always bugged me with various artist albums. Looking forward to testing the album artists.

Unfortunately I only have x64 version so can't test the x86 version.

Jul 13, 2014 at 9:34 PM
Edited Jul 13, 2014 at 9:34 PM
dinobud wrote:
Sorry for that. I was rearranging some items in my Dropbox. Here are the new links:   32-bit: https://www.dropbox.com/s/n7pxzyhzu73lkja/Setup.msi 64-bit: https://www.dropbox.com/s/lqmg2o0mt39rrej/Setup_x64.msi   I love the new album artists command as it actually seems to give proper album artists unlike the hack I was using before. Can anyone test the 32-bit version? I think there's still a bug with the commands, but I can't find a 32-bit installation anywhere and it's driving me nuts.
Are you able to re-upload the latest x64 msi? Drop box links dont work. I would love to use your fork with the JSON responses.

Thanks,
w84no1
Aug 3, 2014 at 5:35 AM
w84no1 wrote:
dinobud wrote:
Sorry for that. I was rearranging some items in my Dropbox. Here are the new links:   32-bit: https://www.dropbox.com/s/n7pxzyhzu73lkja/Setup.msi 64-bit: https://www.dropbox.com/s/lqmg2o0mt39rrej/Setup_x64.msi   I love the new album artists command as it actually seems to give proper album artists unlike the hack I was using before. Can anyone test the 32-bit version? I think there's still a bug with the commands, but I can't find a 32-bit installation anywhere and it's driving me nuts.
Are you able to re-upload the latest x64 msi? Drop box links dont work. I would love to use your fork with the JSON responses.

Thanks,
w84no1
I downloaded the code a while ago and compiled it. This should be the x64 version of the above fork. skip forward and skip back aren't working on the extender for me but they work on the host machine. here is the link.

https://www.dropbox.com/s/2af8p18gasp0037/Media%20Center%20Controller.msi
Aug 5, 2014 at 7:24 PM
boricuastock wrote:
w84no1 wrote:
dinobud wrote:
Sorry for that. I was rearranging some items in my Dropbox. Here are the new links:   32-bit: https://www.dropbox.com/s/n7pxzyhzu73lkja/Setup.msi 64-bit: https://www.dropbox.com/s/lqmg2o0mt39rrej/Setup_x64.msi   I love the new album artists command as it actually seems to give proper album artists unlike the hack I was using before. Can anyone test the 32-bit version? I think there's still a bug with the commands, but I can't find a 32-bit installation anywhere and it's driving me nuts.
Are you able to re-upload the latest x64 msi? Drop box links dont work. I would love to use your fork with the JSON responses.

Thanks,
w84no1
I downloaded the code a while ago and compiled it. This should be the x64 version of the above fork. skip forward and skip back aren't working on the extender for me but they work on the host machine. here is the link.

https://www.dropbox.com/s/2af8p18gasp0037/Media%20Center%20Controller.msi
Thanks. I use it mostly for status and sending messages to various Media Centers.
Aug 20, 2014 at 5:06 PM
I need the 32bit version but the dropbox links don't have it.
  1. Does 32 bit work (old posts say no)?
  2. If someone doesn't already have it, how can I build it?
  3. Are all these latest posts talking about the fork version?
TIA
Keith
Aug 26, 2014 at 4:52 PM
We are talking about the fork. If you download the full source from the git page you can compile it. It uses the wix toolset. You will at least need the media center SDK installed. It took me a little time to get all the dependencies and paths correct but eventually it worked. I can try and do it but it may take a few days before I can get to it myself.
Aug 26, 2014 at 9:54 PM
OK, I will d/l 7MC SDK and WiX but do I need a C# compiler or Visual studio?

Also, I see the GitHub now has two forks.

RuneHL has Updated installer build and ref. to binaries + added interop build script

dinobud has Converted all but help pages to JSON format, fixed playing individual songs, more improvements to responses given in MusicCmd, added command to download current update to desktop, limit only one thread to access the remoted WMP object and the WMC MediaExperience API wrapper object (WMP?), and lots more.

Which is best?


Oct 23, 2014 at 1:50 AM
Not sure where to ask this but thought I would post here as this thread is most recent, I am currently using MCE Controller (https://mcec.codeplex.com/) to control my WMC with iRule but it is lacking Feedback support - ie I would like to query the HTPC for channel number etc and then return that to irule to be displayed on my irule handset (phone/tablet).

with that said MCE Controller doesn't do this but I am unsure if VMCController can as so far I have not been successfully even getting it installed on Win 7 Pro 64 or 8.1 Pro 64.

Any thoughts?
Oct 29, 2014 at 4:53 PM
Edited Oct 29, 2014 at 5:07 PM
Made the x86 version and got it working

To build:
1) installed and updated VS2012 Express
2) installed WiX 3.8
3) downloaded dinobud's latest and unzipped in folder of my choice
4) opened .sln file and built release|AnyCPU (a few warnings that I ignored)
5) copied /setupx64/build.bat to /setup
6) edited above file (specifically for WIX_BUILD_LOCATION and SRC_PATH
7) ran above file to build .msi (a few warnings that I ignored)

To install:
1) run the msi

To run:
1) before first start for any user, YOU HAVE TO CREATE FOLDER C:\Users\<user name>\AppData\Roaming\Media Center Network Controller OR IT WILL FAIL ON MC STARTUP
2) start MC
3) the "telnet" port (40500) are removed, so you must use HTTP (40510). On local machine call up web page http://localhost:40510/help
4) sink port (40400) seems to work
5) haven't tried extender yet (won't be for another month)
6) keystrokes only sort of work. The code in Add-in/Commands/SendKeyCmd.cs uses SetForegroundWindow which is unreliable (won't work if you are using a web browser on the local machine for instance.
7) I think the "." (dot) key is missing. This is important for OTA stations.

I will be looking to fix the first startup bug (create folder), the SetForegroundWindow bug and add the "." key. I will advise when done...
Oct 29, 2014 at 5:01 PM
@gator99: If by " I have not been successfully even getting it installed" you mean you get an MC popup on startup saying vmccontroller failed, I think the problem is simple. Create the folder I mentioned.

I found what was wrong from the Windows Event Viewer event and looked at the trace. Buried in the event text, it mentioned it couldn't open the log file so I created it. I'm sure I only had to create the folder, though I didn't specifically try that.

You are looking to use the event sink (raw port 4040x) and I got it working on x86

Although people say this project is dead, I think a more accurate term would be "mature". It seems to work and looks fairly easy to fix/add little things yourself. I'm intending to use it as well with iRule.
Oct 29, 2014 at 5:12 PM
Thanks GeekGoneOld, no not an error on MC.

I used the install file from the codeplex page dated Feb 2009, I did finally get it installed but couldn't get it to communicate, as I had been giving the command : "http://<<my media center ip address>>:40510/version" to see if it would communicate but it didn't, so I uninstalled and tried to reinstall but no luck it gives me a permissions error.

I also tried Putty to telnet into it but no luck.

As information it is trying to install in the following directory on my Win7 Pro 64 bit machine:

"C:\Program Files (x86)\Media Center Network Controller\"
Oct 29, 2014 at 5:22 PM
I did just try the codeplex install file again, and it installed successfully, but I can't seem to get it to work, when I test to see if the port is open.
Oct 29, 2014 at 6:40 PM
D/L the x64 from the Dropbox mentioned earlier in this thread. It is from the github fork (see first post in this thread). I'm running x86 but the x64 is far more popular and seems to work based on the messages. It was last updated mid 2013.

First things I tried were putty (raw) to 40400 (sink) and http to <addr>:40500/help Both worked, but it takes, maybe, 30s after MC starts to be ready for this.

Check firewall, event viewer, netstat -a

Let me know good or bad.
Oct 30, 2014 at 1:56 AM
downloaded and installed the dropbox version, but no luck on putty (raw) or http. netstat -a doesn't show either port, also turned off firewall and nothing. - scratching my head now?
Oct 30, 2014 at 4:21 PM
  1. Does MC give any error pop up dialog when you start?
  2. Did you check windows event viewer (application log?)
  3. I assume it does show in Windows add/remove programs.
  4. If you see nothing in 1 or 2, it might not be registered with MC. There is a command to register but I haven't used it. Couldn't hurt!
To unregister (hand typed, so check for typos)
%windir%\ehome\RegisterMCEApp.exe /allusers %ProgramFilesPath%\Media Center Network Controller\VmcController.Add-In.xml /u

If it doesn't fail, it wasn't registered by the .msi install for some strange reason.

You can find the install steps that the .msi follows by looking at the wix was file in Setup x64 (not for the faint of heart) or by looking at the DevInstall.cmd file (likely a bit out of date but much easier to follow) in root of source. I would verify that the .dll files are in the GAC and that the addin is registered (by trying to unregister as above).

Let me know which tests pass and which fail.
Oct 30, 2014 at 4:31 PM
My first mistake was that I didn't uninstall the original install - which installed in the "C:\Program Files (x86)\Media Center Network Controller\" folder, then I installed the dropbox msi and it installed a single file in the "program Files" folder.

That install gave me the WMC error, so I uninstalled both and reinstalled just the msi from dropbox above, but it installed in just the "program files" folder with only one file and I get nothing on any port when I communicate, I don't think that msi is complete?


as far as the event log in Applications... Media Center:

Exception System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

at Microsoft.MediaCenter.Utilities.TimedOutOperation.Invoke(TimeSpan spanTimeout, Boolean& fTimedOut)
at MediaCenter.Extensibility.ExtensibilityPlugInEntryPointInfo.ExtensibilityPlugInLaunchInfo.LoadAddIn()
at MediaCenter.Extensibility.ExtensibilityPlugInEntryPointInfo.Launch(Object& objState)
at MediaCenter.Extensibility.ExtensibilityEntryPoint.Launch(PageBasedUCPService ucp, Object objMediaContext, Object[] entryPointParameters, String altPageUrl, ExtensibilityAutomation& exautoUsed)

InnerException System.IO.FileNotFoundException: Could not load file or assembly 'ehepg, Version=6.0.6000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.


Server stack trace:
at VmcController.AddIn.AddInModule.Initialize(Dictionary2 appInfo, Dictionary2 entryPointInfo)
at MediaCenter.Extensibility.AddInModuleWrapper.Initialize(IDictionary legacyAppInfo, IDictionary legacyEntryPointInfo)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.MediaCenter.AddIn.IAddInModule.Initialize(IDictionary appInfo, IDictionary entryPoint)

__
Currently I have uninstalled everything.__
Oct 30, 2014 at 5:29 PM
Edited Oct 30, 2014 at 5:43 PM
The missing assembly is about the EPG which, I think, was removed for 7MC.

Just looked at the file size on the Dropbox file. It is <600k. My x86 build is 844k. Think you may be on to something!

I just built the x64 and it is 800k+. I got wix errors (probably because my dev machine is x86) on the build which might not matter. If you want the file, pm me
Oct 30, 2014 at 8:46 PM
Your file seems to work, now I need to figure out if it will work with iRule.

My first goal is for it to tell me what channel I am currently viewing.
Oct 30, 2014 at 9:31 PM
So do you get putty and http to respond?

Pretty amazing considering I made it on x86 and hand edited some of the build stuff!

Let me know in detail since I, too, want to use iRule. I don't know if you can get the EPG through the sink. Hope so, that would help the iRule WAF
Nov 27, 2014 at 12:32 AM
gator99 / GeekGoneOld, I can't seem to get the event sink working - the listen port does not even show up on a netstat -a. I've tried the latest recommended Beta 2 download (Feb 13 2009) and Win7 64 and 32 bit Alpha - button command fix version on the other downloads part of the downloads page. I've also tried the version from https://www.dropbox.com/s/2af8p18gasp0037/Media%20Center%20Controller.msi (see above in this thread)

Are you guys using the version that GeekGoneOld built or something downloaded from this site?

I created the C:\Program Files (x86)\Media Center Network Controller folder and that did not help either. I get no messages in the event log.

Thoughts?

Thanks,

Bill
Dec 3, 2014 at 6:10 PM
webejcek wrote:
gator99 / GeekGoneOld, I can't seem to get the event sink working - the listen port does not even show up on a netstat -a. I've tried the latest recommended Beta 2 download (Feb 13 2009) and Win7 64 and 32 bit Alpha - button command fix version on the other downloads part of the downloads page. I've also tried the version from https://www.dropbox.com/s/2af8p18gasp0037/Media%20Center%20Controller.msi (see above in this thread)

Are you guys using the version that GeekGoneOld built or something downloaded from this site?

I created the C:\Program Files (x86)\Media Center Network Controller folder and that did not help either. I get no messages in the event log.

Thoughts?

Thanks,

Bill
sorry just saw your post, I am using a version that GeekGoneOld compiled for me from this thread, he took the 32bit and created a 64bit for me. With that said, when you try looking for the sink, you do have Windows Media Center running correct, if not it will not work.