#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Rise Of Agon"
PUBLISHER=
"Big Picture Games Ltd."
PREFIX=
"RiseOfAgon"
WORKING_WINE_VERSION=
"5.0"
POL_SetupWindow_Init
POL_RequiredVersion
"4.3.4"
|| POL_Debug_Fatal
"$APPLICATION_TITLE $POL_RequiredVersion is required to install $TITLE"
POL_Debug_Init
POL_SetupWindow_free_presentation
"Welcome to the PlayOnLinux Installation Wizard."
" \n $TITLE created by $PUBLISHER \n\n $GAME_URL \n\n\n If you've previously installed $TITLE with PlayOnLinux, then its recommended to select \n 'ERASE' if you're asked in the next window."
POL_System_SetArch
"x86"
POL_Wine_SelectPrefix
"$PREFIX"
POL_Wine_PrefixCreate
"$WORKING_WINE_VERSION"
POL_Call
POL_Install_corefonts
POL_Call
POL_Install_dinput8
POL_Call
POL_Install_d3dx9
POL_System_TmpCreate
"$PREFIX"
cd
"$POL_System_TmpDir"
POL_SetupWindow_message
" \n When the DirectX installer comes up, click 'CANCEL'. \n\n PoL will install the necessary files. "
"$TITLE"
POL_Wine_WaitBefore
"$TITLE"
POL_Wine
"$POL_System_TmpDir/Darkfall_RoA_Installer.exe"
POL_Wine
reg add
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections"
/f
/v
"DefaultConnectionSettings"
/t
"REG_BINARY"
/d
"4600000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
POL_Shortcut
"Darkfall_RoA.exe"
"$TITLE"
POL_System_TmpDelete
POL_SetupWindow_message
"\n Sometimes the in-game browser (journal, help, clan) crashes the game. If it happens, be sure to kill 'sfbrowser.exe' and 'darkfall.exe' before clicking PLAY again."
"Installation complete."
POL_SetupWindow_Close
exit
0