#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
source
"$PLAYONLINUX/lib/sources"
cd
"$REPERTOIRE/tmp/eq2"
wget
"$SITE/setups/eq2/*.jpg"
cp
"$REPERTOIRE/tmp/eq2/top.jpg"
"$HOME/.local/share/icons/eq2.jpg"
POL_SetupWindow_Init
"$REPERTOIRE/tmp/eq2/top.jpg"
"$REPERTOIRE/tmp/eq2/left.jpg"
POL_SetupWindow_presentation
"EverQuest II"
"Sony Online Entertainment"
"http://everquest2.com/"
"Benj"
"everquest2"
select_prefix
"$REPERTOIRE/wineprefix/everquest2"
POL_SetupWindow_prefixcreate
POL_SetupWindow_install_wine
"1.1.18"
POL_SetupWindow_menu
"Which version of EverQuest II would you like to install?"
"Select a version"
"Trial~Full (Existing Players Only)~Full Disc Installation (DVD/CD)"
"~"
if
[
"$APP_ANSWER"
==
"Trial"
]
then
APPLICATION=
"$REPERTOIRE/tmp/eq2/EQ2trialinstaller.exe"
DOWNLOAD=
"TRUE"
elif
[
"$APP_ANSWER"
==
"Full (Existing Players Only)"
]
then
EXTRACT=
"TRUE"
APPLICATION=
"$REPERTOIRE/tmp/eq2/EQ2.exe"
DOWNLOAD=
"TRUE"
else
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"eq2.ico"
APPLICATION=
"$CDROM/setup.exe"
fi
if
[
"$DOWNLOAD"
==
"TRUE"
]
then
cd
"$REPERTOIRE/tmp/eq2"
POL_SetupWindow_download
"Downloading EverQuest II..."
"Downloading"
"$URL"
fi
if
[
"$EXTRACT"
==
"TRUE"
]
then
POL_SetupWindow_wait_next_signal
"Extracting EverQuest II..."
"Extracting"
cd
"$REPERTOIRE/tmp/eq2"
unzip
"eq2-us.zip"
POL_SetupWindow_detect_exit
fi
POL_SetupWindow_message_image
"Do not have the installer set up the shortcuts!\\nThis will cause EverQuest II to break when launched.\\nProper shortcuts will be set up later.\\n\\nPlease install EverQuest II into C:\\Program Files\\Sony\\EverQuest II.\\nOther directories will remove the shortcuts to EverQuest II.\\n\\nDo not install DirectX through the installer.\\nInstead, use the premade PlayOnLinux script after installation."
"Warning!"
"$PLAYONLINUX/themes/tango/warning.png"
POL_SetupWindow_wait_next_signal
"Installing EverQuest II..."
"Installation"
wine
"$APPLICATION"
POL_SetupWindow_detect_exit
POL_SetupWindow_message
"Press Forward when installation is complete."
"Installation Complete"
POL_SetupWindow_make_shortcut
"everquest2"
"Program Files/Sony/EverQuest II"
"eq2.exe"
"$HOME/.local/share/icons/eq2.jpg"
"EverQuest II"
POL_SetupWindow_wait_next_signal
"Configuring Wine..."
"Configuration"
Set_Managed
"On"
Set_Iexplore
Set_GLSL
"On"
Set_WineVersion_Assign
"1.1.18"
"EverQuest II"
cd
"$REPERTOIRE/tmp/eq2"
cat
<< _EOF_ > eq2.reg
[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]
\\
"DirectDrawRenderer\\"
=\\
"opengl\\"
\\
"OffScreenRenderingMode\\"
=\\
"fbo\\"
\\
"PixelShaderMode\\"
=\\
"enabled\\"
\\
"RenderTargetLockMode\\"
=\\
"texdraw\\"
_EOF_
regedit
"$REPERTOIRE/tmp/eq2/eq2.reg"
POL_SetupWindow_detect_exit
POL_SetupWindow_Close
exit