POL_Install_d3dcompiler_47

Informations

Creator Message
Dadu042

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 38705
Wine: System

Feedbacks

Description

X

Source code

#!/bin/bash
# Last revision : (2021-06-15 22:22)
# Creator: Dadu042 & Yaotl
# Inspired by Winetricks d3dcompiler_47 https://github.com/Winetricks/winetricks
# Script licence : GNU Lesser General Public License 2.1 https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt

POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing d3dcompiler_47 dlls...')" "$TITLE"
if [ -f "$POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32" ]; then
    if [ "$POL_ARCH" = "amd64" ]; then
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
    else
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    fi
else
    POL_Download_Resource "https://ftp.mozilla.org/pub/firefox/releases/78.11.0esr/win32/en-US/Firefox Setup 78.11.0esr.exe" "b72333db7a247ecd9df0189d79f2ed7f" "d3dcompiler_47/win32"
    7z x "Firefox Setup 78.11.0esr.exe" "core/d3dcompiler_47.dll"
    cp -f core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32
    if [ "$POL_ARCH" = "amd64" ]; then
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
    else
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    fi
    rm -rf $POL_USER_ROOT/ressources/d3dcompiler_47/win32
fi
if [ "$POL_ARCH" = "amd64" ]; then
    if [ -f "$POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64" ]; then
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    else
        POL_Download_Resource "https://ftp.mozilla.org/pub/firefox/releases/78.11.0esr/win64/en-US/Firefox Setup 78.11.0esr.exe" "6ad08322fa49ee1a2a4e12c6d77e5388" "d3dcompiler_47/win64"
        7z x "Firefox Setup 78.11.0esr.exe" "core/d3dcompiler_47.dll"
        cp -f core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64
        mv -f core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    fi
    rm -rf $POL_USER_ROOT/ressources/d3dcompiler_47/win64
fi

POL_Debug_Message "Overriding d3dcompiler_47 dll"
POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_47"

Contributions

Filters:

Contribute
Member Message
Yaotl Tuesday 15 June 2021 at 23:24
Yaotl Anonymous

Information

This update has been approved by the team.

Differences

@@ -1,36 +1,38 @@
 #!/bin/bash
-# Last revision : (2021-05-26 02:05)
+# Last revision : (2021-06-15 22:22)
 # Creator: Dadu042 & Yaotl
 # Inspired by Winetricks d3dcompiler_47 https://github.com/Winetricks/winetricks
 # Script licence : GNU Lesser General Public License 2.1 https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
 
 POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing d3dcompiler_47 dlls...')" "$TITLE"
 if [ -f "$POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32" ]; then
-    POL_Debug_Message "Copy d3dcompiler_47 dlls"
     if [ "$POL_ARCH" = "amd64" ]; then
         cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
-        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
     else
         cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
     fi
 else
-    POL_Debug_Message "Extract d3dcompiler_47 dlls"
-    mkdir -p "$POL_USER_ROOT/ressources/d3dcompiler_47"
-    cd "$POL_USER_ROOT/tmp"
-    wget -O "Firefox_Setup_78.10.1esr_win32.exe" "https://ftp.mozilla.org/pub/firefox/releases/78.10.1esr/win32/en-US/Firefox Setup 78.10.1esr.exe"
-    7z x "Firefox_Setup_78.10.1esr_win32.exe" "core/d3dcompiler_47.dll"
-    cp -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32
+    POL_Download_Resource "https://ftp.mozilla.org/pub/firefox/releases/78.11.0esr/win32/en-US/Firefox Setup 78.11.0esr.exe" "b72333db7a247ecd9df0189d79f2ed7f" "d3dcompiler_47/win32"
+    7z x "Firefox Setup 78.11.0esr.exe" "core/d3dcompiler_47.dll"
+    cp -f core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32
     if [ "$POL_ARCH" = "amd64" ]; then
-        mv -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
+        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
     else
-        mv -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
+        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
     fi
