#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITRE=
"Death Rally 1996 (free re-release)"
PREFIXE=
"DeathRally"
cd
$REPERTOIRE
/tmp/
POL_SetupWindow_Init
cd
$REPERTOIRE
/tmp/
select_prefix
"$REPERTOIRE/wineprefix/$PREFIXE"
POL_SetupWindow_prefixcreate
POL_System_TmpCreate
"deathrallytemp"
POL_SetupWindow_InstallMethod
"LOCAL,DOWNLOAD"
if
[
"$INSTALL_METHOD"
=
"LOCAL"
]
then
POL_SetupWindow_browse
"Please, select the installation file."
"Installing Death Rally"
POL_SetupWindow_wait
"Installation in progress."
"Installation of Death Rally"
POL_Wine
start
/unix
"$APP_ANSWER"
elif
[
"$INSTALL_METHOD"
=
"DOWNLOAD"
]
then
cd
"$POL_System_TmpDir"
POL_SetupWindow_wait
"Installation in progress"
"Installation of Death Rally"
POL_Wine
start
/unix
"$POL_System_TmpDir/DeathRallyWin_10.exe"
fi
POL_System_TmpDelete
sleep
0.1
POL_SetupWindow_set_text
"Death Rally ..."
POL_SetupWindow_detect_exit
sleep
1
POL_SetupWindow_pulse 33
sleep
0.1
POL_SetupWindow_detect_exit
POL_SetupWindow_make_shortcut
"$PREFIXE"
"Program Files/Death Rally"
"dr.exe"
""
"$TITRE"
POL_SetupWindow_message
"$TITRE has been installed successfully"
"$TITRE"
POL_SetupWindow_Close
exit