#!/bin/bash
if
[
"$PLAYONLINUX"
=
""
]
then
exit
0
fi
source
"$PLAYONLINUX/lib/sources"
Name=
"Sid Meier's - Civilization IV Complete"
Prefix=
"CIV4C"
cfg_check
cd
"$REPERTOIRE/tmp"
rm
-R *.jpg
convert
"Civilization IV.jpg"
-scale 150x356\\!
"civ4.jpg"
POL_SetupWindow_Init
""
"$REPERTOIRE/tmp/civ4.jpg"
POL_SetupWindow_free_presentation
"$Name"
"Ce script va installer $Name et le patch 3.19 qui permet de jouer sans DVD.\\nMSXML3 et DirectX 9.0c sera aussi installés.\\nPour commencer cliquez sur 'suivant'."
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"setup.exe"
select_prefixe
"$REPERTOIRE/wineprefix/$Prefix/"
POL_SetupWindow_prefixcreate
PROGRAMFILES=`wine cmd
/c
echo
"%ProgramFiles%"
`
PROGRAMFILES=${PROGRAMFILES:3}
POL_Call
POL_Install_msxml3
POL_SetupWindow_detect_exit
POL_Call
POL_Install_d3dx9_aug2009
POL_SetupWindow_detect_exit
POL_SetupWindow_reboot
Set_OS
"winxp"
Set_SoundDriver alsa
wine
"$CDROM/setup.exe"
POL_SetupWindow_message
"Appuyez sur \\"
Suivant\\
" UNIQUEMENT si l'installation du\\njeu est terminée ou si l'installation coince sous peine de devoir recommencer l'installation.\\n"
"$Name"
kill
-9 `
ps
-ef |
grep
DXSETUP.exe |
awk
'{print $2}'
|
head
-1` 2>
/dev/null
POL_SetupWindow_message
"Appuyez sur \\"
Suivant\\
" pour lancer le téléchargement et l'installation du patch 3.19 ....\\n"
"$Name"
kill
-9 `
ps
-ef |
grep
"_is6358.exe"
|
awk
'{print $2}'
|
head
-1` 2>
/dev/null
cd
$REPERTOIRE
/ressources/
if
[ ! -e $REPERTOIRE
/ressources/civilization_iv_beyond_the_sword_patch_v3
.19_multi-langues_290666.exe ];
then
fi
wine
"$REPERTOIRE/ressources/civilization_iv_beyond_the_sword_patch_v3.19_multi-langues_290666.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_make_shortcut
"$Prefix"
"$PROGRAMFILES/2K Games/Firaxis Games/Sid Meier's Civilization 4 Complete/Warlords/"
"Civ4Warlords.exe"
""
"Civilization 4 Complete"
convert
"$CDROM/Autorun/Civ4Installer.ico"
-geometry 32X32
"$REPERTOIRE/icones/32/Civilization 4"
POL_SetupWindow_message
"$Name est bien installé dans le préfixe $Prefix"
"$Name"
POL_SetupWindow_Close
exit