#!/bin/bash
if
[
"$PLAYONLINUX"
=
""
]
then
exit
0
fi
source
"$PLAYONLINUX/lib/sources"
SCRIPT_PREFIX=
"AMIFOOT"
SCRIPT_PREFIX_ABSOLU=
"$REPERTOIRE/wineprefix/$SCRIPT_PREFIX"
SCRIPT_JEU=
"AmiFoot"
SCRIPT_EDITEUR=
"CHABEAU Stéphane"
SCRIPT_AUTEUR=
"SuperPlumus"
SCRIPT_TMP=
"$REPERTOIRE/tmp/$SCRIPT_PREFIX"
LNG_TITRE=
"Installation de $SCRIPT_JEU"
LNG_WARN=
"AVERTISSEMENT :\\nCe script n'a pas été testé complétement,\\nmerci de rapporter d'éventuels bugs du script et/ou du programme !"
LNG_DEBUT=
"Installez le programme dans le répertoire par défaut !\\n\\nCliquez sur suivant pour commencer l'installation de $SCRIPT_JEU."
LNG_DOWNLOAD=
"Téléchargement de AmiFoot en cours..."
LNG_FIN=
"Installation terminée !\\n\\nAu démarrage des messages d'erreurs peuvent apparaitres."
POL_Install_dcom98()
{
LNG_DCOM98_TITRE=
"Installation de DCOM98"
LNG_DCOM98_DOWNLOAD=
"Téléchargement en cours de DCOM98..."
cd
$REPERTOIRE
/tmp
Set_OS
"win98"
rm
-f $WINEPREFIX
/drive_c/windows/system32/ole32
.dll
rm
-f $WINEPREFIX
/drive_c/windows/system32/olepro32
.dll
rm
-f $WINEPREFIX
/drive_c/windows/system32/oleaut32
.dll
rm
-f $WINEPREFIX
/drive_c/windows/system32/rpcrt4
.dll
POL_SetupWindow_wait_next_signal
"$LNG_DCOM98_TITRE"
"$LNG_DCOM98_TITRE"
WINEDLLOVERRIDES=
"ole32,advpack=n"
wine
"$REPERTOIRE/tmp/DCOM98.EXE"
/q
POL_Call
POL_Function_OverrideDLL native,
builtin
ole32 oleaut32 rpcrt4
cat
<< EOF >
"$REPERTOIRE/tmp/dcom98-dlls.reg"
REGEDIT4
[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\AppDefaults\\\\explorer.exe\\\\DllOverrides]
"ole32"
=
"builtin"
"oleaut32"
=
"builtin"
"rpcrt4"
=
"builtin"
[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\AppDefaults\\\\iexplore.exe\\\\DllOverrides]
"ole32"
=
"builtin"
"oleaut32"
=
"builtin"
"rpcrt4"
=
"builtin"
[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\AppDefaults\\\\services.exe\\\\DllOverrides]
"ole32"
=
"builtin"
"oleaut32"
=
"builtin"
"rpcrt4"
=
"builtin"
[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\AppDefaults\\\\wineboot.exe\\DllOverrides]
"ole32"
=
"builtin"
"oleaut32"
=
"builtin"
"rpcrt4"
=
"builtin"
[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\AppDefaults\\\\winedevice.exe\\\\DllOverrides]
"ole32"
=
"builtin"
"oleaut32"
=
"builtin"
"rpcrt4"
=
"builtin"
EOF
regedit
"$REPERTOIRE/tmp/dcom98-dlls.reg"
Set_OS
"winxp"
rm
-f $REPERTOIRE
/tmp/DCOM98
.EXE
rm
-f $REPERTOIRE
/tmp/dcom98-dlls
.reg
POL_SetupWindow_detect_exit
}
POL_SetupWindow_Init
POL_SetupWindow_presentation
"$SCRIPT_JEU"
"$SCRIPT_EDITEUR"
"$SCRIPT_SITE_EDITEUR"
"$SCRIPT_AUTEUR"
"$SCRIPT_PREFIX"
POL_SetupWindow_message
"$LNG_WARN"
"$LNG_TITRE"
POL_SetupWindow_install_wine
"1.3.4"
Use_WineVersion
"1.3.4"
mkdir
-p $SCRIPT_TMP
mkdir
-p $SCRIPT_PREFIX_ABSOLU
cd
"$SCRIPT_PREFIX_ABSOLU"
select_prefix
"$(pwd)"
POL_SetupWindow_prefixcreate
PREFIX=
"$SCRIPT_PREFIX"
POL_Call
POL_Install_ie6
POL_Install_dcom98
cd
$SCRIPT_TMP
unzip mfc42.dll.zip
unzip msvbvm60.dll.zip
mv
*.dll
"$SCRIPT_PREFIX_ABSOLU/drive_c/windows/system32"
regsvr32 mfc42.dll msvbvm60.dll
POL_SetupWindow_message
"$LNG_DEBUT"
"$LNG_TITRE"
Set_Desktop
"On"
"800"
"600"
POL_SetupWindow_wait_next_signal
"$LNG_TITRE"
"$LNG_TITRE"
wine
"AmiFoot-Install.exe"
sleep
5
regsvr32 fpSPR80.OCX comdlg32.ocx CoolXPButton.ocx GRAPHS32.OCX mscomctl.ocx RICHTX32.OCX
POL_SetupWindow_detect_exit
POL_SetupWindow_make_shortcut
"$SCRIPT_PREFIX"
"AmiFoot"
"AmiFoot.exe"
""
"$SCRIPT_JEU"
convert
"$HOME/.local/share/icons/*_AmiFoot.0.png"
-geometry 32X32
"$REPERTOIRE/icones/32/$SCRIPT_JEU"
Set_WineVersion_Assign
"1.3.4"
"$SCRIPT_JEU"
Set_OS
"win2k"
rm
$SCRIPT_TMP -R
POL_SetupWindow_message
"$LNG_FIN"
"$LNG_TITRE"
POL_SetupWindow_Close
exit