POL_Install_d3dcompiler_46

Informations

Creator Message
Dadu042

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 16509
Wine: System

Feedbacks

Description

X

Source code

#!/bin/bash
# Last revision : (2021-05-21 13:19 MEZ)
# Inspired by Winetricks d3dcompiler_46 https://github.com/Winetricks/winetricks
# Script licence : https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt

POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing d3dcompiler_46 dlls...')" "$TITLE"

cd "$POL_USER_ROOT/ressources/d3dcompiler_46" "d3dcompiler_46"
POL_Download_Resource "http://download.microsoft.com/download/F/1/3/F1300C9C-A120-4341-90DF-8A52509B23AC/standalonesdk/Installers/2630bae9681db6a9f6722366f47d055c.cab" "9cc65b7e3aeebed781354b3a5399ece0" "d3dcompiler_46"; # 32-bit

if [ "$POL_ARCH" = "amd64" ]; then
    POL_Download_Resource "http://download.microsoft.com/download/F/1/3/F1300C9C-A120-4341-90DF-8A52509B23AC/standalonesdk/Installers/61d57a7a82309cd161a854a6f4619e52.cab" "9b92033822629a13ea60d5b4459faa5c" "d3dcompiler_46"; # 64-bit

    # 32-bit
    cabextract -F 'fil47ed91e900f4b9d9659b66a211b57c39' $POL_USER_ROOT/ressources/d3dcompiler_46/2630bae9681db6a9f6722366f47d055c.cab -d $POL_USER_ROOT/tmp
    cp -f $POL_USER_ROOT/tmp/fil47ed91e900f4b9d9659b66a211b57c39 $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_46.dll

    # 64-bit
    cabextract -F 'fil8c20206095817436f8df4a711faee5b7' $POL_USER_ROOT/ressources/d3dcompiler_46/61d57a7a82309cd161a854a6f4619e52.cab -d $POL_USER_ROOT/tmp
    cp -f $POL_USER_ROOT/tmp/fil8c20206095817436f8df4a711faee5b7 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_46.dll

else
    # 32-bit
    cabextract -F 'fil47ed91e900f4b9d9659b66a211b57c39' $POL_USER_ROOT/ressources/d3dcompiler_46/2630bae9681db6a9f6722366f47d055c.cab -d $POL_USER_ROOT/tmp
    cp -f $POL_USER_ROOT/tmp/fil47ed91e900f4b9d9659b66a211b57c39 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_46.dll
fi

# Overriding dlls
POL_Debug_Message "Overriding d3dcompiler_46 dll"
POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_46"

Contributions

Filters:

Contribute
Member Message
Yaotl Friday 21 May 2021 at 13:35
Yaotl Anonymous

Information

This update has been approved by the team.

Message

Completely revised.

Differences

@@ -1,40 +1,30 @@
 #!/bin/bash
-# Last revision : (2020-09-08 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"
-}
-  
+# Last revision : (2021-05-21 13:19 MEZ)
+# Inspired by Winetricks d3dcompiler_46 https://github.com/Winetricks/winetricks
+# Script licence : https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
+
+POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing d3dcompiler_46 dlls...')" "$TITLE"
+
+cd "$POL_USER_ROOT/ressources/d3dcompiler_46" "d3dcompiler_46"
+POL_Download_Resource "http://download.microsoft.com/download/F/1/3/F1300C9C-A120-4341-90DF-8A52509B23AC/standalonesdk/Installers/2630bae9681db6a9f6722366f47d055c.cab" "9cc65b7e3aeebed781354b3a5399ece0" "d3dcompiler_46"; # 32-bit
+
 if [ "$POL_ARCH" = "amd64" ]; then
-        POL_Debug_Message "Extracting x86 and x64 dlls"
-        install_dx_dlls '*d3dcompiler_46_x64.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_46.dll'
-        install_dx_dlls '*d3dcompiler_46_x86.cab' "$WINEPREFIX/drive_c/windows/syswow64" 'd3dcompiler_46.dll'
+    POL_Download_Resource "http://download.microsoft.com/download/F/1/3/F1300C9C-A120-4341-90DF-8A52509B23AC/standalonesdk/Installers/61d57a7a82309cd161a854a6f4619e52.cab" "9b92033822629a13ea60d5b4459faa5c" "d3dcompiler_46"; # 64-bit
+
+    # 32-bit
+    cabextract -F 'fil47ed91e900f4b9d9659b66a211b57c39' $POL_USER_ROOT/ressources/d3dcompiler_46/2630bae9681db6a9f6722366f47d055c.cab -d $POL_USER_ROOT/tmp
+    cp -f $POL_USER_ROOT/tmp/fil47ed91e900f4b9d9659b66a211b57c39 $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_46.dll
+
+    # 64-bit
+    cabextract -F 'fil8c20206095817436f8df4a711faee5b7' $POL_USER_ROOT/ressources/d3dcompiler_46/61d57a7a82309cd161a854a6f4619e52.cab -d $POL_USER_ROOT/tmp
+    cp -f $POL_USER_ROOT/tmp/fil8c20206095817436f8df4a711faee5b7 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_46.dll
+
 else
