#!/bin/bash
[ -z
"$PLAYONLINUX"
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
PREFIX=
"TempleElementalEvil_gog"
WORKING_WINE_VERSION=
"1.3.37"
TITLE=
"$(eval_gettext 'The Temple of Elemental Evil (GoG release)')"
SHORTCUT_NAME=
"Temple of Elemental Evil"
SHORTCUT_DOC=
"$SHORTCUT_NAME - $(eval_gettext 'User manual')"
SHORTCUT_README=
"$SHORTCUT_NAME - $(eval_gettext 'Readme')"
POL_SetupWindow_Init
POL_Debug_Init
POL_Wine_SelectPrefix
"$PREFIX"
POL_Wine_PrefixCreate
"$WORKING_WINE_VERSION"
cd
$HOME
POL_SetupWindow_browse
"$(eval_gettext 'Please select the setup file to run.')"
"$TITLE"
"setup_temple_of_elemental_evil.exe"
ARCHIVE=
"$APP_ANSWER"
POL_SetupWindow_wait
"$(eval_gettext 'Please wait while $TITLE is installed.')"
"$TITLE"
POL_Call
POL_Function_SetNativeExtension
"pdf"
POL_Call
POL_Function_SetNativeExtension
"txt"
POL_Wine
start
/unix
"$ARCHIVE"
|| POL_Debug_Fatal
"$(eval_gettext 'Error while installing archive')"
POL_Wine_WaitExit
"$TITLE"
Set_OS winxp
POL_SetupWindow_VMS
"16"
Set_Desktop
"On"
"800"
"600"
POL_Wine_reboot
cp
-n
"$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Temple of Elemental Evil/ToEE.ico"
"$REPERTOIRE/icones/32/$SHORTCUT_NAME"
POL_Shortcut
"ToEE.exe"
"$SHORTCUT_NAME"
POL_Shortcut
"start.exe"
"$SHORTCUT_DOC"
""
"'C:/$PROGRAMFILES/GOG.com/Temple of Elemental Evil/Manual.pdf'"
POL_Shortcut
"start.exe"
"$SHORTCUT_README"
""
"'C:/$PROGRAMFILES/GOG.com/Temple of Elemental Evil/Readme.txt'"
POL_SetupWindow_message
"$(eval_gettext 'It is highly recommended to now install the Circle of Eight Modpack\\nto fix many issues with this game, and optionally add new content\\n(for "
NC
" modpacks).\\nUse the dedicated PlayOnLinux script in patches section.')"
"$TITLE"
POL_SetupWindow_Close
exit