#!/bin/bash
#!/usr/bin/env playonlinux-bash
[ -z
"$PLAYONLINUX"
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Dungeon Siege: Legends of Aranna"
PREFIX=
"Dungeon-Siege-Aranna"
WORKING_WINE_VERSION=
"4.0.1"
AUTHOR=
"Dadu042"
EDITOR=
"Microsoft Game Studios"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation
"$TITLE"
"$EDITOR"
"$GAME_URL"
"$AUTHOR"
"$PREFIX"
POL_RequiredVersion
"4.3.4"
|| POL_Debug_Fatal
"$APPLICATION_TITLE 4.3.4 is required to install $TITLE"
POL_Wine_SelectPrefix
"$PREFIX"
POL_System_SetArch
"x86"
POL_Wine_PrefixCreate
"$WORKING_WINE_VERSION"
POL_System_TmpCreate
"$TITLE"
Set_OS
"winxp"
POL_SetupWindow_InstallMethod
"LOCAL,CD"
POL_SetupWindow_message
"Note: at the end of the installation, please do not run the game."
"$TITLE"
if
[
"$INSTALL_METHOD"
==
"LOCAL"
];
then
cd
"$HOME"
POL_SetupWindow_browse
"$(eval_gettext 'Please select the setup file to run (install.exe)')"
"$TITLE"
SETUP_EXE=
"$APP_ANSWER"
POL_Wine
start
/unix
"$SETUP_EXE"
POL_Wine_WaitExit
"$TITLE"
cd
"$POL_System_TmpDir"
elif
[
"$INSTALL_METHOD"
==
"STEAM"
];
then
POL_Call
POL_Install_steam
cd
"$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine
"steam.exe"
steam:
//install/xxxxx
POL_Wine_WaitBefore
"$TITLE"
else
POL_SetupWindow_message
"Warning: the installation from CDs might fail when CD #2 inserted.\n\n Workaround: copy the CDs #2,3 into a folder of your HDD, the last to copy is the #1. Then you will have to make the installation from LOCAL."
"$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"pidgen.dll"
POL_Wine
start
/unix
"$CDROM/install.exe"
POL_Wine_WaitExit
"install.exe"
cd
"$POL_System_TmpDir"
fi
if
[
"$INSTALL_METHOD"
==
"STEAM"
];
then
else
POL_Shortcut
"DungeonSiege.exe"
"$TITLE - DungeonSiege 1"
""
POL_Shortcut
"DSLOA.exe"
"$TITLE"
""
POL_Shortcut
"DSVideoConfig.exe"
"$TITLE - VideoConfig"
""
POL_Shortcut_Document
"$TITLE"
"readme.rtf"
fi
POL_SetupWindow_menu
"$(eval_gettext 'Install a official patch-update ? (to download by yourself).')"
"$TITLE"
"$(eval_gettext 'Yes')~$(eval_gettext 'No')"
"~"
if
[
"$APP_ANSWER"
==
"$(eval_gettext 'Yes')"
];
then
POL_SetupWindow_browse
"$(eval_gettext 'Please select the .EXE file to run')"
"$TITLE"
PATCH_EXE=
"$APP_ANSWER"
POL_Wine
start
/unix
"$PATCH_EXE"
POL_Wine_WaitExit
"$PATCH_EXE"
fi
POL_System_TmpDelete
POL_SetupWindow_Close
exit
0