Hacking Windows 7 Media Center

Theme Media Center: Changing the Background

by Michael Healy @ 6:55 am on February 10th, 2009 in themes with 33 Comments and Permalink

Everyone wants to stand apart from the crowd, unfortunately Media Center doesn’t allow you to easily change the appearance of your setup. Windows 7 may have added better support for themes but Media Center has still ended up stuck with “boring blue.” There is hope though, it may not be easy but you can alter the look of your Media Center interface.

Media Center New Background Start Menu

Step One: Backup Your Files!!

The first thing you should do is go to “C:\Windows\ehome” and and make two copies of the file “ehres.dll”. Save one to a folder for editing and save the other somewhere safe just in case you want to undo your changes.

You also need to apply this registry file. Download the file to your machine and double-click to apply the fix to your machine. Once you’ve done that right-click the original file and select “Take Ownership”. This allows the file to be replaced later on.

Step Two: Get an Image

You need an image to use for the background. The default is 500 pixels wide by 300 pixels high (500×300) but you can use images of varying height. This allows for high definition 1080p and 720p files to replace that boring low-res blue. For this guide lets use this image which can be downloaded from the author below:

HomeWorld by Phil2001

(“Homeworld” – Made by phil2001 of DeviantArt)

Step Three: Insert into the ”ehres.dll” file

To edit the ehres.dll file a resource editor is required. For this guide you should download Restorator. The program isn’t free but does have a 30 trial availalbe for download. This editor allows you to view png files inside the dll file and works on x86 and x64 machines.

Once inside Restorator open the ehres.dll file you have copied to be edited. Expand the “RCData” section and scroll down until you find “Common.Animated.Background.png”. Right-click the file and select “assign > assign to” from the menu. Then browse to and select the background file you want to use.

Edit ehres.dll in Restorator

Once that is complete save the file.

Step Four: Replace the original “ehres.dll”

Once you have your edited file (and your backup!) copy the edited file from where you have it saved and paste it into the “C:\Windows\ehome” directory replacing the old one. Remember you must have the “Take Ownership” registry fix applied to this file to allow it to be replaced.

Step Five: Launch Media Center

Now you should be able to launch Media Center and see your new background in place. The animated portions of the background will not have been changed, however. To change these you must replace “common.background.layer1.png”, “common.background.layer2.png” and “common.background.layer3.png”. These are the files that are loaded onto the screen to make it appear animated.

Media Center New Background

That’s all there is to changing your Media Center background! Keep in touch with Hack7MC for future theme guides for Windows 7 Media Center. Hopefully, this article will be the first of many to come.

Want to get even deeper? Look at this guide on creating an entire theme for Media Center! Be sure to follow along on the RSS Feed or Twitter as well to get all the latest information.

33 Comments


Josh Pollard
Comment #82 from Josh Pollard [Reply]

i would think someone ought to be able to write an application to make this process is a whole lot easier. thanks for the post though! its a cool idea!

Comment left February 10, 2009 at 10:07 am with Permalink

MHealy
Comment #83 from MHealy [Reply]

That would be wonderful to have an app to design custon Media Center themes with. Unfortunately, I don’t have the time to code one myself. This method isn’t too difficult I was just disappointed I couldn’t find a better resource editor that supported pngs (something free would have been nice!).

Comment left February 10, 2009 at 11:09 am with Permalink

Anonymous
Comment #84 from Anonymous [Reply]

Thank you for posting this! Just had a quick trial and very simple to follow.

Unfortunately my artistic skills are limited, so its a case of the better half firing up PhotoShop to do some funky graphics :-)

Comment left February 15, 2009 at 11:06 am with Permalink

MHealy
Comment #85 from MHealy [Reply]

No problem! I try to keep the guides as simple as possible for those times when I need to go back and read them myself, lol.

Comment left February 15, 2009 at 7:40 pm with Permalink

Anonymous
Comment #86 from Anonymous [Reply]

That screen shot looks like the result of hitting the green button while playing a video (with the video commands at the bottom).

Do you have a screen shot that is not like a pause shot? This is similar to the swimming fish VMC always showed.

Comment left February 17, 2009 at 8:21 pm with Permalink

MHealy
Comment #87 from MHealy [Reply]

Yep, I added it as the last image in the article or you can get the larger view here: large background preview

Comment left February 18, 2009 at 6:26 am with Permalink

Anonymous
Comment #88 from Anonymous [Reply]

The takeown reg tweak doesn’t work.

Comment left February 19, 2009 at 1:11 pm with Permalink

MHealy
Comment #89 from MHealy [Reply]

I’m not sure why the reg fix wouldn’t be working for you. What version of Windows are you running?

In the mean time, open an elevated cmd prompt (start, type cmd, press ctrl+shift+enter) and type “takeown /f C:\Windows\ehome\ehres.dll”. Change the Windows directory if you have it install somewhere other than the default.

Comment left February 19, 2009 at 7:55 pm with Permalink
Comment #409 from CrorgofeX [Reply]

hm… thank you ))

Comment left April 22, 2009 at 10:05 am with Permalink

Magnus
Comment #412 from Magnus [Reply]

i get everything to work but not when I am am replacing the file. I dont know how to wright it in English, but i think it says det file is open

Comment left April 22, 2009 at 3:46 pm with Permalink
@Reply #415 from MichaelHealy [Reply]

If you are unable to replace the file it’s most likely due to Media Center still having the file open. It may be necessary to stop any Media Center services and programs, such as ehshell.exe through the task manager before replacing the file.

You could also try to restart and then replace the file first thing before running any other programs. This will ensure that the file isn’t in use by Media Center (as long as you don’t have Media Center set to automatically restart on startup).

Comment left April 22, 2009 at 6:25 pm with Permalink

