POL_Install_xact

Informations

Creator Message
Berillions

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 310464
Wine: System

Feedbacks

Description

Xact/Xaudio DLLs support

Source code

#!/bin/bash
# Last revision : (2012-05-15 21:00)
# Creator : Berillions 
# Updated by : GNU_Raziel
# Only For : http://www.playonlinux.com

# Changelog:
#   2012-05-14 petch: fixed case of registered DLLs from XAudio* to xaudio*

# 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 Xact dlls
POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing Xact dlls...')" "$TITLE"
cd "$POL_USER_ROOT/ressources"

if [ "$POL_ARCH" == "amd64" ]; then
        POL_Debug_Message "Extracting x86 and x64 dlls"
        mkdir "xact_x64"
        cabextract -d xact_x64/ -L -F '*_xact_*x64*' directx_Jun2010_redist.exe
        cabextract -d xact_x64/ -L -F '*_x3daudio_*x64*' directx_Jun2010_redist.exe
        cabextract -d xact_x64/ -L -F '*_xaudio_*x64*' directx_Jun2010_redist.exe
        for x in `ls xact_x64/*.cab`
        do
          cabextract -d "$WINEPREFIX/drive_c/windows/system32" -L -F '*.dll' "$x"
        done
        mkdir "xact_x86"
        cabextract -d xact_x86/ -L -F '*_xact_*x86*' directx_Jun2010_redist.exe
        cabextract -d xact_x86/ -L -F '*_x3daudio_*x86*' directx_Jun2010_redist.exe
        cabextract -d xact_x86/ -L -F '*_xaudio_*x86*' directx_Jun2010_redist.exe
        for x in `ls xact_x86/*.cab`
        do
          cabextract -d "$WINEPREFIX/drive_c/windows/syswow64" -L -F '*.dll' "$x"
        done
else
        POL_Debug_Message "Extracting only x86 dlls"
        mkdir "xact_x86"
        cabextract -d xact_x86/ -L -F '*_xact_*x86*' directx_Jun2010_redist.exe
        cabextract -d xact_x86/ -L -F '*_x3daudio_*x86*' directx_Jun2010_redist.exe
        cabextract -d xact_x86/ -L -F '*_xaudio_*x86*' directx_Jun2010_redist.exe
        for x in `ls xact_x86/*.cab`
        do
          cabextract -d "$WINEPREFIX/drive_c/windows/system32" -L -F '*.dll' "$x"
        done
fi

# Registering XACT
POL_Debug_Message "Registering XACT & Xaudio dlls"
POL_SetupWindow_wait "$(eval_gettext 'Registering libraries, please wait\n(It can take a while)')" "$TITLE"
for x in "$WINEPREFIX/drive_c/windows/system32/xactengine"* "$WINEPREFIX/drive_c/windows/system32/xaudio"*
do
        POL_Wine --ignore-errors regsvr32 `basename $x`
        case $? in
          0|4) ;; # 4 = registration not required
          *) POL_Debug_Fatal "Error $? registering DLL $x"
        esac
done

# Cleaning
POL_Debug_Message "Deleting temporary directories"
rm -rf "$POL_USER_ROOT/ressources/xact_x86"
if [ "$POL_ARCH" == "amd64" ]; then
        rm -rf "$POL_USER_ROOT/ressources/xact_x64"
fi

Contributions

Filters:

Contribute
Member Message
btd Tuesday 9 May 2023 at 12:58
btd Anonymous

Warning

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

Message

The checksum for the file is wrong. Compared to the same file used by for example POL_Install_d3dx9

Differences

@@ -8,7 +8,7 @@
 #   2012-05-14 petch: fixed case of registered DLLs from XAudio* to xaudio*
 
 # 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 Xact dlls
 POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing Xact dlls...')" "$TITLE"

New source code

#!/bin/bash
# Last revision : (2012-05-15 21:00)
# Creator : Berillions 
# Updated by : GNU_Raziel
# Only For : http://www.playonlinux.com

# Changelog:
#   2012-05-14 petch: fixed case of registered DLLs from XAudio* to xaudio*

