#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Enderal"
PREFIX=
"Enderal"
EDITOR=
"SureAI"
AUTHOR=
"Plata"
WORKING_WINE_VERSION=
"1.8.2"
GAME_VMS=
"1024"
STEAM_ID=
"72850"
POL_SetupWindow_Init
POL_SetupWindow_SetID 1005
POL_Debug_Init
POL_SetupWindow_presentation
"$TITLE"
"$EDITOR"
"$GAME_URL"
"$AUTHOR"
"$PREFIX"
POL_Wine_SelectPrefix
"$PREFIX"
POL_System_SetArch
"x86"
POL_Wine_PrefixCreate
"$WORKING_WINE_VERSION"
POL_Call
POL_Install_vcrun2008
POL_Call
POL_Install_dxfullsetup
POL_Call
POL_Install_steam
which
pulseaudio && Set_OS
"win7"
POL_SetupWindow_VMS
$GAME_VMS
POL_Wine_SetVideoDriver
POL_Wine_X11Drv
"GrabFullscreen"
"Y"
POL_Call
POL_Install_steam_flags
"$STEAM_ID"
POL_SetupWindow_message
"$(eval_gettext 'Select the installation method for Skyrim.')"
"$(eval_gettext 'Skyrim Installation.')"
POL_SetupWindow_InstallMethod
"DVD,STEAM"
if
[
"$INSTALL_METHOD"
==
"DVD"
];
then
POL_SetupWindow_message
"$(eval_gettext 'Please insert the game media into your disk drive')"
"$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"The Elder Scrolls V- Skyrim_disk1_0.sid"
POL_Wine
start
/unix
"$CDROM/setup.exe"
POL_Wine_WaitExit
"$TITLE"
else
POL_SetupWindow_message
"$(eval_gettext 'When Skyrim download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')"
"Skyrim"
cd
"$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine
start
/unix
"steam.exe"
steam:
//install/
$STEAM_ID
fi
cd
"$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine
start
/unix
"steam.exe"
steam:
//install/365720
POL_SetupWindow_message
"$(eval_gettext 'Select the installation method for the Enderal launcher.')"
"$(eval_gettext 'Enderal Launcher Installation.')"
POL_SetupWindow_InstallMethod
"LOCAL,DOWNLOAD"
if
[
"$INSTALL_METHOD"
=
"LOCAL"
]
then
POL_SetupWindow_browse
"$(eval_gettext 'Please select the setup file to run.')"
"$TITLE"
LAUNCHER=
"$APP_ANSWER"
mv
"$LAUNCHER"
"$PREFIX"
elif
[
"$INSTALL_METHOD"
=
"DOWNLOAD"
]
then
cd
"$PREFIX"
mv
Enderal_Launcher.exe*
"Enderal Launcher.exe"
fi
POL_SetupWindow_message
"$(eval_gettext 'Select the installation method for the Enderal installation files.')"
"$(eval_gettext 'Enderal Installation Files.')"
POL_SetupWindow_InstallMethod
"LOCAL,DOWNLOAD"
POL_System_TmpCreate
"$PREFIX"
if
[
"$INSTALL_METHOD"
=
"LOCAL"
]
then
POL_SetupWindow_browse
"$(eval_gettext 'Please select the setup file to run.')"
"$TITLE"
INSTALL_FILES=
"$APP_ANSWER"
elif
[
"$INSTALL_METHOD"
=
"DOWNLOAD"
]
then
cd
"$POL_System_TmpDir"
INSTALL_FILES=
"$POL_System_TmpDir/EnderalInstall_DE.gz"
fi
cp
"$INSTALL_FILES"
"$WINEPREFIX/drive_c/Program Files/Steam/steamapps/common/Skyrim/"
POL_System_TmpDelete
POL_Shortcut
"Enderal Launcher.exe"
"$TITLE"
POL_SetupWindow_message
"$(eval_gettext '$TITLE has been successfully installed.')"
"$(eval_gettext '$TITLE installation finished')"
POL_SetupWindow_Close
exit