POL_Install_d3dcompiler_47

Informations

Créateur Messages
Dadu042
Modérateur

Information

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

Informations

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

Retours d'expérience

Description

X

Code source

#!/bin/bash
# Last revision : (2020-07-18 20:00)
# Creator: Dadu042
#  based Petch's script, based on POL_Install_d3dx9 by Berillions/GNU_Raziel
# Only For : http://www.playonlinux.com
 
# Downloading directx runtime
POL_Download_Resource "http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "822e4c516600e81dc7fb16d9a77ec6d4"
 
# Extracting & Installing Dx9 dlls
POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing DirectX 9 dlls...')" "$TITLE"
cd "$POL_USER_ROOT/ressources"
 
install_dx_dlls () {
    local CABPATTERN="$1"
    local TARGET="$2"
    local PATTERN="$3"
    local TMPDLL="$POL_USER_ROOT/tmp/Install_d3dx9"
 
    mkdir "$TMPDLL"
    cabextract -d "$TMPDLL/" -L -F "$CABPATTERN" directx_Jun2010_redist.exe
     
    for x in "$TMPDLL/"*.cab; do
        cabextract -d "$TARGET/" -L -F "$PATTERN" "$x"
    done
    rm -rf "$TMPDLL"
}
 
if [ "$POL_ARCH" = "amd64" ]; then
        POL_Debug_Message "Extracting x86 and x64 dlls"
        install_dx_dlls '*d3dcompiler_47_x64.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_47.dll'
        install_dx_dlls '*d3dcompiler_47_x86.cab' "$WINEPREFIX/drive_c/windows/syswow64" 'd3dcompiler_47.dll'
else
        POL_Debug_Message "Extracting only x86 dll"
        install_dx_dlls '*d3dcompiler_47_x86.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_47.dll'
fi
 
# Overriding dlls
POL_Debug_Message "Overriding d3dcompiler_47 dll"
POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_47"

Contributions

Filters:

Contribuer
Membre Messages
winetrouble Mercredi 7 Avril 2021 à 8:21
winetrouble Anonymous

Messages

Your source "directx_Jun2010_redist.exe" doesn't contain neither the d3dcompiler_46.dll nor the d3dcompiler_47.dll. Based on winetricks I made a new script:

#!/usr/bin/env playonlinux-bash   
# Date : 2021-04-07
# Last revision : 2021-04-07
# Wine version used : system
# Distribution used to test : Manjaro Linux, Linuxmint 20.1, Ubuntu 20.10
# Author : winetrouble   
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="test"
PREFIX="test"  

POL_SetupWindow_Init
POL_Debug_Init

# Select and create prefix
POL_System_SetArch "amd64"
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate ""

eval_gettext 'Please wait while $TITLE is installed.'
POL_Download_Resource "https://download-installer.cdn.mozilla.net/pub/firefox/releases/62.0.3/win32/ach/Firefox%20Setup%2062.0.3.exe" "9cd3382cf5f2a20c804fe12db3c70771"

cd "$POL_USER_ROOT/ressources/"
    POL_System_7z x "Firefox%20Setup%2062.0.3.exe" "core/d3dcompiler_47.dll"
    cp "core/d3dcompiler_47.dll"* "$WINEPREFIX/drive_c/windows/system32/"
    rm "Firefox%20Setup%2062.0.3.exe"
    rm -r core
    if [ "$POL_ARCH" = "amd64" ]; then
        POL_Download_Resource "https://download-installer.cdn.mozilla.net/pub/firefox/releases/62.0.3/win64/ach/Firefox%20Setup%2062.0.3.exe" "58aabc1588593297851c38c6edf8736f"
        POL_System_7z x "Firefox%20Setup%2062.0.3.exe" "core/d3dcompiler_47.dll"
        cp "core/d3dcompiler_47.dll" "$WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll"
        rm "Firefox%20Setup%2062.0.3.exe"
        rm -r core
    fi


# Overriding dlls
POL_Debug_Message "Overriding d3dcompiler_47 dll"
POL_Wine_OverrideDLL "native" "d3dcompiler_47"
 
POL_SetupWindow_Close
exit

Réponses

Edité par winetrouble

Quentin PÂRIS Mercredi 10 Mars 2021 à 23:07
Quentin PÂRIS
Admin

Information

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

Differences

@@ -5,7 +5,7 @@
 # Only For : http://www.playonlinux.com
  
 # Downloading directx runtime
-POL_Download_Resource "http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "7c1fc2021cf57fed3c25c9b03cd0c31a"
+POL_Download_Resource "http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "822e4c516600e81dc7fb16d9a77ec6d4"
  
 # Extracting & Installing Dx9 dlls
 POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing DirectX 9 dlls...')" "$TITLE"

Nouveau code source

#!/bin/bash
# Last revision : (2020-07-18 20:00)
# Creator: Dadu042
#  based Petch's script, based on POL_Install_d3dx9 by Berillions/GNU_Raziel
# Only For : http://www.playonlinux.com
 
# Downloading directx runtime
POL_Download_Resource "http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "822e4c516600e81dc7fb16d9a77ec6d4"
 
