#!/bin/bash
TITLE=
"Heart Of Darkness"
CREATORS=
"Amazing Studio"
TITLESITE=
"This product no longer have a website!"
SCRIPTAUTHOR=
"LiL_Stenly"
PREFIX=
"HOD"
WVERSION=
"1.2"
FINDINS=
"HeartOfDarkness.exe"
TITLEEXE=
"HODWin32.exe"
TITLENAME=
"Heart Of Darkness"
LOADLEFT=
"$REPERTOIRE/tmp/HODLeft.png"
LOADTOP=
"$REPERTOIRE/tmp/HODTop.png"
IMGTMP=
"$REPERTOIRE/tmp"
WARN=
"PLEASE READ CAREFULLY!"
WARNTEXT=
"In the next window you will have to point \\nthe CD or Installation directory \\nthat contains $FINDINS file! \\n\\nAfter that installation will continue in silent mode! \\n\\nThank you for your attention! \\n\\nLiL_Stenly"
MSGINS=
"Now installing... "
MSG=
"Read Me (Full installation information)!"
MSGTEXT=
"Do you want to start '$TITLENAME' without disc? \\nThen in the next window choose *YES* \\nto make full installation of $TITLENAME \\nand that script will copy the $TITLENAME \\nneeded files from the disk to your computer! \\n\\nOtherwise you can also run the $TITLENAME with cd in your drive! \\n\\nLiL_Stenly"
INSMSG=
"You continued in normal installation!"
INSMSGTEXT=
"You will have to run $TITLENAME with disc in your drive!"
if
[
"$PLAYONLINUX"
=
""
];
then
exit
0
fi
source
"$PLAYONLINUX/lib/sources"
cd
$IMGTMP
rm
{HODLeft,HODTop}.png
wget {
"$IMGLEFT"
,
"$IMGTOP"
}
POL_SetupWindow_Init
"$LOADTOP"
"$LOADLEFT"
POL_SetupWindow_presentation
"$TITLE"
"$CREATORS"
"$TITLESITE"
"$SCRIPTAUTHOR"
"$PREFIX"
POL_SetupWindow_message
"$WARNTEXT"
"$WARN"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"$FINDINS"
select_prefix
"$REPERTOIRE/wineprefix/$PREFIX/"
POL_SetupWindow_install_wine
"$WVERSION"
Use_WineVersion
"$WVERSION"
POL_SetupWindow_prefixcreate
POL_LoadVar_PROGRAMFILES
POL_SetupWindow_wait_next_signal
"$MSGINS"
"$TITLE"
cd
"$CDROM"
wine
"$FINDINS"
/SILENT
POL_SetupWindow_detect_exit
Set_Desktop On 800 600
Set_OS
"Win95"
POL_SetupWindow_message
"$MSGTEXT"
"$MSG"
POL_SetupWindow_menu
"Do you want to make full installation?"
"$TITLE"
"YES! NO!"
" "
if
[
"$APP_ANSWER"
==
"YES!"
];
then
mkdir
-p
"$REPERTOIRE/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/$TITLE/paf"
cp
"$CDROM/paf/hod.paf"
"$REPERTOIRE/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/$TITLE/paf/hod.paf"
pushd
"$IMGTMP"
REGPATH1=
'.'
REGPATH2=
'.\\\\paf'
echo
REGEDIT4 > HOD.reg
echo
>> HOD.reg
echo
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Amazing Studio\\Heart Of Darkness]"
>> HOD.reg
echo
"\\"
EXE_PATH\\
"="
\\
"$REGPATH1\\"
>> HOD.reg
echo
"\\"
PAF_PATH\\
"="
\\
"$REGPATH2\\"
>> HOD.reg
regedit HOD.reg
popd
elif
[
"$APP_ANSWER"
==
"NO!"
];
then
POL_SetupWindow_message
"$INSMSGTEXT"
"$INSMSG"
fi
convert
"$HOME/.local/share/icons/*_hodwin32.0.xpm"
-geometry 32X32
"$REPERTOIRE/icones/32/HODWin32.png"
POL_SetupWindow_make_shortcut
"$PREFIX"
"$PROGRAMFILES/$TITLE"
"$TITLEEXE"
""
"$TITLENAME"
Set_WineVersion_Assign
"$WVERSION"
"$TITLENAME"
cd
$IMGTMP
rm
{HODLeft,HODTop}.png
rm
HOD.reg
POL_SetupWindow_Close
exit