Forums

[Script] Windows Media Player 11

Does not work 100%

Auteur Réponses
MTres19 Mardi 14 Juillet 2015 à 22:32
MTres19Anonymous

Description

Windows Media Player 11 is a media player by Microsoft. It is probably unnecessary for most PlayOnLinux users, since there are native alternatives like VLC.

Changes outside of POL/Wine

I did not have to make any changes to my system to install Windows Media Player 11.

Errors and Problems

The Windows Media Player 11 installation will not validate unless the OS is set to win2003, and will not install unless it is set to winxp. The trick is to switch to winxp just after it validates, and this is included in the script. It will also always say that the installation has failed. In fact, it has not.

Windows Media Player 11 will freeze if you attempt to go to "Library." Audio files only display a "battery" when in the default "Randomization" style.

Windows Media Player appears best if set to "Classic Menu Mode" (Ctrl+M). However, I could not find the registry key which toggles this.

Script:

Please see the finished version of the script a few posts down.

 

Screenshot:

Edité par MTres19

MTres19 Jeudi 16 Juillet 2015 à 1:06
MTres19Anonymous

I've figured out that if the Wine version is set to 1.4.1, videos will play normally. However, if WMP11 is installed and set up in 1.4.1, sound and video is extremely lagged. So, it seems I need  to be able to install WMP11 and run it once to set it up in 1.7.47-staging, then switch the Wine version to 1.4.1 for videos to play. Is there an undocumented POL function to be able to change the Wine version of a Wineprefix after POL_Wine_CreatePrefix has been run, and if it is not downloaded, to download it? I could use sed to change playonlinux.cfg in the Wineprefix, but that doesn't guarantee that Wine 1.4.1 would be already downloaded.

Thanks in advance for anyone's help.

petch Jeudi 16 Juillet 2015 à 7:30
petch

Maybe you could use POL_Wine_SetVersionEnv, internally it calls POL_Wine_InstallVersion if needed.

I wonder if I can really recommend that solution though...

Ronin DUSETTE Jeudi 16 Juillet 2015 à 22:05
Ronin DUSETTE

I have to be honest; WMP, unless it is required by a certain program for some reason, makes zero sense on an OS that has far, far better native solutions. 


Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
MTres19 Vendredi 24 Juillet 2015 à 0:28
MTres19Anonymous

Thanks. I used POL_Wine_InstallVersion and cat to rewrite the playonlinux.cfg file, since POL_Wine_SetVersionEnv didn't actually change playonlinux.cfg, though it did download Wine 1.4.1.

I'll just leave my script here in the forums, then, unless it perhaps should replace the Windows Media Player 10 script.

Anyway, here's the finished version of the script. It all works nearly-perfectly, unless you try to go to Library.

Latest version is a few posts down...

Edité par MTres19

petch Vendredi 24 Juillet 2015 à 7:21
petch

I thought you needed to change Wine version only temporarily, hence my suggestion of POL_Wine_SetVersionEnv.

Overwriting playonlinux.cfg is a no go, what if new PoL version adds new informations into this file, or change its format entirely?

To update the playonlinux.cfg try POL_Wine_SetVersionPrefix instead

Edité par petch

MTres19 Vendredi 24 Juillet 2015 à 17:53
MTres19Anonymous

Yes, I'm glad PlayOnLinux has a built-in alternative.

Thanks. I'm using that in the version of the script I have below.

#!/bin/bash
# Date: 2015-7-14
# Last revision: 2015-7-24
# Wine versions used: 1.7.47-staging and 1.4.1
# Distribution used to test: Linux Mint 17.2 (x64)
# Author: MTres19

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Windows Media Player 11"
PREFIX="WMP11"

POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"

POL_GetSetupImages "https://3c32abe30bc289772a720a52b3543a25e7148785.googledrive.com/host/0B_iE50uqUIIbOWw2aWhHX2NXX0U" "https://a848de4a983ce1887a0c50f19607af708b66e6df.googledrive.com/host/0B_iE50uqUIIbZ3poejVWblhDa1U"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Microsoft" "microsoft.com" "MTres19" "$PREFIX"

POL_System_SetArch "x86"
POL_Wine_InstallVersion "1.4.1"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "1.7.47-staging"

POL_Call POL_Install_LunaTheme
POL_Call POL_Install_wsh57
POL_Call POL_Install_ie8
Set_OS "win2003"

POL_Download "http://download.microsoft.com/download/0/9/5/0953e553-3bb6-44b1-8973-106f1b7e5049/wmp11-windowsxp-x86-enu.exe" "5a8299fec0ed0f7b6f50e1dabd76ff93"

POL_SetupWindow_message "$(eval_gettext 'Keep this window visible during Windows Media Player 11 installation, and follow the instructions. Click next to start.')" "$TITLE"
POL_Wine start "wmp11-windowsxp-x86-enu.exe"
POL_SetupWindow_message "$(eval_gettext 'Before accepting the EULA, but after Windows Genuine Advantage has validated your system, click the next button below, and continue your Windows Media Player 11 installation. Please note that the installation will appear to have failed.')" "$TITLE"
Set_OS "winxp" "sp3"
POL_Wine_WaitExit "$TITLE"

POL_Wine_reboot

POL_Wine_SetVersionPrefix "1.4.1"

POL_Shortcut "wmplayer.exe" "$TITLE" "" "/Task NowPlaying"
POL_Shortcut_InsertBeforeWine "$TITLE" "killall -9 wmplayer.exe"
POL_Shortcut_QuietDebug "$TITLE"

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmcayonlinux.com