# Extracting & Installing Dx9 dlls
POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing DirectX 9 dlls...')" "$TITLE"
cd "$POL_USER_ROOT/ressources"
 
install_dx_dlls () {
    local CABPATTERN="$1"
    local TARGET="$2"
    local PATTERN="$3"
    local TMPDLL="$POL_USER_ROOT/tmp/Install_d3dx9"
 
    mkdir "$TMPDLL"
    cabextract -d "$TMPDLL/" -L -F "$CABPATTERN" directx_Jun2010_redist.exe
     
    for x in "$TMPDLL/"*.cab; do
        cabextract -d "$TARGET/" -L -F "$PATTERN" "$x"
    done
    rm -rf "$TMPDLL"
}
 
if [ "$POL_ARCH" = "amd64" ]; then
        POL_Debug_Message "Extracting x86 and x64 dlls"
        install_dx_dlls '*d3dcompiler_47_x64.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_47.dll'
        install_dx_dlls '*d3dcompiler_47_x86.cab' "$WINEPREFIX/drive_c/windows/syswow64" 'd3dcompiler_47.dll'
else
        POL_Debug_Message "Extracting only x86 dll"
        install_dx_dlls '*d3dcompiler_47_x86.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_47.dll'
fi
 
# Overriding dlls
POL_Debug_Message "Overriding d3dcompiler_47 dll"
POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_47"

Réponses

Dadu042 Samedi 18 Juillet 2020 à 20:39
Dadu042
Modérateur

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -0,0 +1,40 @@
+#!/bin/bash
+# Last revision : (2020-07-18 20:00)
+# Creator: Dadu042
+#  based Petch's script, based on POL_Install_d3dx9 by Berillions/GNU_Raziel
+# Only For : http://www.playonlinux.com
+ 
+# Downloading directx runtime
+POL_Download_Resource "http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "7c1fc2021cf57fed3c25c9b03cd0c31a"
+ 
+# Extracting & Installing Dx9 dlls
+POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing DirectX 9 dlls...')" "$TITLE"
+cd "$POL_USER_ROOT/ressources"
+ 
+install_dx_dlls () {
+    local CABPATTERN="$1"
+    local TARGET="$2"
+    local PATTERN="$3"
+    local TMPDLL="$POL_USER_ROOT/tmp/Install_d3dx9"
+ 
+    mkdir "$TMPDLL"
+    cabextract -d "$TMPDLL/" -L -F "$CABPATTERN" directx_Jun2010_redist.exe
+     
+    for x in "$TMPDLL/"*.cab; do
+        cabextract -d "$TARGET/" -L -F "$PATTERN" "$x"
+    done
+    rm -rf "$TMPDLL"
+}
+ 
+if [ "$POL_ARCH" = "amd64" ]; then
+        POL_Debug_Message "Extracting x86 and x64 dlls"
+        install_dx_dlls '*d3dcompiler_47_x64.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_47.dll'
+        install_dx_dlls '*d3dcompiler_47_x86.cab' "$WINEPREFIX/drive_c/windows/syswow64" 'd3dcompiler_47.dll'
+else
+        POL_Debug_Message "Extracting only x86 dll"
+        install_dx_dlls '*d3dcompiler_47_x86.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_47.dll'
+fi
+ 
+# Overriding dlls
+POL_Debug_Message "Overriding d3dcompiler_47 dll"
+POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_47"
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Last revision : (2020-07-18 20:00)
# Creator: Dadu042
#  based Petch's script, based on POL_Install_d3dx9 by Berillions/GNU_Raziel
# Only For : http://www.playonlinux.com
 
# Downloading directx runtime
POL_Download_Resource "http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "7c1fc2021cf57fed3c25c9b03cd0c31a"
 
# Extracting & Installing Dx9 dlls
POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing DirectX 9 dlls...')" "$TITLE"
cd "$POL_USER_ROOT/ressources"
 
install_dx_dlls () {
    local CABPATTERN="$1"
    local TARGET="$2"
    local PATTERN="$3"
    local TMPDLL="$POL_USER_ROOT/tmp/Install_d3dx9"
 
    mkdir "$TMPDLL"
    cabextract -d "$TMPDLL/" -L -F "$CABPATTERN" directx_Jun2010_redist.exe
     
    for x in "$TMPDLL/"*.cab; do
        cabextract -d "$TARGET/" -L -F "$PATTERN" "$x"
    done
    rm -rf "$TMPDLL"
}
 
if [ "$POL_ARCH" = "amd64" ]; then
        POL_Debug_Message "Extracting x86 and x64 dlls"
        install_dx_dlls '*d3dcompiler_47_x64.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_47.dll'
        install_dx_dlls '*d3dcompiler_47_x86.cab' "$WINEPREFIX/drive_c/windows/syswow64" 'd3dcompiler_47.dll'
else
        POL_Debug_Message "Extracting only x86 dll"
        install_dx_dlls '*d3dcompiler_47_x86.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_47.dll'
fi
 
# Overriding dlls
POL_Debug_Message "Overriding d3dcompiler_47 dll"
POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_47"

Réponses