-        POL_Debug_Message "Extracting only x86 dll"
-        install_dx_dlls '*d3dcompiler_46_x86.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_46.dll'
+    # 32-bit
+    cabextract -F 'fil47ed91e900f4b9d9659b66a211b57c39' $POL_USER_ROOT/ressources/d3dcompiler_46/2630bae9681db6a9f6722366f47d055c.cab -d $POL_USER_ROOT/tmp
+    cp -f $POL_USER_ROOT/tmp/fil47ed91e900f4b9d9659b66a211b57c39 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_46.dll
 fi
-  
+
 # Overriding dlls
 POL_Debug_Message "Overriding d3dcompiler_46 dll"
-POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_46"
+POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_46"
\ No newline at end of file

New source code

#!/bin/bash
# Last revision : (2021-05-21 13:19 MEZ)
# Inspired by Winetricks d3dcompiler_46 https://github.com/Winetricks/winetricks
# Script licence : https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt

POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing d3dcompiler_46 dlls...')" "$TITLE"

cd "$POL_USER_ROOT/ressources/d3dcompiler_46" "d3dcompiler_46"
POL_Download_Resource "http://download.microsoft.com/download/F/1/3/F1300C9C-A120-4341-90DF-8A52509B23AC/standalonesdk/Installers/2630bae9681db6a9f6722366f47d055c.cab" "9cc65b7e3aeebed781354b3a5399ece0" "d3dcompiler_46"; # 32-bit

if [ "$POL_ARCH" = "amd64" ]; then
    POL_Download_Resource "http://download.microsoft.com/download/F/1/3/F1300C9C-A120-4341-90DF-8A52509B23AC/standalonesdk/Installers/61d57a7a82309cd161a854a6f4619e52.cab" "9b92033822629a13ea60d5b4459faa5c" "d3dcompiler_46"; # 64-bit

    # 32-bit
    cabextract -F 'fil47ed91e900f4b9d9659b66a211b57c39' $POL_USER_ROOT/ressources/d3dcompiler_46/2630bae9681db6a9f6722366f47d055c.cab -d $POL_USER_ROOT/tmp
    cp -f $POL_USER_ROOT/tmp/fil47ed91e900f4b9d9659b66a211b57c39 $WINEPREFIX/drive_c/windows/syswow64/d3dcompiler_46.dll

    # 64-bit
    cabextract -F 'fil8c20206095817436f8df4a711faee5b7' $POL_USER_ROOT/ressources/d3dcompiler_46/61d57a7a82309cd161a854a6f4619e52.cab -d $POL_USER_ROOT/tmp
    cp -f $POL_USER_ROOT/tmp/fil8c20206095817436f8df4a711faee5b7 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_46.dll

else
    # 32-bit
    cabextract -F 'fil47ed91e900f4b9d9659b66a211b57c39' $POL_USER_ROOT/ressources/d3dcompiler_46/2630bae9681db6a9f6722366f47d055c.cab -d $POL_USER_ROOT/tmp
    cp -f $POL_USER_ROOT/tmp/fil47ed91e900f4b9d9659b66a211b57c39 $WINEPREFIX/drive_c/windows/system32/d3dcompiler_46.dll
fi

# Overriding dlls
POL_Debug_Message "Overriding d3dcompiler_46 dll"
POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_46"

Replies

Saturday 22 May 2021 at 13:18
Script approved.

Edited by Yaotl

Yaotl Monday 17 May 2021 at 6:17
Yaotl 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-09-08 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_46_x64.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_46.dll'
        install_dx_dlls '*d3dcompiler_46_x86.cab' "$WINEPREFIX/drive_c/windows/syswow64" 'd3dcompiler_46.dll'
else
        POL_Debug_Message "Extracting only x86 dll"
        install_dx_dlls '*d3dcompiler_46_x86.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_46.dll'
fi
  
# Overriding dlls
POL_Debug_Message "Overriding d3dcompiler_46 dll"
POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_46"

Replies

Monday 17 May 2021 at 11:46
Script approved, thanks.

Edited by Yaotl

Dadu042 Tuesday 8 September 2020 at 18:24
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-09-08 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_46_x64.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_46.dll'
+        install_dx_dlls '*d3dcompiler_46_x86.cab' "$WINEPREFIX/drive_c/windows/syswow64" 'd3dcompiler_46.dll'
+else
+        POL_Debug_Message "Extracting only x86 dll"
+        install_dx_dlls '*d3dcompiler_46_x86.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_46.dll'
+fi
+  
+# Overriding dlls
+POL_Debug_Message "Overriding d3dcompiler_46 dll"
+POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_46"

New source code

#!/bin/bash
# Last revision : (2020-09-08 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_46_x64.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_46.dll'
        install_dx_dlls '*d3dcompiler_46_x86.cab' "$WINEPREFIX/drive_c/windows/syswow64" 'd3dcompiler_46.dll'
else
        POL_Debug_Message "Extracting only x86 dll"
        install_dx_dlls '*d3dcompiler_46_x86.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dcompiler_46.dll'
fi
  
# Overriding dlls
POL_Debug_Message "Overriding d3dcompiler_46 dll"
POL_Wine_OverrideDLL "native, builtin" "d3dcompiler_46"

Replies