Forums

Script installation Directx9 juin 2008 patch

Auteur Réponses
benji64 Jeudi 25 September 2008 à 13:41
benji64

Salut a tous, je viens de faire un script pour patcher directx9 version juin2008 sur le prefixe wine de POL.
ca marche chez moi. quelque erreurs lors de l'install mais ca semble fonctionner. en testant "wine dxdiag.exe" ca marche donc...
j'aurais besoin de quelques essais supplémentaire si certain sont motivé (et des amélioration si vous pensez qu'il y a besoin.
#!/bin/bash

override_dlls() {
mode=$1
shift
echo Using $mode override for following DLLs: $@
cat > $REPERTOIRE/tmp/dx9/override-dll.reg <<_EOF_
REGEDIT4

[HKEY_CURRENT_USER\Software\Wine\DllOverrides]
_EOF_
while test "$1" != ""
do
echo "\"$1\"=\"$mode\"" >> $REPERTOIRE/tmp/dx9/override-dll.reg
     shift
done

wine regedit $REPERTOIRE/tmp/dx9/override-dll.reg
rm $REPERTOIRE/tmp/dx9/override-dll.reg
}

if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check

POL_SetupWindow_Init
LNG_DIRECTX="$(eval_gettext 'This wizard will help you to install a directx patch in playonlinux')"
POL_SetupWindow_free_presentation "Direct X" "$LNG_DIRECTX"
POL_SetupWindow_games "Choose a prefix to patch" "Direct X"
prefixe=$(detect_wineprefix "$APP_ANSWER")
if [ -e "$prefixe" ]
then
select_prefixe "/home/benji/.PlayOnLinux/wineprefix/test"
mkdir $REPERTOIRE/tmp/dx9 -p
cd $REPERTOIRE/tmp/dx9
POL_SetupWindow_download "$(eval_gettext 'Download Directx9c june 2008...')" "$(eval_gettext 'Downloading...')" "http://download.microsoft.com/download/c/1/f/c1fb09b0-8a8b-45ba-8bb0-64f60bd23175/directx_jun2008_redist.exe"
Set_OS "win2k"
POL_SetupWindow_reboot
POL_SetupWindow_wait "$(eval_gettext 'PlayOnLinux is installing the patch ...')" "$(eval_gettext 'Extracting...')"
mkdir directx_tmp
export WINEDLLOVERRIDES="wintrust=b,mscoree=,ddraw,d3d8,d3d9,dsound,dinput=n"
wine directx_jun2008_redist.exe /t:z:$REPERTOIRE/tmp/dx9/directx_tmp
#cabextract directx_jun2008_redist.exe -d $REPERTOIRE/tmp/directx_tmp
override_dlls native d3dim d3drm d3dx8 d3dx9_24 d3dx9_25 d3dx9_26 d3dx9_27 d3dx9_28 d3dx9_29
override_dlls native d3dx9_30 d3dx9_31 d3dx9_32 d3dx9_33 d3dx9_34 d3dx9_35 d3dx9_36 d3dxof
override_dlls native dciman32 ddrawex devenum dmband dmcompos dmime dmloader dmscript dmstyle
override_dlls native dmsynth dmusic dmusic32 dnsapi dplay dplayx dpnaddr dpnet dpnhpast dpnlobby
override_dlls native dswave dxdiagn mscoree msdmo qcap quartz streamci
override_dlls builtin d3d8 d3d9 dinput dinput8 dsound
cd directx_tmp
wine DXSETUP.exe /silent
Set_OS "winxp"
POL_SetupWindow_reboot
POL_SetupWindow_detect_exit
rm $REPERTOIRE/tmp/dx9 -r
POL_SetupWindow_reboot
fi
POL_SetupWindow_Close
exit


les erreur qui ne semble pas comprometre l'install sont les suivantes :
err:setupapi:do_file_copyW Unsupported style(s) 0x144
err:rundll32:main Unable to load L"streamci"


note : je me suis inspéré de winetriks.

Edité par benji64


Kubuntu 10.10 64bits
benji64 Vendredi 26 September 2008 à 9:34
benji64

up

personne pour faire un ptit test avant de le soumettre?

Kubuntu 10.10 64bits
Quentin PÂRIS Lundi 29 September 2008 à 18:05
Quentin PÂRISAnonymous

Si il marche chez toi, soumet le
benji64 Lundi 29 September 2008 à 18:36
benji64

oki boss c fait

Kubuntu 10.10 64bits
Quentin PÂRIS Lundi 29 September 2008 à 18:41
Quentin PÂRISAnonymous

J'accepte le script alors

Edité par Tinou

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