Scripts
Script for Fable : The Lost Chapters
#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
presentation "Fable : The Lost Chapters" "Microsoft" "http://www.microsoft.com/games/fable/default.asp" "GNU_Raziel" "FableTheLostChapters" 1 10
if [ "$POL_LANG" == "fr_FR.UTF-8" ]; then
LNG_WAIT_CP="Patientez pendant la préparation de l'installation..."
LNG_MFC42_DL="Téléchargement de mfc42..."
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_FABLE_WARNING="A la fin de l'installation on vous demande d'insérer le CD1, appuyez juste sur ANNULER et fermez correctement l'installeur, le jeu est déjà parfaitement installé et fonctionnel."
LNG_FABLE_WAIT_END="Appuyez sur "Suivant" UNIQUEMENT quand l'installation du jeu sera terminée sous peine de devoir recommencer l'installation."
else
LNG_WAIT_CP="Wait while the installation is prepared..."
LNG_MFC42_DL="Downloading mfc42..."
LNG_DX9_DL="Downloading Wine DirectX9.0c Update..."
LNG_DX9_INSTALL="DirectX9.0c Update installation will begin."
LNG_FABLE_WARNING="A the end of the installation proccess, you will be asked to insert CD1, just press CANCEL et close installer, the gameis already fully installed"
LNG_FABLE_WAIT_END="Click on "Next" ONLY when the game installation is finished or you will have to redo the installation."
fi
Ask_For_cdrom 2 10
Check_cdrom "install.exe"
TEMP="$HOME/.PlayOnLinux/tmp/FableTheLostChapters"
chmod 777 $TEMP -R
rm $TEMP -R
mkdir -p $REPERTOIRE/wineprefix/FableTheLostChapters
mkdir -p $TEMP
cd $REPERTOIRE/wineprefix/FableTheLostChapters
select_prefixe "$(pwd)"
creer_prefixe
cd $WINEPREFIX/drive_c/windows/
mkdir temp
cd $WINEPREFIX/dosdevices
rm ./*
ln -s ../drive_c c:
ln -s / z:
ln -s $TEMP d:
attendre "$LNG_WAIT_CP" "cp -r $CDROM/* $TEMP" "" 3 10 1 "" 1
chmod 777 $TEMP -R
ask_mount_num 2
attendre "$LNG_WAIT_CP" "cp -r $CDROM/* $TEMP" "" 4 10 1 "" 1
chmod 777 $TEMP -R
ask_mount_num 3
attendre "$LNG_WAIT_CP" "cp -r $CDROM/* $TEMP" "" 5 10 1 "" 1
chmod 777 $TEMP -R
ask_mount_num 4
attendre "$LNG_WAIT_CP" "cp -r $CDROM/* $TEMP" "" 6 10 1 "" 1
cd $REPERTOIRE/tmp/
if [ ! -e $REPERTOIRE/tmp/mfc42.dll.zip ]; then
telecharger "$LNG_MFC42_DL" http://www.dllbank.com/zip/m/mfc42.dll.zip "" 7 10
fi
if [ ! -e $REPERTOIRE/tmp/D3DX9_dll_update.zip ]; then
telecharger "$LNG_DX9_DL" http://www.threelights.de/page/projects/d3dx9_xx_dll_files/D3DX9_dll_update.zip "" 8 10
fi
cd $WINEPREFIX/drive_c/windows/system32/
unzip $REPERTOIRE/tmp/mfc42.dll.zip
cp $TEMP/mgspid.dll .
cp $TEMP/pidgen.dll .
regsvr32 mfc42.dll
cd $WINEPREFIX/drive_c/windows/temp/
unzip $REPERTOIRE/tmp/D3DX9_dll_update.zip
message "$LNG_DX9_INSTALL" "" 8 10
Set_OS "winxp"
wine c:\\windows\\temp\\D3DX9_dll_update\\Install\\DXSETUP.exe
fonts_to_prefixe
message "$LNG_FABLE_WARNING" "" 9 10
wine d:\\install.exe
message "$LNG_FABLE_WAIT_END" "" 10 10
Set_Managed "On"
Set_DXGrab "On"
Set_GLSL "On"
echo "[HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides]" > $REPERTOIRE/tmp/dlloverrides.reg
echo "\"quartz\"=\"native,builtin\"" >> $REPERTOIRE/tmp/dlloverrides.reg
regedit $REPERTOIRE/tmp/dlloverrides.reg
simuler_reboot
chmod 777 $TEMP -R
rm $TEMP -R
rm $REPERTOIRE/tmp/dlloverrides.reg
cd $WINEPREFIX/dosdevices
rm ./d:
ln -s $CDROM ./d:
creer_lanceur "FableTheLostChapters" "Program Files/Microsoft Games/Fable - The Lost Chapters" "Fable.exe" "FableTheLostChapter.xpm" "Fable - The Lost Chapters"
Set_WineVersion_Assign "0.9.50" "Fable - The Lost Chapters"
end_install
exit