Sunday, 25 October 2009

How to launch Media Center directly in to 3rd party app

These command line switches have been covered before but I’ve seen a few posts recently with users asking how can I launch Media Center directly in to this or that third party Media Center add-in or into a particular area of media center itself.

I’ve just tested this out and I was able to launch 7MC directly in to Media Browser, My Movies 3 and TunerFree MCE, but this method should work for any third party entry point.

You can see a list of some of these command line switches here.

A new one for 7MC for example is: ehshell.exe /nostartupanimation which will launch 7MC without the fan fair start up animation.

Ok back to launching directly into our third party apps the command is:

ehshell.exe /entrypoint:{application_guid}\{entrypoint_guid}

So in this example I will show you how to look in the registry to find the application and entrypoint GUID’s for My Movies 3.0. but you can apply this method to any media center applications you have installed.

Open up the registry editor by running regedit

Navigate to the following area in the registry:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Extensibility\Entry Points

In here you will now see a list of entry point GUID’s down the left hand side, as shown in the screen shot, click on each entry on the left hand side in turn and look in the right hand pane until you see the Media Center application you want to launch into. In this case My Movies.

Click the image for a larger view:image

Make a note of the entry point GUID value in this case it was:

{810d7b87-1300-4aed-a700-1c6179f8f14b}

image

Now on the right hand side make a note of the application GUID value in this case it was:

{8984aed5-7c9d-42f0-b2ad-c39bbcf04a25}

image

Now I have all the information I need to launch my Media Center directly in to My Movies 3.0 and my finished command line is:

ehshell.exe /entrypoint:{8984aed5-7c9d-42f0-b2ad-c39bbcf04a25}\{810d7b87-1300-4aed-a700-1c6179f8f14b}

So now I can either just create a new desktop shortcut for Windows Media Center and include my /entrypoint switch or perhaps create my own .cmd file to launch media center.

Creating a new shortcut to ehshell.exe in the C:\Windows\ehome directory

image

Copy and paste your entire /entrypoint switch after ehshell.exe as shown below.

image 

Now when I double click this new shortcut for Windows Media Center I am always taken straight into My Movies 3.0 or any other third party Media Center application of my choosing.

And as a bonus tip, run this command to launch 7MC straight in to Netflix:

windowsmediacenterapp:{e6f46126-f8a9-4a97-9159-b70b07890112}\{982ea9d3-915c-4713-a3c8-99a4688b7c59}?EntryPointParameters=

I’m assuming these are global GUID’s and will work for all users? Let me know.

7 comments:

  1. Great stuff, but this does not work for Netflix for me. MCE just crashes when trying with

    C:\Windows\ehome\ehshell.exe /entrypoint:{e6f46126-f8a9-4a97-9159-b70b07890112}\{982ea9d3-915c-4713-a3c8-99a4688b7c59}

    What do I do wrong?

    ReplyDelete
  2. Frederick, ,my MCE also crashes as well on this machine here, those GUID numbers must have been unique to the machine I tried it on when posting this blog post. Let me have a think about it.

    ReplyDelete
  3. Right... Can't seem to find Netflix in the registry either to get the right GUID numbers. Where are they?

    ReplyDelete
  4. I couldn't find them in the registry either. I've sent you an email with more information on how I got MCE to launch in to Netflix.

    ReplyDelete
  5. Brett Nottingham4 December 2010 at 18:59

    Hey Stuart,

    Just randomly found your blog while trying to figure out this Netflix launch problem. I was able to figure out the launch from web option using the Microsoft link but I haven't been able to figure out how to do it from the command line like you explained here.

    The program crashes and I basically have the same problem as Frederick. Did you ever figure out the original problem back in 2009?

    Thanks in advance for any help.

    --Brett

    ReplyDelete
  6. Not sure if I got this working with Netflix? can't remember now. I know if works OK with 3rd party add-in like My Movies.

    ReplyDelete
  7. You should be able to launch Netflix this way:

    C:\Windows\ehome\ehshell.exe /url:windowsmediacenterapp:{e6f46126-f8a9-4a97-9159-b70b07890112}\{982ea9d3-915c-4713-a3c8-99a4688b7c59}?EntryPointParameters=

    The only problem is a stupid error message which you have to click OK to. Otherwise it works just fine

    ReplyDelete