#!/usr/bin/env playonlinux-bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Need for Speed II SE"
PREFIX=
"nfs2se"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation
"$TITLE"
"EA Games"
"N/A"
"NSLW"
"$PREFIX"
POL_Wine_SelectPrefix
$PREFIX
POL_Wine_PrefixCreate
"1.9.0"
POL_System_SetArch
"x86"
Set_OS
"win98"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"nfs2sea.exe"
POL_SetupWindow_wait_next_signal
"Installation in progress..."
"$TITLE"
POL_SetupWindow_menu
"What language do you prefer?"
"Language"
"english german spanish italian swedish french"
" "
POL_Wine_WaitExit
"$TITLE"
if
[ ! -e
"$CDROM/setup/$APP_ANSWER/setup.exe"
];
then
POL_Wine
$CDROM
/setup/english/setup
.exe
else
POL_Wine
$CDROM
/setup/
$APP_ANSWER
/setup
.exe
fi
POL_SetupWindow_message
"$TITLE has been installed successfully"
"$TITLE"
mkdir
"${WINEPREFIX}/drive_c/cdrom"
cp
-r ${CDROM}/*
"${WINEPREFIX}/drive_c/cdrom"
chmod
-R +w
"${WINEPREFIX}/drive_c/cdrom/"
{redist,setup,utility}
rm
-rf
"${WINEPREFIX}/drive_c/cdrom/"
{redist,setup,utility}
letter=d
cd
"$WINEPREFIX/dosdevices"
rm
-f
"$letter:"
2>
/dev/null
rm
-f
"$letter::"
2>
/dev/null
ln
-s
"${WINEPREFIX}/drive_c/cdrom"
"$letter:"
ln
-s
"${WINEPREFIX}/drive_c/cdrom"
"$letter::"
POL_LoadVar_PROGRAMFILES
cp
"$CDROM/nfs2sea.exe"
"${WINEPREFIX}/drive_c/${PROGRAMFILES}/Electronic Arts/Need For Speed II SE"
chmod
775
"${WINEPREFIX}/drive_c/${PROGRAMFILES}/Electronic Arts/Need For Speed II SE/nfs2sea.exe"
Set_OS
"winxp"
POL_System_TmpCreate
nfs2se
cd
$POL_System_TmpDir
POL_Wine
pe.exe
"${WINEPREFIX}/drive_c/${PROGRAMFILES}/Electronic Arts/Need For Speed II SE/nfs2sea.exe"
POL_Wine
pe.exe
"${WINEPREFIX}/drive_c/${PROGRAMFILES}/Electronic Arts/Need For Speed II SE/nfs2sen.exe"
POL_Wine_WaitExit
"$TITLE"
mv
d-1.html nGlide104_setup.exe
POL_Wine
nGlide104_setup.exe
echo
"REGEDIT4"
> nglide.reg
echo
""
> nglide.reg
echo
"[HKEY_CURRENT_USER\\Software\\Zeus Software\\nGlide]"
> nglide.reg
echo
"\"Aspect\"=\"1\""
>> nglide.reg
echo
"\"Gamma\"=\"5\""
>> nglide.reg
echo
"\"Refresh\"=\"0\""
>> nglide.reg
echo
"\"Resolution\"=\"1\""
>> nglide.reg
echo
"\"Splash\"=\"0\""
>> nglide.reg
echo
"\"Vsync\"=\"1\""
>> nglide.reg
POL_Wine
regedit nglide.reg
cp
"$CDROM/nfs2sea.ico"
"$REPERTOIRE/icones/32/$TITLE"
cp
"$CDROM/nfs2sea.ico"
"$REPERTOIRE/icones/full_size/$TITLE"
cp
"$CDROM/nfs2sen.ico"
"$REPERTOIRE/icones/32/$TITLE (no 3dfx)"
cp
"$CDROM/nfs2sen.ico"
"$REPERTOIRE/icones/full_size/$TITLE (no 3dfx)"
POL_Shortcut
"${PROGRAMFILES}/Electronic Arts/Need For Speed II SE/nfs2sea.exe"
"$TITLE"
POL_Shortcut
"${PROGRAMFILES}/Electronic Arts/Need For Speed II SE/nfs2sen.exe"
"$TITLE (no 3dfx)"
Set_OS
"winme"
POL_System_TmpDelete
POL_SetupWindow_free_presentation
"$TITLE"
"The Installation has finished! \n\nIt's recommended to configure the graphics settings in the game. Normally everything can be set to the maximum value, except the gamma which is good with the value 3"
POL_SetupWindow_Close
exit