#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"The Settlers II 10th Anniversary"
AUTHOR=
"Marco Gerards"
PREFIX=
"SettlersII_10thAnniversary"
PREFIXDIR=
"$REPERTOIRE/wineprefix/$PREFIX"
WORKINGWINEVERSION=
"1.1.44"
POL_SetupWindow_make_icon_for_shortcut()
{
convert
"$HOME/.local/share/icons/$2"
-geometry 32X32
"$REPERTOIRE/icones/32/$1"
}
wget http:
//upload
.wikimedia.org
/wikipedia/en/b/b5/Settlers_2_10th_Anniversary_cover
.jpg --output-document=
"$REPERTOIRE/tmp/leftnotscaled.png"
convert
"$REPERTOIRE/tmp/leftnotscaled.png"
-scale 150x356\!
"$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_Init
""
"$REPERTOIRE/tmp/left.jpeg"
select_prefix
"$PREFIXDIR"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"/LeggiMi.doc"
POL_SetupWindow_install_wine
"$WORKINGWINEVERSION"
Use_WineVersion
"$WORKINGWINEVERSION"
POL_SetupWindow_prefixcreate
POL_SetupWindow_wait_next_signal
"Installing game..."
"$TITLE"
wine
"$CDROM/setup.exe"
POL_SetupWindow_detect_exit
Set_SoundDriver
"oss"
PROGRAMFILES=
"Program Files"
POL_LoadVar_PROGRAMFILES
POL_SetupWindow_make_icon_for_shortcut
"$TITLE"
"*_s2dng.0.png"
POL_SetupWindow_make_shortcut
"$PREFIX"
"$PROGRAMFILES/Ubisoft/Funatics/The Settlers II - 10th Anniversary/bin"
"S2DNG.exe"
""
"$TITLE"
Set_WineVersion_Assign
"$WORKINGWINEVERSION"
"$TITLE"
POL_SetupWindow_message_image
"Please note that this game has a copy protection system\nand sadly, it prevents Wine from running the game.\n\nPlayOnLinux will not provide any help concerning any illegal\nstuff."
"Note about copy protection"
"$PLAYONLINUX/themes/tango/warning.png"
POL_SetupWindow_Close
exit