# 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 Xact dlls
POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing Xact dlls...')" "$TITLE"
cd "$POL_USER_ROOT/ressources"

if [ "$POL_ARCH" == "amd64" ]; then
        POL_Debug_Message "Extracting x86 and x64 dlls"
        mkdir "xact_x64"
        cabextract -d xact_x64/ -L -F '*_xact_*x64*' directx_Jun2010_redist.exe
        cabextract -d xact_x64/ -L -F '*_x3daudio_*x64*' directx_Jun2010_redist.exe
        cabextract -d xact_x64/ -L -F '*_xaudio_*x64*' directx_Jun2010_redist.exe
        for x in `ls xact_x64/*.cab`
        do
          cabextract -d "$WINEPREFIX/drive_c/windows/system32" -L -F '*.dll' "$x"
        done
        mkdir "xact_x86"
        cabextract -d xact_x86/ -L -F '*_xact_*x86*' directx_Jun2010_redist.exe
        cabextract -d xact_x86/ -L -F '*_x3daudio_*x86*' directx_Jun2010_redist.exe
        cabextract -d xact_x86/ -L -F '*_xaudio_*x86*' directx_Jun2010_redist.exe
        for x in `ls xact_x86/*.cab`
        do
          cabextract -d "$WINEPREFIX/drive_c/windows/syswow64" -L -F '*.dll' "$x"
        done
else
        POL_Debug_Message "Extracting only x86 dlls"
        mkdir "xact_x86"
        cabextract -d xact_x86/ -L -F '*_xact_*x86*' directx_Jun2010_redist.exe
        cabextract -d xact_x86/ -L -F '*_x3daudio_*x86*' directx_Jun2010_redist.exe
        cabextract -d xact_x86/ -L -F '*_xaudio_*x86*' directx_Jun2010_redist.exe
        for x in `ls xact_x86/*.cab`
        do
          cabextract -d "$WINEPREFIX/drive_c/windows/system32" -L -F '*.dll' "$x"
        done
fi

# Registering XACT
POL_Debug_Message "Registering XACT & Xaudio dlls"
POL_SetupWindow_wait "$(eval_gettext 'Registering libraries, please wait\n(It can take a while)')" "$TITLE"
for x in "$WINEPREFIX/drive_c/windows/system32/xactengine"* "$WINEPREFIX/drive_c/windows/system32/xaudio"*
do
        POL_Wine --ignore-errors regsvr32 `basename $x`
        case $? in
          0|4) ;; # 4 = registration not required
          *) POL_Debug_Fatal "Error $? registering DLL $x"
        esac
done

# Cleaning
POL_Debug_Message "Deleting temporary directories"
rm -rf "$POL_USER_ROOT/ressources/xact_x86"
if [ "$POL_ARCH" == "amd64" ]; then
        rm -rf "$POL_USER_ROOT/ressources/xact_x64"
fi

Replies

Anonymous
Tuesday 9 May 2023 at 13:00
I forgot to change the "updated by" part, I'm not sure how strict that is.
ddman47 Thursday 27 May 2021 at 15:46
ddman47 Anonymous

Message

It cannot be installed.

http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe

Local: 822e4c516600e81dc7fb16d9a77ec6d4
Server: 7c1fc2021cf57fed3c25c9b03cd0c31a

Replies

Dadu042 Wednesday 19 February 2020 at 0:06
Dadu042

Message

Does fail to complete on Wine 5.0.0 (32 bits), perhaps because of a missing file : 'xaudio2_0.dll'

 

[02/19/20 00:02:36] - Running wine-5.0 regsvr32 xaudio2_0.dll (Working directory : /home/me/.PlayOnLinux/ressources)
0051:err:module:load_so_dll failed to load .so lib "/home/me/.PlayOnLinux/wine/linux-x86/5.0/bin/../lib/wine/xaudio2_0.dll.so": libFAudio.so.0: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type

Replies

Wednesday 19 February 2020 at 0:11
I solved the issue by fixing the 'libFaudio.so.0 (libFaudio)' issue (see this Wiki). My OS is Ubuntu 19.10 64bits.
petch Saturday 17 October 2015 at 15:53
petch

