HOWTO: Getting MediaPortal To Work In Vista x64 (1 Viewer)

AndyWhittaker

Portal Member
September 4, 2004
23
0
Macclesfield, UK
Home Country
United Kingdom United Kingdom
Hi,

I'm one of those people who have shelled out a lot of money on a Core Duo based PC running the 64bit version of MS Vista and spending more time than they should do getting applications that they know and love trying to work. This is not going to be a thread slagging off Vista but one of how to get MediaPortal to work on it.

When you install MediaPortal on x64 Vista all things start to go well after configuration is run. You get the Welcome to MediaPortal wizard and you can set up the application. However, when you have gone through the screens and click "finish", 2 error dialogs come up from the Plugin Manager:

An error occured while loading the plugin MediaPortal.Dialogs.VirtualKeyboard. It is incompatible with the current MediaPortal version and won't be loaded.

An error occured while loading the plugin WindowsPlugins.GUIPrograms.SetupForm. It is incompatible with the current MediaPortal version and won't be loaded.

You then get an error dialog "looking for solutions to your problem" and then another dialog comes up telling you that Configuration.exe has stopped working.

From this point on, MediaPortal will always crash. The only way to get it back again is to delete MediaPortal.xml and then you run around the configuration.exe loop again.

Today I stumbled across the solution to the problem. What is happening is that because it's a .Net 2.0 application, Vista is not running it as a 32bit application with WOW64. You need to force the header to say it's a 32bit app. Here's the blog:

http://blog.timcarmichael.com/2007/01/22/forcing-net-apps-to-run-in-vistas-wow64-x86

Hmmm, I've got the .Net SDK on my machine so I copied corflags.exe to my Windows directory and then created the following batch file in the MediaPortal subdirectory:

corflags.exe mediaportal.exe /32bit+
corflags.exe configuration.exe /32bit+
corflags.exe musicsharewatcher.exe /32bit+
corflags.exe tag.exe /32bit+
corflags.exe AppStart.exe /32bit+
corflags.exe HCWHelper.exe /32bit+
pause

You need to perform this everytime you install a new SVN.

Have fun!

Andy
 

AndyWhittaker

Portal Member
September 4, 2004
23
0
Macclesfield, UK
Home Country
United Kingdom United Kingdom
Just had a thought...

Can the devs add this step to the build process? This way the binaries produced will be automatically compatible with all versions of Vista?

Andy
 

mPod

Portal Pro
January 26, 2005
2,084
3
Berlin
Home Country
Germany Germany
It has been fixed in SVN.

Now you might face the following problem (just an idea, needs to be checked, of course):
The binaries from our next nightly builds are compiled against x86 only now. But the release versions of MP are build against x86/x64 until now. Means: You could still have a mixup between the old and the new platform targets.

Only way out: Go the above way with stripping or wait until the next MP release.
 

Users who are viewing this thread

Top Bottom