#!/bin/bash
PROGRAMFILES=`wine cmd
/c
echo
"%ProgramFiles%"
`
PROGRAMFILES=${PROGRAMFILES:3}
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Carom3D"
if
[
"$POL_LANG"
==
"fr"
];
then
LNG_DX9_DL=
"Téléchargement de la mise a jour DirectX9.0c pour Wine..."
LNG_DX9_INSTALL=
"L'installation de la mise a jour DirectX9.0c pour Wine va débuter."
LNG_WINETRICKS=
"Installation du framework .NET version 1.1"
LNG_MFC42_DL=
"Téléchargement de mfc42..."
LNG_MEMSIZE=
"Quelle est la taille de la mémoire de votre carte graphique?"
LNG_TITLE_MEMSIZE=
"Taille de la mémoire"
LNG_PATHEXE=
"Ou est le fichier d'installation de Carom3D?"
LNG_WAITINSTALL=
"Installation de Carom3D en cours..."
else
LNG_DX9_DL=
"Downloading Wine DirectX9.0c Update..."
LNG_DX9_INSTALL=
"DirectX9.0c Update installation will begin."
LNG_WINETRICKS=
"Installation of Framework .NET v1.1"
LNG_MFC42_DL=
"Downloading mfc42..."
LNG_MEMSIZE=
"What's your graphical card memory size?"
LNG_TITLE_MEMSIZE=
"Memory Size"
LNG_PATHEXE=
"Where is the installation file of Carom3D?"
LNG_WAITINSTALL=
"Installation of Carom3D in progress..."
fi
cd
"$REPERTOIRE/tmp"
POL_SetupWindow_Init
""
""
POL_SetupWindow_install_wine
"1.1.7"
select_prefix
"$REPERTOIRE/wineprefix/$TITLE/"
POL_SetupWindow_prefixcreate
cd
"$REPERTOIRE/ressources"
if
[ ! -e $REPERTOIRE
/ressources/
];
then
mkdir
-p $REPERTOIRE
/ressources/
fi
if
[ ! -e $REPERTOIRE
/ressources/mfc42
.dll.zip ];
then
fi
if
[ ! -e $REPERTOIRE
/ressources/D3DX9_XX_dll_
\\(32Bit_All\\).zip ];
then
fi
cd
$WINEPREFIX
/drive_c/windows/temp/
unzip $REPERTOIRE
/ressources/D3DX9_XX_dll_
\\(32Bit_All\\).zip
wine c:\\\\windows\\\\temp\\\\D3DX9_XX_dll_\\(32Bit_All\\)\\\\Install\\\\DXSETUP.exe
if
[
"`sha1sum < winetricks | sed 's/ .*//'`"
!=
"bf24bc6d84a40a836d7ce6de41ff04f910b34434"
];
then
wget http:
//winezeug
.googlecode.com
/svn/trunk/winetricks
--output-document=winetricks
fi
POL_SetupWindow_wait_next_signal
"$LNG_WINETRICKS"
"$LNG_NWINETRICKS"
bash
winetricks -q dotnet11
POL_SetupWindow_detect_exit
cd
$WINEPREFIX
/drive_c/windows/system32/
unzip $REPERTOIRE
/ressources/mfc42
.dll.zip
regsvr32 mfc42.dll
cat
<< EOF >
"$REPERTOIRE/tmp/dlloverride.reg"
[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\DllOverrides]
"d3d8"
=
"builtin"
"d3d9"
=
"builtin"
"d3dim"
=
"native"
"d3drm"
=
"native"
"d3dx8"
=
"native"
"d3dx9_24"
=
"native"
"d3dx9_25"
=
"native"
"d3dx9_26"
=
"native"
"d3dx9_27"
=
"native"
"d3dx9_28"
=
"native"
"d3dx9_29"
=
"native"
"d3dx9_30"
=
"native"
"d3dx9_31"
=
"native"
"d3dx9_32"
=
"native"
"d3dx9_33"
=
"native"
"d3dx9_34"
=
"native"
"d3dx9_35"
=
"native"
"d3dx9_36"
=
"native"
"d3dxof"
=
"native"
"dciman32"
=
"native"
"ddrawex"
=
"native"
"devenum"
=
"native"
"dinput"
=
"builtin"
"dinput8"
=
"builtin"
"dmband"
=
"native"
"dmcompos"
=
"native"
"dmime"
=
"native"
"dmloader"
=
"native"
"dmscript"
=
"native"
"dmstyle"
=
"native"
"dmsynth"
=
"native"
"dmusic"
=
"native"
"dmusic32"
=
"native"
"dnsapi"
=
"native"
"dplay"
=
"native"
"dplayx"
=
"native"
"dpnaddr"
=
"native"
"dpnet"
=
"native"
"dpnhpast"
=
"native"
"dpnlobby"
=
"native"
"dsound"
=
"builtin"
"dswave"
=
"native"
"dxdiagn"
=
"native"
"mscoree"
=
"native"
"msdmo"
=
"native"
"qcap"
=
"native"
"quartz"
=
"native"
"streamci"
=
"native"
EOF
regedit
"$REPERTOIRE/tmp/dlloverride.reg"
cd
"$HOME"
POL_SetupWindow_browse
"$LNG_PATHEXE"
"$TITLE"
POL_SetupWindow_wait_next_signal
"$LNG_WAITINSTALL"
"$TITLE"
cd
"$REPERTOIRE/tmp"
unzip
"$APP_ANSWER"
wine
"NeoSetup.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_menu_list
"$LNG_MEMSIZE"
"$LNG_TITLE_MEMSIZE"
"32 64 128 256 384 512 768 1024 2048"
" "
VMS=
"$APP_ANSWER"
Set_OS winxp
Set_Desktop
"On"
"800"
"600"
Set_SoundDriver
"alsa"
Set_WineVersion_Assign
"1.1.7"
"$TITLE"
Use_WineVersion
"1.1.7"
POL_SetupWindow_make_shortcut
"$TITLE"
"$PROGRAMFILES/Neoact/$TITLE"
"carom.exe"
""
"$TITLE"
POL_SetupWindow_Close
exit