-    if  [ "$POL_ARCH" = "amd64" ]; then
-        wget -O "Firefox_Setup_78.10.1esr_win64.exe" "https://ftp.mozilla.org/pub/firefox/releases/78.10.1esr/win64/en-US/Firefox Setup 78.10.1esr.exe"
-        7z x "Firefox_Setup_78.10.1esr_win64.exe" "core/d3dcompiler_47.dll"
-        cp -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64
-        mv -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
+    rm -rf $POL_USER_ROOT/ressources/d3dcompiler_47/win32
+fi
+if [ "$POL_ARCH" = "amd64" ]; then
+    if [ -f "$POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64" ]; then
+        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
+    else
+        POL_Download_Resource "https://ftp.mozilla.org/pub/firefox/releases/78.11.0esr/win64/en-US/Firefox Setup 78.11.0esr.exe" "6ad08322fa49ee1a2a4e12c6d77e5388" "d3dcompiler_47/win64"
+        7z x "Firefox Setup 78.11.0esr.exe" "core/d3dcompiler_47.dll"
+        cp -f core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64
+        mv -f core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
     fi
+    rm -rf $POL_USER_ROOT/ressources/d3dcompiler_47/win64
 fi
+
 POL_Debug_Message "Overriding d3dcompiler_47 dll"
 POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_47"
\ No newline at end of file

New source code

#!/bin/bash
# Last revision : (2021-06-15 22:22)
# Creator: Dadu042 & Yaotl
# Inspired by Winetricks d3dcompiler_47 https://github.com/Winetricks/winetricks
# Script licence : GNU Lesser General Public License 2.1 https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt

POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing d3dcompiler_47 dlls...')" "$TITLE"
if [ -f "$POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32" ]; then
    if [ "$POL_ARCH" = "amd64" ]; then
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
    else
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    fi
else
    POL_Download_Resource "https://ftp.mozilla.org/pub/firefox/releases/78.11.0esr/win32/en-US/Firefox Setup 78.11.0esr.exe" "b72333db7a247ecd9df0189d79f2ed7f" "d3dcompiler_47/win32"
    7z x "Firefox Setup 78.11.0esr.exe" "core/d3dcompiler_47.dll"
    cp -f core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32
    if [ "$POL_ARCH" = "amd64" ]; then
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
    else
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    fi
    rm -rf $POL_USER_ROOT/ressources/d3dcompiler_47/win32
fi
if [ "$POL_ARCH" = "amd64" ]; then
    if [ -f "$POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64" ]; then
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    else
        POL_Download_Resource "https://ftp.mozilla.org/pub/firefox/releases/78.11.0esr/win64/en-US/Firefox Setup 78.11.0esr.exe" "6ad08322fa49ee1a2a4e12c6d77e5388" "d3dcompiler_47/win64"
        7z x "Firefox Setup 78.11.0esr.exe" "core/d3dcompiler_47.dll"
        cp -f core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64
        mv -f core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    fi
    rm -rf $POL_USER_ROOT/ressources/d3dcompiler_47/win64
fi

POL_Debug_Message "Overriding d3dcompiler_47 dll"
POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_47"

Replies

Wednesday 16 June 2021 at 6:29
Script approved, thanks.
Yaotl Wednesday 26 May 2021 at 12:04
Yaotl Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -1,40 +1,36 @@
 #!/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'
+# Last revision : (2021-05-26 02:05)
+# Creator: Dadu042 & Yaotl
+# Inspired by Winetricks d3dcompiler_47 https://github.com/Winetricks/winetricks
+# Script licence : GNU Lesser General Public License 2.1 https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
+
+POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing d3dcompiler_47 dlls...')" "$TITLE"
+if [ -f "$POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32" ]; then
+    POL_Debug_Message "Copy d3dcompiler_47 dlls"
+    if [ "$POL_ARCH" = "amd64" ]; then
+        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
+        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
+    else
+        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
+    fi
 else
