POL_Install_directmusic

Informations

Créateur Messages
GNU_Raziel

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 210173
Wine: System

Retours d'expérience

Description

Install DirectMusic dlls

Code source

#!/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 "https://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "822e4c516600e81dc7fb16d9a77ec6d4"

# Installing directmusic
POL_SetupWindow_wait "$(eval_gettext 'Installing DirectMusic')" "$TITLE"
mkdir "dmusic"
cabextract -d dmusic/ -L -F 'dxnt.cab' directx_Jun2010_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:

Contribuer
Membre Messages
XoMute Mercredi 17 Novembre 2021 à 10:21
XoMute Anonymous

Information

Cette mise à jour a été acceptée par l'équipe

Messages

Microsoft removed directx runtime installer (2010 feb).

Changed link to 2010 June installer.

You can see the same change here: https://www.playonlinux.com/en/app-804-POL_Install_dxfullsetup.html

Almost all of directx components rely on directx redistributable, link for which is hardcoded on each separate script.

Can it somehow be unified for all files? Or can you at least make the same change for every dependant resource?

Differences

@@ -5,12 +5,12 @@
 # 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"
+POL_Download_Resource "https://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "822e4c516600e81dc7fb16d9a77ec6d4"
 
 # Installing directmusic
 POL_SetupWindow_wait "$(eval_gettext 'Installing DirectMusic')" "$TITLE"
 mkdir "dmusic"
-cabextract -d dmusic/ -L -F 'dxnt.cab' directx_feb2010_redist.exe
+cabextract -d dmusic/ -L -F 'dxnt.cab' directx_Jun2010_redist.exe
 
 if [ "$POL_ARCH" == "amd64" ]; then
 	cabextract -d "$WINEPREFIX/drive_c/windows/syswow64" -L -F 'devenum.dll' "dmusic/dxnt.cab"

Nouveau code source

#!/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 "https://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "822e4c516600e81dc7fb16d9a77ec6d4"

# Installing directmusic
POL_SetupWindow_wait "$(eval_gettext 'Installing DirectMusic')" "$TITLE"
mkdir "dmusic"
cabextract -d dmusic/ -L -F 'dxnt.cab' directx_Jun2010_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"

Réponses

Jeudi 18 Novembre 2021 à 10:16
Script Approved.

 

> Can it somehow be unified for all files? Or can you at least make the same change for every dependant resource?

 

I don't know any way to do it.

Edité par XoMute

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