Windows Media Player has actually always been my preferred choice for managing my music library. It’s simple, it has a decent amount of functionality, it can handle most formats that I use regularly, and it looks pretty nice. I’d like to be able to use it on my modern Kubuntu desktop computer, but it seems there are a number of pitfalls when getting it to work with Wine. This page documents my experimentation and research for this.
WMP10 Walkthrough
Strangely, the most useful resource I found on this was this YouTube video detailing how to get Windows Media Player 10 to work with Wine. To avoid having to scrub through the rather tedious video, the process is as follows:
- Install PlayOnLinux, which although targeted towards getting Windows games running on Linux, is a useful Wine prefix manager for your system. You can set up specific versions of wine under specific prefixes, which is exactly what we want for the super-custom WMP environment.
- Go to
Tools -> Manage Wine Versions
, and under the x86 versions, install3.0.4
. This specific version is, for some reason, the only one that supports WMP. - Go to
Configure
and clickNew
in the bottom left. Create a new 32-bit virtual drive using Wine3.0.4
. Name it whatever you like (I’ll assume from here on that it’s calledWMP
). - Once created, select the virtual drive in the configuration window, go to the
Wine
tab and chooseConfigure Wine
. - In the Wine configuration window, go to the
Applications
tab and forDefault Settings
, set the Windows version to beWindows XP
. Next, chooseAdd Application
, typewmplayer.exe
into the name box in the file chooser, clickOpen
, and set the Windows version for this to beWindows XP
as well. Both of these steps are required, as the default setting will need to be modified later as part of the install process. Keep the configuration window open - we’ll return to it in a second. - Download jscript.dll, urlmon.dll, devenum.dll and quartz.dll. Rename all of these DLLs to be lowercase if they are not already. Go to the Wine prefix for the virtual drive you set up earlier (usually
~/PlayOnLinux's virtual drives/WMP
), navigate todrive_c/windows/system32
, and paste the four aforementioned DLLs into this folder, overwriting any existing DLLs. - Go back to the Wine configuration window that was opened in step 5. In the
Applications
tab, selectDefault Settings
. Then go to theLibraries
tab, and in theNew override for library
dropdown box, typeurlmon
and then clickAdd
. This adds theurlmon
DLL override for all applications. - Switch to the
Applications
tab, selectwmplayer.exe
, and then switch back to theLibraries
tab again. This time, typequartz
into the dropdown and clickAdd
, and then typedevenum
and clickAdd
. This adds overrides for thequartz
anddevenum
DLLs specifically for Windows Media Player. - Assuming
wmplayer.exe
is still selected in theApplications
tab, go to theGraphics
tab and deselect the tick box forAllow the window manager to control the windows
. This means that Windows Media Player itself can take control for full-screen playback. - Click
Apply
in the Wine configuration window, but don’t close it - we’ll come back to it again later. - Back in the PlayOnLinux configuration window that was opened in step 3, under the
Wine
tab, clickCommand prompt
. In the command prompt that opens, executeregsvr32 jscript.dll
. This should bring up a success message reporting that the DLL was successfully registered. Close the command prompt. - In the PlayOnLinux configuration window, go to the
Miscellaneous
tab and clickRun a Windows executable (.exe) in this virtual drive
. This is where we install Windows Media Player itself. In the file browser that appears, select your WMP installer executable, and this should bring up the install wizard. Click through the stages and allow it to complete. TODO: It’d be useful if we linked to a WMP10 installer here, but I can’t seem to find the one I used… - Once installed, Windows Media Player will appear in a very broken-looking state. To close it, you can click on the Windows logo in the top left, and then choose
File -> Exit
. The next few steps will fix the player. - In the Wine configuration window that you left open in step 10, go to the
Applications
tab and chooseDefault Settings
. Change the Windows version in the dropdown toWindows 2000
. - Download the Windows Media Encoder 9 installer. In the PlayOnLinux configuration window, under the
Miscellaneous
tab, clickRun a Windows executable (.exe) in this virtual drive
and select this installer executable. Click through the installer and allow it to complete. - Next, in the PlayOnLinux configuration window, go to the
Install Components
tab and installMicrosoft Core Fonts
,wmpcodecs
, andwmp10
. Note that some downloads don’t seem to work - the video says it’s OK, and just to continue regardless and allow whichever installers you download successfully to run. It might be worth seeing whether we can obtain other copies of the installers that are downloaded here - from the video, PlayOnLinux is looking for http://itc.edu.stockholm.se/shareware/arkiv/PC/WMEncoder.exe. PlayOnLinux itself looks for https://web.archive.org/web/20121003223319/http://download.microsoft.com/download/8/1/f/81f9402f-efdd-439d-b2a4-089563199d47/WMEncoder.exe when I try to install this component, and then says the files do not match. - Finally, create a shortcut by going to the
General
tab in the PlayOnLinux configuration window, clickingMake a new shortcut from this virtual drive
, and choosingwmplayer.exe
.
WMP10 FLAC support
TODO: Follow https://web.archive.org/web/20121014125642/http://www.hack7mc.com/2009/01/playing-flac-files-in-media-center.html and write up here.
Attempts At Getting Windows Media Player 11 To Work
The process for WMP11 starts off the same, but at step 12 the installer will get stuck as it is not able to verify that the install of Windows is genuine. If the Validate
button in the installer greys out when clicked and never becomes active again, cancel and re-run the installer: at this point it will say that the copy of Windows is not genuine.
To fix this, I followed the instructions presented here: select Default settings
in the Wine configuration window’s Applications
tab, and set the Windows version to be Windows 2003
. Then at the EULA screen in the installer, before accepting the EULA, switch the Windows version back to Windows XP
. Once it reaches its end, the installer will say that it failed to install WMP, but according to the aforementioned instructions, this doesn’t matter.
Unfortunately, I never got WMP11 to run acceptably - it always looked graphically mutilated and did not respond to input. Another avenue to explore might be to check newer Wine versions and see if it works there.