-        POL_Debug_Message "Extracting only x86 dll"
-        install_dx_dlls '*d3dcompiler_47_x86.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_47.dll'
+    POL_Debug_Message "Extract d3dcompiler_47 dlls"
+    mkdir -p "$POL_USER_ROOT/ressources/d3dcompiler_47"
+    cd "$POL_USER_ROOT/tmp"
+    wget -O "Firefox_Setup_78.10.1esr_win32.exe" "https://ftp.mozilla.org/pub/firefox/releases/78.10.1esr/win32/en-US/Firefox Setup 78.10.1esr.exe"
+    7z x "Firefox_Setup_78.10.1esr_win32.exe" "core/d3dcompiler_47.dll"
+    cp -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32
+    if [ "$POL_ARCH" = "amd64" ]; then
+        mv -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
+    else
+        mv -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
+    fi
+    if  [ "$POL_ARCH" = "amd64" ]; then
+        wget -O "Firefox_Setup_78.10.1esr_win64.exe" "https://ftp.mozilla.org/pub/firefox/releases/78.10.1esr/win64/en-US/Firefox Setup 78.10.1esr.exe"
+        7z x "Firefox_Setup_78.10.1esr_win64.exe" "core/d3dcompiler_47.dll"
+        cp -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64
+        mv -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
+    fi
 fi
- 
-# Overriding dlls
 POL_Debug_Message "Overriding d3dcompiler_47 dll"
 POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_47"
\ No newline at end of file

New source code

#!/bin/bash
# Last revision : (2021-05-26 02:05)
# Creator: Dadu042 & Yaotl
# Inspired by Winetricks d3dcompiler_47 https://github.com/Winetricks/winetricks
# Script licence : GNU Lesser General Public License 2.1 https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt

POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing d3dcompiler_47 dlls...')" "$TITLE"
if [ -f "$POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32" ]; then
    POL_Debug_Message "Copy d3dcompiler_47 dlls"
    if [ "$POL_ARCH" = "amd64" ]; then
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    else
        cp -f $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    fi
else
    POL_Debug_Message "Extract d3dcompiler_47 dlls"
    mkdir -p "$POL_USER_ROOT/ressources/d3dcompiler_47"
    cd "$POL_USER_ROOT/tmp"
    wget -O "Firefox_Setup_78.10.1esr_win32.exe" "https://ftp.mozilla.org/pub/firefox/releases/78.10.1esr/win32/en-US/Firefox Setup 78.10.1esr.exe"
    7z x "Firefox_Setup_78.10.1esr_win32.exe" "core/d3dcompiler_47.dll"
    cp -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win32
    if [ "$POL_ARCH" = "amd64" ]; then
        mv -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_47.dll
    else
        mv -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    fi
    if  [ "$POL_ARCH" = "amd64" ]; then
        wget -O "Firefox_Setup_78.10.1esr_win64.exe" "https://ftp.mozilla.org/pub/firefox/releases/78.10.1esr/win64/en-US/Firefox Setup 78.10.1esr.exe"
        7z x "Firefox_Setup_78.10.1esr_win64.exe" "core/d3dcompiler_47.dll"
        cp -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $POL_USER_ROOT/ressources/d3dcompiler_47/d3dcompiler_47.win64
        mv -f $POL_USER_ROOT/tmp/core/d3dcompiler_47.dll $WINEPREFIX/drive_c/windows/system32/d3dcompiler_47.dll
    fi
fi
POL_Debug_Message "Overriding d3dcompiler_47 dll"
POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_47"

Replies

Tuesday 1 June 2021 at 9:49
script approved.
winetrouble Wednesday 7 April 2021 at 8:21
winetrouble Anonymous

Message

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

Replies

Edited by winetrouble

Quentin PÂRIS Wednesday 10 March 2021 at 23:07
Quentin PÂRIS Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

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"

New source code

#!/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"

Replies

Dadu042 Saturday 18 July 2020 at 20:39
Dadu042

Warning

This update has not been approved yet by the team.
Use it at your own risk

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

New source code

#!/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"

Replies

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