Bobby
Comment #1016 from Bobby [Reply]

I don’t think this registry patch works under 7 RC 1. I tried it and immediately after applying the changes I can no longer start MCE, task manager, copy files, or even run system restore (under 7 itself, running it off the boot disk works fine).

Comment left May 12, 2009 at 7:54 pm with Permalink
@Reply #1019 from Michael Healy [Reply]

The registry fix works perfectly on every machine I’ve used it on, including both x86 and x64 RC1. It only adds an extra entry to your right click menu.

It sounds like you may have some file corruption if you’re experiencing such widespread symptoms.

Comment left May 12, 2009 at 9:27 pm with Permalink

t41
Comment #1616 from t41 [Reply]

nice hack works great, mow dont have to wait for theme I like. Very easy to do.

Comment left June 13, 2009 at 4:44 pm with Permalink

Xzener
Comment #2045 from Xzener [Reply]

Ok, now how do we change the cheesy startup sound??

Comment left July 8, 2009 at 8:39 am with Permalink
@Reply #2046 from Michael Healy [Reply]

I’m not sure what it’s named but use the same method to change the sounds. There are a handful of .wav files in the ehres.dll that are used by Media Center.

Comment left July 8, 2009 at 9:08 am with Permalink

Xzener
Comment #2168 from Xzener [Reply]

Fianlly figured out the startup sound. Thanks MHealy!!

Comment left July 17, 2009 at 2:10 pm with Permalink

Anonymous
Comment #2435 from Anonymous [Reply]

There was a Program called Vista MediaCenterFX that allowed you to edit every image and sound in Media Center,then you could save it as a theme,and apply it with the built in theme manager of MediaCenterFX. It’s not available commercially anymore,but if you look around or google it i’m sure you could find a copy,it’s awesome.

Comment left August 2, 2009 at 6:34 am with Permalink

gary gnu
@Reply #5554 from gary gnu [Reply]

i like jello. no i mean i like it alot. i rub it everywhere

Comment left December 10, 2009 at 12:45 am with Permalink

Anonymous
Comment #2436 from Anonymous [Reply]

Atleast with MediaCenterFX you could package your themes to share with everyone,that’s what we need something like that now. A new background doesn’t do media center justice,especially when MediaCenterFX you change the backgrounds,icons,sounds,fonts and font colour and the shards animation aswell!!! I have a copy of this software,so if anyone want’s it leave a comment here. If enough people want it then i might post it for all to have. So then we can share all our themes!

Comment left August 2, 2009 at 6:40 am with Permalink
@Reply #2484 from Michael Healy [Reply]

I believe someone over at Aus Media Center Community forums is currently working on an application to theme 7MC but I wasn’t able to find the thread off hand

Comment left August 3, 2009 at 9:06 pm with Permalink

CoreFlood
Comment #4538 from CoreFlood [Reply]

Hello, just did this and it works great… except that the registry file overrode my “Open” function with “Take Ownership” and I didn’t think to backup my registry.

Not that it matters since I’m unable to open the regedit.exe and cmd.exe and certain other things system related…

Help…

Comment left November 4, 2009 at 7:07 am with Permalink
@Reply #4542 from Michael Healy [Reply]

That definitely shouldn’t happen. It sounds like you’ve got some serious system corruption unrelated to Media Center and you may want to try a system restore or even a reinstall of the operating system.

Comment left November 4, 2009 at 8:39 am with Permalink

Anonymous
Comment #5949 from Anonymous [Reply]

Just what I was looking for, thanks. On a separate note, what is the “Live Concerts” link on the music strip in the screenshot?

Comment left December 24, 2009 at 12:54 am with Permalink

Magno
Comment #6040 from Magno [Reply]

Hi…

my computer “say’s” that I’m not permissions to change that…

how can I change this???

thanks…

Comment left December 27, 2009 at 10:20 am with Permalink

Magno
@Reply #6041 from Magno [Reply]

I fixed the problem using unlocker…

:D

Comment left December 27, 2009 at 10:33 am with Permalink

D-Lion
Comment #6275 from D-Lion [Reply]

Hey when I try to replace the ehres.dll file.. it says I need permission, and I am the admin so I give permission to replace it, then it just says I need permission again and says Try Again or Cancel. I can’t do anything.

Comment left January 3, 2010 at 9:42 pm with Permalink

D-Lion
Comment #6276 from D-Lion [Reply]

By the way I have tired the reg file and it did not work. I use 64 bit windows 7.

Comment left January 3, 2010 at 9:45 pm with Permalink

D-Lion
Comment #6277 from D-Lion [Reply]

Wow nevermind I forgot the right click and take ownership part.

Comment left January 3, 2010 at 9:46 pm with Permalink

Shantam
Comment #6432 from Shantam [Reply]

Hey when I try to replace the ehres.dll file.. it says I need permission, and I am the admin so I give permission to replace it, then it just says I need permission again and says Try Again or Cancel. I can’t do anything.

Same with me…

Please HELP

Comment left January 8, 2010 at 9:55 am with Permalink

Anonymous
@Reply #6968 from Anonymous [Reply]

You need to run the Take Ownership command via right-click of the file.

Comment left January 23, 2010 at 3:11 am with Permalink

Anonymous
Comment #6967 from Anonymous [Reply]

I’m curious.

I’ve removed just about every Common.Background except for the actual background image of choice in an effort to remove the flashing pixels. I originally thought the default “shards” were the cause of the pixel noise, but even removing them all doesn’t change or remove the effect. Has anyone else experienced this?

File edited using Restorator.

Thanks!

Comment left January 23, 2010 at 3:10 am with Permalink

Leave A Comment

Post Anonymously, Fill in your details or Use one of the Social Networks below to login and post a comment!