POL_Install_directmusic

Informations

Creator Message
GNU_Raziel

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 156001
Wine: System

Feedbacks

Description

Install DirectMusic dlls

Source code

#!/bin/bash
# Date : (2011-03-08 21:00)
# Last revision : (2012-02-24 21:00)
# Author : GNU_Raziel
# Only For : http://www.playonlinux.com

# Downloading directx runtime
POL_Download_Resource "http://download.microsoft.com/download/E/E/1/EE17FF74-6C45-4575-9CF4-7FC2597ACD18/directx_feb2010_redist.exe" "4cf007a355cb5f34a3c5c400113b33c3"

# Installing directmusic
POL_SetupWindow_wait "$(eval_gettext 'Installing DirectMusic')" "$TITLE"
mkdir "dmusic"
cabextract -d dmusic/ -L -F 'dxnt.cab' directx_feb2010_redist.exe

if [ "$POL_ARCH" == "amd64" ]; then
        cabextract -d "$WINEPREFIX/drive_c/windows/syswow64" -L -F 'devenum.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/syswow64" -L -F 'dmband.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/syswow64" -L -F 'dmcompos.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/syswow64" -L -F 'dmime.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/syswow64" -L -F 'dmloader.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/syswow64" -L -F 'dmscript.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/syswow64" -L -F 'dmstyle.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/syswow64" -L -F 'dmsynth.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/syswow64" -L -F 'dmusic.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/syswow64" -L -F 'dmusic32.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/syswow64" -L -F 'dswave.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/syswow64" -L -F 'streamci.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/syswow64" -L -F 'quartz.dll' "dmusic/dxnt.cab"
else
        cabextract -d "$WINEPREFIX/drive_c/windows/system32" -L -F 'devenum.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/system32" -L -F 'dmband.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/system32" -L -F 'dmcompos.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/system32" -L -F 'dmime.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/system32" -L -F 'dmloader.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/system32" -L -F 'dmscript.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/system32" -L -F 'dmstyle.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/system32" -L -F 'dmsynth.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/system32" -L -F 'dmusic.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/system32" -L -F 'dmusic32.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/system32" -L -F 'dswave.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/system32" -L -F 'streamci.dll' "dmusic/dxnt.cab"
        cabextract -d "$WINEPREFIX/drive_c/windows/system32" -L -F 'quartz.dll' "dmusic/dxnt.cab"
fi

# Registering directmusic
POL_Debug_Message "Registering DirectMusic dlls"
POL_SetupWindow_wait "$(eval_gettext 'Registering libraries, please wait\n(It can take a while)')" "$TITLE"
POL_Wine regsvr32 devenum.dll
POL_Wine regsvr32 dmband.dll
POL_Wine regsvr32 dmcompos.dll
POL_Wine regsvr32 dmime.dll
POL_Wine regsvr32 dmloader.dll
POL_Wine regsvr32 dmscript.dll
POL_Wine regsvr32 dmstyle.dll
POL_Wine regsvr32 dmsynth.dll
POL_Wine regsvr32 dmusic.dll
POL_Wine regsvr32 dswave.dll
POL_Wine regsvr32 quartz.dll

# Overriding dll
POL_Call POL_Function_OverrideDLL "native" "devenum" "dmband" "dmcompos" "dmime" "dmloader" "dmscript" "dmstyle" "dmsynth" "dmusic" "dmusic32" "dswave" "streamci" "quartz"

rm -rf "dmusic"

Contributions

Filters:

Contribute
Member Message