The forum

[Script] [i]Setup Logos Bible Software[/i]

Help much appreciated

Author Replies
m0rvj Sunday 12 September 2021 at 15:32
m0rvjAnonymous

I've been the Winehq appdb maintainer for this program for a while. I've been trying to create a play on linux script for this. I must apologise because I didn't find all the relevant documentation before I started. I therefore submitted it too soon. (Someone helpful might delete it until it is ready? https://www.playonlinux.com/en/app-4415-Logos_Bible_Software.html) It's been a steep learning curve but I think I'm close. I do need a bit of help because some of the lines don't work as expected. Particularly installing .NET

Grateful in advance for any help with this.

John

 

#!/usr/bin/env playonlinux-bash
# Date : (2021-09-12 09:30)
 
# Wine version used : 6.17
# Distribution used to test : Kubuntu 21.04 amd64
# Author : Revd John Goodman
# Licence : GPLv3
# PlayOnLinux: 4.3.4
 
# CHANGELOG
# [Revd John Goodman] (2021-09-12 09:30)
#     First script - Sequence.
#*    Install wine 6.17 or newer
#*    winetricks corefonts
#*    winetricks settings fontsmooth=rgb
#*    winetricks dotnet48
#*    winetricks settings renderer=gdi (you might need to set the reg key manually)
#*    Install the Logos.msi download but don't run it.
#*    wine64 reg add "HKCU\\Software\\Wine\\AppDefaults\\LogosIndexer.exe" /v Version /t REG_SZ /d vista /f
#*    Run Logos installer
#*    Create Shortcut
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"
    POL_Download "https://downloads.logoscdn.com/LBS9/Installer/9.7.0.0025/Logos-x64.msi"
    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"

# Install dependencies
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

###Set required wine options
#Font smoothing
POL_SetupWindow_message "$(eval_gettext 'Enabling Font Smoothing')" "Fontsmoothing"
POL_Winetricks FontSmoothRGB

#Fix graphics draw glitches
POL_SetupWindow_message "$(eval_gettext 'Setting Graphics Option')" "Renderer GDI"
POL_Call POL_Wine_Direct3D "DirectDrawRenderer" "gdi"
#Set required win version (win10 might also work)
POL_SetupWindow_message "$(eval_gettext 'Setting Windows Version')" "win7"
Set_OS "win7"

#The indexer exe needs to be set to vista or it crashes (strange bug, took ages to figure)
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"

#run installer
POL_SetupWindow_message "$(eval_gettext 'Running Logos Installer msi')" "$TITLE"
POL_Wine "$INSTALLER"

#cleanup
POL_System_TmpDelete

#create shortcut
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

 

 

m0rvj Sunday 12 September 2021 at 15:55
m0rvjAnonymous

Couple of changes to match playonlinux code style.

 

#!/usr/bin/env playonlinux-bash
# Date : (2021-09-12 09:30)
 
# Wine version used : 6.17
# Distribution used to test : Kubuntu 21.04 amd64
# Author : Revd John Goodman
# Licence : GPLv3
# PlayOnLinux: 4.3.4
 
# CHANGELOG
# [Revd John Goodman] (2021-09-12 09:30)
#     First script.
#    Install wine 6.17 or newer
#    winetricks corefonts
#    winetricks settings fontsmooth=rgb
#    winetricks dotnet48
#    winetricks settings renderer=gdi (you might need to set the reg key manually)
#    Install the Logos.msi download but don't run it.
#    wine64 reg add "HKCU\\Software\\Wine\\AppDefaults\\LogosIndexer.exe" /v Version /t REG_SZ /d vista /f
#    Run Logos installer
#    Create Shortcut

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

POL_Wine_OverrideDLL "native" "mscoree"
export TITLE="Logos Bible Software"

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"
    POL_Download "https://downloads.logoscdn.com/LBS9/Installer/9.7.0.0025/Logos-x64.msi"
    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"

# Install dependencies
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

###Set required wine options
#Font smoothing
POL_SetupWindow_message "$(eval_gettext 'Enabling Font Smoothing')" "Fontsmoothing"
POL_Winetricks FontSmoothRGB

#Fix graphics draw glitches
POL_SetupWindow_message "$(eval_gettext 'Setting Graphics Option')" "Renderer GDI"
POL_Call POL_Wine_Direct3D "DirectDrawRenderer" "gdi"
#Set required win version (win10 might also work)
POL_SetupWindow_message "$(eval_gettext 'Setting Windows Version')" "win7"
Set_OS "win7"

#The indexer exe needs to be set to vista or it crashes (strange bug, took ages to figure)
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"

#run installer
POL_SetupWindow_message "$(eval_gettext 'Running Logos Installer msi')" "$TITLE"
POL_Wine "$INSTALLER"

#cleanup
POL_System_TmpDelete

#create shortcut
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

 

m0rvj Sunday 12 September 2021 at 15:58
m0rvjAnonymous

Also is there a way to add some specific configuration options to be altered after install.

E.g.

Enable Logging - sets reg key

Disable Logging - sets reg key

Clear Database Indexes - runs rmdir specific dir

Run Database Indexer - runs indexer.exe without running the main app.

m0rvj Sunday 12 September 2021 at 16:01
m0rvjAnonymous

Icon linked

Edited by m0rvj

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com