POL_Install_dsound

Informations

Creator Message
GNU_Raziel

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 176818
Wine: System

Feedbacks

Description

Install dsound DLL.

Source code

#!/bin/bash
# Date : (2011-07-16 21:00)
# Last revision : (2013-06-20 21:00)
# Author : GNU_Raziel
# 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"

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

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

# Registering dll
POL_Wine regsvr32 dsound.dll

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

Contributions

Filters:

Contribute
Member Message

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 dmca-notice@playonlinux.com