#!/usr/bin/env playonlinux-bash
export
WINEDLLOVERRIDES=
"mscoree,mshtml="
export
TITLE=
"Logos Bible Software"
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation
"$TITLE"
"Faithlife"
"http://www.logos.com"
"Revd John Goodman"
"LogosBibleSoftware"
POL_SetupWindow_textbox
"A free / paid account is required to use this software, visit: http://www.logos.com"
"$TITLE"
POL_System_TmpCreate
"LogosBibleSoftware"
POL_SetupWindow_InstallMethod
"LOCAL,DOWNLOAD"
if
[
"$INSTALL_METHOD"
=
"LOCAL"
]
then
POL_SetupWindow_browse
"$(eval_gettext 'Please select the setup file to run.')"
"$TITLE"
INSTALLER=
"$APP_ANSWER"
elif
[
"$INSTALL_METHOD"
=
"DOWNLOAD"
]
then
cd
"$POL_System_TmpDir"
INSTALLER=
"$POL_System_TmpDir/Logos-x64.msi"
fi
POL_Wine_SelectPrefix
"LogosBible"
POL_Wine_PrefixCreate
"6.17"
POL_SetupWindow_wait
"$(eval_gettext 'Installation in progress.')"
"$TITLE"
POL_SetupWindow_message
"$(eval_gettext 'Installing Microsoft Corefonts')"
"Corefonts"
POL_Call
POL_Install_corefonts
POL_SetupWindow_message
"$(eval_gettext 'Installing .NET Framework')"
"Microsoft"
POL_Call
POL_Install_dotnet480
POL_SetupWindow_message
"$(eval_gettext 'Enabling Font Smoothing')"
"Fontsmoothing"
POL_Winetricks FontSmoothRGB
POL_SetupWindow_message
"$(eval_gettext 'Setting Graphics Option')"
"Renderer GDI"
POL_Call
POL_Wine_Direct3D
"DirectDrawRenderer"
"gdi"
POL_SetupWindow_message
"$(eval_gettext 'Setting Windows Version')"
"win7"
Set_OS
"win7"
POL_SetupWindow_message
"$(eval_gettext 'Configuring Logos Indexer only to vista')"
"$TITLE"
POL_Wine
"reg add "
HKCU\\Software\\Wine\\AppDefaults\\LogosIndexer.exe
" /v Version /t REG_SZ /d vista /f"
POL_SetupWindow_message
"$(eval_gettext 'Running Logos Installer msi')"
"$TITLE"
POL_Wine
"$INSTALLER"
POL_System_TmpDelete
POL_SetupWindow_message
"$(eval_gettext 'Creating Shortcut')"
"$TITLE"
POL_Shortcut
"Logos.exe"
"$TITLE"
POL_SetupWindow_message
"$(eval_gettext 'Setup Complete')"
"$TITLE"
POL_SetupWindow_Close
exit