POL_Install_quartz

Informations

Creator Wiadmości
GNU_Raziel

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 525184
Wine: System

Feedbacks

Description

Install quartz DLL for WMP (Windows Media Player) video support.

Note (2020-07): installing the function Devenum may be require in order to let this scritpt work with success.

Source code

#!/bin/bash
# PlayOnLinux Function
# Date : (2010-03-12 04:29)
# Last revision : (2013-06-20 21:00)
# Author : GNU_Raziel
# Only For : http://www.playonlinux.com

# Downloading DLL 
POL_Download_Resource "https://web.archive.org/web/20180619044052if_/http://download.microsoft.com/download/E/E/1/EE17FF74-6C45-4575-9CF4-7FC2597ACD18/directx_feb2010_redist.exe" "4cf007a355cb5f34a3c5c400113b33c3"

# Extracting DLL
cd "$POL_USER_ROOT/ressources"
mkdir -p quartz
cabextract -d quartz/ -L -F 'dxnt.cab' directx_feb2010_redist.exe || POL_Debug_Error "POL_Install_quartz : Failed te extract directx_feb2010_redist.exe"
cd quartz
cabextract dxnt.cab  -L -F 'quartz.dll' || POL_Debug_Error "POL_Install_quartz : Failed to extract dxnt.cab"

# Installing DLL
if [ "$POL_ARCH" == "amd64" ]; then
        cp "quartz.dll" "$WINEPREFIX/drive_c/windows/syswow64"
else
        cp "quartz.dll" "$WINEPREFIX/drive_c/windows/system32"
fi

# Overriding DLL
POL_Wine_OverrideDLL "native,builtin" "quartz"

POL_Wine regsvr32 quartz.dll

Contributions

Filters:

Contribute
Member Wiadmości
Quentin PÂRIS Sunday 28 February 2021 at 20:10
Quentin PÂRIS Anonymous

Information

This update has been approved by the team.

Differences

@@ -6,7 +6,7 @@
 # Only For : http://www.playonlinux.com
 
 # Downloading DLL 
-POL_Download_Resource "http://download.microsoft.com/download/E/E/1/EE17FF74-6C45-4575-9CF4-7FC2597ACD18/directx_feb2010_redist.exe" "4cf007a355cb5f34a3c5c400113b33c3"
+POL_Download_Resource "https://web.archive.org/web/20180619044052if_/http://download.microsoft.com/download/E/E/1/EE17FF74-6C45-4575-9CF4-7FC2597ACD18/directx_feb2010_redist.exe" "4cf007a355cb5f34a3c5c400113b33c3"
 
 # Extracting DLL
 cd "$POL_USER_ROOT/ressources"

New source code

#!/bin/bash
# PlayOnLinux Function
# Date : (2010-03-12 04:29)
# Last revision : (2013-06-20 21:00)
# Author : GNU_Raziel
# Only For : http://www.playonlinux.com

# Downloading DLL 
POL_Download_Resource "https://web.archive.org/web/20180619044052if_/http://download.microsoft.com/download/E/E/1/EE17FF74-6C45-4575-9CF4-7FC2597ACD18/directx_feb2010_redist.exe" "4cf007a355cb5f34a3c5c400113b33c3"

# Extracting DLL
cd "$POL_USER_ROOT/ressources"
mkdir -p quartz
cabextract -d quartz/ -L -F 'dxnt.cab' directx_feb2010_redist.exe || POL_Debug_Error "POL_Install_quartz : Failed te extract directx_feb2010_redist.exe"
cd quartz
cabextract dxnt.cab  -L -F 'quartz.dll' || POL_Debug_Error "POL_Install_quartz : Failed to extract dxnt.cab"

# Installing DLL
if [ "$POL_ARCH" == "amd64" ]; then
        cp "quartz.dll" "$WINEPREFIX/drive_c/windows/syswow64"
else
        cp "quartz.dll" "$WINEPREFIX/drive_c/windows/system32"
fi

# Overriding DLL
POL_Wine_OverrideDLL "native,builtin" "quartz"

POL_Wine regsvr32 quartz.dll

Odpowiedzi