#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Bioshock Patch 1.1"
TITLE_REQUIRED=
"Bioshock"
PREFIX=
"bioshock"
PVERSION=
"1.1"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_free_presentation
"$TITLE"
"$(eval_gettext 'Welcome in the patch $PVERSION Installer for $TITLE_REQUIRED')"
if
[
"$(POL_Wine_PrefixExists "
$PREFIX
")"
=
"False"
];
then
POL_SetupWindow_message
"$(eval_gettext 'This is an installer for an update or an addon;\nPlease install $TITLE_REQUIRED first')"
POL_SetupWindow_Close
exit
fi
POL_Wine_SelectPrefix
"$PREFIX"
POL_System_TmpCreate
"$PREFIX"
STEAM=`
find
$WINEPREFIX -name
"Steam.exe"
`
if
[
"$STEAM"
!=
""
];
then
POL_SetupWindow_message
"$(eval_gettext 'Steam have is own automatic update system')"
"$TITLE"
POL_SetupWindow_Close
exit
fi
POL_SetupWindow_InstallMethod
"DOWNLOAD,LOCAL"
if
[
"$INSTALL_METHOD"
=
"LOCAL"
];
then
cd
"$HOME"
POL_SetupWindow_browse
"$(eval_gettext 'Select patch to execute')"
"$TITLE"
""
POL_Wine_WaitBefore
"$TITLE"
POL_Wine
start
/unix
"$APP_ANSWER"
POL_Wine_WaitExit
"$TITLE"
else
cd
"$POL_System_TmpDir"
unzip -o
"Bioshock_Version_11_Patch_Worldwide_Retail.zip"
POL_Wine_WaitBefore
"$TITLE"
POL_Wine
start
/unix
"Bioshock Version 1.1 Patch Worldwide Retail.exe"
POL_Wine_WaitExit
"$TITLE"
fi
POL_System_TmpDelete
POL_SetupWindow_Close
exit
0