#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Dracula II: The Last Sanctuary"
PREFIX=
"DII"
WORKING_WINE_VERSION=
"1.3.21"
rm
"$REPERTOIRE/tmp/*.jpg"
POL_SetupWindow_Init
POL_SetupWindow_presentation
"$TITLE"
"Microids"
""
"Maximo90"
"$PREFIX"
POL_SetupWindow_message
"Please insert $TITLE media into your disk drive."
POL_SetupWindow_cdrom
cd
"$CDROM"
CHECK=$(
find
. -iwholename .
/Install
.EXE |
cut
-d
'/'
-f2)
POL_SetupWindow_check_cdrom
"$CHECK"
select_prefix
"$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_install_wine
"$WORKING_WINE_VERSION"
Use_WineVersion
"$WORKING_WINE_VERSION"
POL_LoadVar_PROGRAMFILES
POL_Call
POL_Install_d3dx10
POL_Call
POL_Install_d3dx9
POL_Call
POL_Install_gecko
POL_Call
POL_Install_d3dx11
POL_Call
POL_Install_dotnet20
POL_Call
POL_Install_dinput8
POL_Call
POL_Install_directplay
POL_Call
POL_Install_dxfullsetup
POL_SetupWindow_reboot
POL_SetupWindow_wait_next_signal
"Installation in progress..."
"$TITLE"
wine
"$CDROM/$CHECK"
POL_SetupWindow_detect_exit
[
"$PLAYONMAC"
==
""
] || Set_Managed
"Off"
if
[ -e
"$WINEPREFIX/drive_c/windows/temp/"
];
then
rm
-rf
"$WINEPREFIX/drive_c/windows/temp/*"
chmod
-R 777
"$REPERTOIRE/tmp/"
rm
-rf
"$REPERTOIRE/tmp/*"
fi
POL_SetupWindow_auto_shortcut
"$PREFIX"
"Dracula2.exe"
"$TITLE"
""
""
Set_WineVersion_Assign
"$WORKING_WINE_VERSION"
"$TITLE"
POL_SetupWindow_message
"$TITLE has been installed successfully."
"$TITLE"
POL_SetupWindow_Close
exit