Information

This update has been approved by the team.

Message

Fix for regsvr returning exitcode 4 for "registration not required"

Differences

@@ -49,7 +49,11 @@
 POL_SetupWindow_wait "$(eval_gettext 'Registering libraries, please wait\n(It can take a while)')" "$TITLE"
 for x in "$WINEPREFIX/drive_c/windows/system32/xactengine"* "$WINEPREFIX/drive_c/windows/system32/xaudio"*
 do
-	POL_Wine regsvr32 `basename $x`
+	POL_Wine --ignore-errors regsvr32 `basename $x`
+	case $? in
+	  0|4) ;; # 4 = registration not required
+	  *) POL_Debug_Fatal "Error $? registering DLL $x"
+	esac
 done
 
 # Cleaning

New source code

#!/bin/bash
# Last revision : (2012-05-15 21:00)
# Creator : Berillions 
# Updated by : GNU_Raziel
# Only For : http://www.playonlinux.com

# Changelog:
#   2012-05-14 petch: fixed case of registered DLLs from XAudio* to xaudio*

# 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 Xact dlls
POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing Xact dlls...')" "$TITLE"
cd "$POL_USER_ROOT/ressources"

if [ "$POL_ARCH" == "amd64" ]; then
        POL_Debug_Message "Extracting x86 and x64 dlls"
        mkdir "xact_x64"
        cabextract -d xact_x64/ -L -F '*_xact_*x64*' directx_Jun2010_redist.exe
        cabextract -d xact_x64/ -L -F '*_x3daudio_*x64*' directx_Jun2010_redist.exe
        cabextract -d xact_x64/ -L -F '*_xaudio_*x64*' directx_Jun2010_redist.exe
        for x in `ls xact_x64/*.cab`
        do
          cabextract -d "$WINEPREFIX/drive_c/windows/system32" -L -F '*.dll' "$x"
        done
        mkdir "xact_x86"
        cabextract -d xact_x86/ -L -F '*_xact_*x86*' directx_Jun2010_redist.exe
        cabextract -d xact_x86/ -L -F '*_x3daudio_*x86*' directx_Jun2010_redist.exe
        cabextract -d xact_x86/ -L -F '*_xaudio_*x86*' directx_Jun2010_redist.exe
        for x in `ls xact_x86/*.cab`
        do
          cabextract -d "$WINEPREFIX/drive_c/windows/syswow64" -L -F '*.dll' "$x"
        done
else
        POL_Debug_Message "Extracting only x86 dlls"
        mkdir "xact_x86"
        cabextract -d xact_x86/ -L -F '*_xact_*x86*' directx_Jun2010_redist.exe
        cabextract -d xact_x86/ -L -F '*_x3daudio_*x86*' directx_Jun2010_redist.exe
        cabextract -d xact_x86/ -L -F '*_xaudio_*x86*' directx_Jun2010_redist.exe
        for x in `ls xact_x86/*.cab`
        do
          cabextract -d "$WINEPREFIX/drive_c/windows/system32" -L -F '*.dll' "$x"
        done
fi

# Registering XACT
POL_Debug_Message "Registering XACT & Xaudio dlls"
POL_SetupWindow_wait "$(eval_gettext 'Registering libraries, please wait\n(It can take a while)')" "$TITLE"
for x in "$WINEPREFIX/drive_c/windows/system32/xactengine"* "$WINEPREFIX/drive_c/windows/system32/xaudio"*
do
        POL_Wine --ignore-errors regsvr32 `basename $x`
        case $? in
          0|4) ;; # 4 = registration not required
          *) POL_Debug_Fatal "Error $? registering DLL $x"
        esac
done

# Cleaning
POL_Debug_Message "Deleting temporary directories"
rm -rf "$POL_USER_ROOT/ressources/xact_x86"
if [ "$POL_ARCH" == "amd64" ]; then
        rm -rf "$POL_USER_ROOT/ressources/xact_x64"
fi

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