You are here    Supported software    Watchtower Library 2014 nl sv ru pl es de fr

Watchtower Library 2014

Informations

Creator Message
vlad88 Anonymous

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 16577
Wine: 1.7.35

Feedbacks

Description

Reference and research tool for Watchtower Society publications from 1970 up to and including 2014.

Source code

#!/bin/bash
# Date : (2015-03-31 22-00)
# Last revision : (2015-04-02 07-37)
# Distribution used to test : Linux Mint 17
# Author: Vladislav Khomenko
# Wine version used: 1.7.35
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
    
# Variable
TITLE="Watchtower Library 2014"
PUBLISHER="Watchtower Bible and Tract Society of PA"
PREFIX="Watchtower"
URL="http://www.jw.org"
AUTHOR="Vladislav Khomenko"
DONE="FALSE"
WINEVERISON="1.7.35"
    
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
    
# Initialization
POL_SetupWindow_Init
POL_SetupWindow_SetID 1959
POL_Debug_Init
    
# Presentation
POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX"
    
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERISON"
    
# Select Installation Method
POL_SetupWindow_InstallMethod "CD,LOCAL"
if [ "$INSTALL_METHOD" = "CD" ]
then
   POL_SetupWindow_cdrom
   POL_SetupWindow_check_cdrom "rs_data/PUBS"
   POL_Wine "$CDROM/Setup.exe"
elif [ "$INSTALL_METHOD" = "LOCAL" ]
then
   while [ "$DONE" = "FALSE" ]
   do
      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE"
      # Verify a the Setup.exe was selected and not another .exe
      if [ ${APP_ANSWER:(-9)} = "Setup.exe" ]
      then
         DONE="TRUE"
      else
         POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')"
      fi
   done
   POL_Wine "$APP_ANSWER"
fi
    
# Wait for Installation to Exit
POL_Wine_WaitExit
    
POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress"
    
# Create Shortcuts
POL_Shortcut "wtlibrary.exe" "$TITLE"
    
# Remove .lnk created on the desktop by wine installation application
test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
cd "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
rm ./Watchtower*.lnk
    
# Close and Exit
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
.sherif_sans Monday 8 January 2018 at 18:33
.sherif_sans Anonymous

Message

installed WT2015 using WT2014 script. Worked well. Update worked. Just needed to select text font in properties.

Linux Mint 18.1

Replies

vlad88 Thursday 2 April 2015 at 6:41
vlad88 Anonymous

Information

This update has been approved by the team.

Message

Fixed a bug when choosing a method of installation from a local file

Differences

@@ -1,12 +1,12 @@
 #!/bin/bash
 # Date : (2015-03-31 22-00)
-# Last revision : (2015-04-01 19-13)
+# Last revision : (2015-04-02 07-37)
 # Distribution used to test : Linux Mint 17
 # Author: Vladislav Khomenko
 # Wine version used: 1.7.35
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-   
+    
 # Variable
 TITLE="Watchtower Library 2014"
 PUBLISHER="Watchtower Bible and Tract Society of PA"
@@ -15,28 +15,28 @@
 AUTHOR="Vladislav Khomenko"
 DONE="FALSE"
 WINEVERISON="1.7.35"
-   
+    
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
-   
+    
 # Initialization
 POL_SetupWindow_Init
 POL_SetupWindow_SetID 1959
 POL_Debug_Init
-   
+    
 # Presentation
 POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX"
-   
+    
 # Create Prefix
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WINEVERISON"
-   
+    
 # Select Installation Method
 POL_SetupWindow_InstallMethod "CD,LOCAL"
 if [ "$INSTALL_METHOD" = "CD" ]
 then
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "rs_data/PUBS"
-   POL_Wine start /unix "$CDROM/Setup.exe"
+   POL_Wine "$CDROM/Setup.exe"
 elif [ "$INSTALL_METHOD" = "LOCAL" ]
 then
    while [ "$DONE" = "FALSE" ]
@@ -50,21 +50,22 @@
          POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')"
       fi
    done
+   POL_Wine "$APP_ANSWER"
 fi
-   
+    
 # Wait for Installation to Exit
 POL_Wine_WaitExit
-   
+    
 POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress"
-   
+    
 # Create Shortcuts
 POL_Shortcut "wtlibrary.exe" "$TITLE"
-   
+    
 # Remove .lnk created on the desktop by wine installation application
 test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
 cd "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
 rm ./Watchtower*.lnk
-   
+    
 # Close and Exit
 POL_SetupWindow_Close
 exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2015-03-31 22-00)
# Last revision : (2015-04-02 07-37)
# Distribution used to test : Linux Mint 17
# Author: Vladislav Khomenko
# Wine version used: 1.7.35
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
    
# Variable
TITLE="Watchtower Library 2014"
PUBLISHER="Watchtower Bible and Tract Society of PA"
PREFIX="Watchtower"
URL="http://www.jw.org"
AUTHOR="Vladislav Khomenko"
DONE="FALSE"
WINEVERISON="1.7.35"
    
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
    
# Initialization
POL_SetupWindow_Init
POL_SetupWindow_SetID 1959
POL_Debug_Init
    
# Presentation
POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX"
    
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERISON"
    
# Select Installation Method
POL_SetupWindow_InstallMethod "CD,LOCAL"
if [ "$INSTALL_METHOD" = "CD" ]
then
   POL_SetupWindow_cdrom
   POL_SetupWindow_check_cdrom "rs_data/PUBS"
   POL_Wine "$CDROM/Setup.exe"
elif [ "$INSTALL_METHOD" = "LOCAL" ]
then
   while [ "$DONE" = "FALSE" ]
   do
      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE"
      # Verify a the Setup.exe was selected and not another .exe
      if [ ${APP_ANSWER:(-9)} = "Setup.exe" ]
      then
         DONE="TRUE"
      else
         POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')"
      fi
   done
   POL_Wine "$APP_ANSWER"
fi
    
# Wait for Installation to Exit
POL_Wine_WaitExit
    
POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress"
    
# Create Shortcuts
POL_Shortcut "wtlibrary.exe" "$TITLE"
    
# Remove .lnk created on the desktop by wine installation application
test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
cd "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
rm ./Watchtower*.lnk
    
# Close and Exit
POL_SetupWindow_Close
exit 0

Replies

vlad88 Wednesday 1 April 2015 at 18:17
vlad88 Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

I have created a header at the beginning of the script

Differences

@@ -0,0 +1,70 @@
+#!/bin/bash
+# Date : (2015-03-31 22-00)
+# Last revision : (2015-04-01 19-13)
+# Distribution used to test : Linux Mint 17
+# Author: Vladislav Khomenko
+# Wine version used: 1.7.35
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+   
+# Variable
+TITLE="Watchtower Library 2014"
+PUBLISHER="Watchtower Bible and Tract Society of PA"
+PREFIX="Watchtower"
+URL="http://www.jw.org"
+AUTHOR="Vladislav Khomenko"
+DONE="FALSE"
+WINEVERISON="1.7.35"
+   
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
+   
+# Initialization
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 1959
+POL_Debug_Init
+   
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX"
+   
+# Create Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERISON"
+   
+# Select Installation Method
+POL_SetupWindow_InstallMethod "CD,LOCAL"
+if [ "$INSTALL_METHOD" = "CD" ]
+then
+   POL_SetupWindow_cdrom
+   POL_SetupWindow_check_cdrom "rs_data/PUBS"
+   POL_Wine start /unix "$CDROM/Setup.exe"
+elif [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+   while [ "$DONE" = "FALSE" ]
+   do
+      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE"
+      # Verify a the Setup.exe was selected and not another .exe
+      if [ ${APP_ANSWER:(-9)} = "Setup.exe" ]
+      then
+         DONE="TRUE"
+      else
+         POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')"
+      fi
+   done
+fi
+   
+# Wait for Installation to Exit
+POL_Wine_WaitExit
+   
+POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress"
+   
+# Create Shortcuts
+POL_Shortcut "wtlibrary.exe" "$TITLE"
+   
+# Remove .lnk created on the desktop by wine installation application
+test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
+cd "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
+rm ./Watchtower*.lnk
+   
+# Close and Exit
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2015-03-31 22-00)
# Last revision : (2015-04-01 19-13)
# Distribution used to test : Linux Mint 17
# Author: Vladislav Khomenko
# Wine version used: 1.7.35
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
# Variable
TITLE="Watchtower Library 2014"
PUBLISHER="Watchtower Bible and Tract Society of PA"
PREFIX="Watchtower"
URL="http://www.jw.org"
AUTHOR="Vladislav Khomenko"
DONE="FALSE"
WINEVERISON="1.7.35"
   
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
   
# Initialization
POL_SetupWindow_Init
POL_SetupWindow_SetID 1959
POL_Debug_Init
   
# Presentation
POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX"
   
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERISON"
   
# Select Installation Method
POL_SetupWindow_InstallMethod "CD,LOCAL"
if [ "$INSTALL_METHOD" = "CD" ]
then
   POL_SetupWindow_cdrom
   POL_SetupWindow_check_cdrom "rs_data/PUBS"
   POL_Wine start /unix "$CDROM/Setup.exe"
elif [ "$INSTALL_METHOD" = "LOCAL" ]
then
   while [ "$DONE" = "FALSE" ]
   do
      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE"
      # Verify a the Setup.exe was selected and not another .exe
      if [ ${APP_ANSWER:(-9)} = "Setup.exe" ]
      then
         DONE="TRUE"
      else
         POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')"
      fi
   done
fi
   
# Wait for Installation to Exit
POL_Wine_WaitExit
   
POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress"
   
# Create Shortcuts
POL_Shortcut "wtlibrary.exe" "$TITLE"
   
# Remove .lnk created on the desktop by wine installation application
test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
cd "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
rm ./Watchtower*.lnk
   
# Close and Exit
POL_SetupWindow_Close
exit 0

Replies

vlad88 Wednesday 1 April 2015 at 14:26
vlad88 Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -0,0 +1,64 @@
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+  
+# Variable
+TITLE="Watchtower Library 2014"
+PUBLISHER="Watchtower Bible and Tract Society of PA"
+PREFIX="Watchtower"
+URL="http://www.jw.org"
+AUTHOR="Vladislav Khomenko"
+DONE="FALSE"
+WINEVERISON="1.7.35"
+  
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
+  
+# Initialization
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 1959
+POL_Debug_Init
+  
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX"
+  
+# Create Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERISON"
+  
+# Select Installation Method
+POL_SetupWindow_InstallMethod "CD,LOCAL"
+if [ "$INSTALL_METHOD" = "CD" ]
+then
+   POL_SetupWindow_cdrom
+   POL_SetupWindow_check_cdrom "rs_data/PUBS"
+   POL_Wine start /unix "$CDROM/Setup.exe"
+elif [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+   while [ "$DONE" = "FALSE" ]
+   do
+      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE"
+      # Verify a the Setup.exe was selected and not another .exe
+      if [ ${APP_ANSWER:(-9)} = "Setup.exe" ]
+      then
+         DONE="TRUE"
+      else
+         POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')"
+      fi
+   done
+fi
+  
+# Wait for Installation to Exit
+POL_Wine_WaitExit
+  
+POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress"
+  
+# Create Shortcuts
+POL_Shortcut "wtlibrary.exe" "$TITLE"
+  
+# Remove .lnk created on the desktop by wine installation application
+test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
+cd "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
+rm ./Watchtower*.lnk
+  
+# Close and Exit
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
# Variable
TITLE="Watchtower Library 2014"
PUBLISHER="Watchtower Bible and Tract Society of PA"
PREFIX="Watchtower"
URL="http://www.jw.org"
AUTHOR="Vladislav Khomenko"
DONE="FALSE"
WINEVERISON="1.7.35"
  
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
  
# Initialization
POL_SetupWindow_Init
POL_SetupWindow_SetID 1959
POL_Debug_Init
  
# Presentation
POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX"
  
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERISON"
  
# Select Installation Method
POL_SetupWindow_InstallMethod "CD,LOCAL"
if [ "$INSTALL_METHOD" = "CD" ]
then
   POL_SetupWindow_cdrom
   POL_SetupWindow_check_cdrom "rs_data/PUBS"
   POL_Wine start /unix "$CDROM/Setup.exe"
elif [ "$INSTALL_METHOD" = "LOCAL" ]
then
   while [ "$DONE" = "FALSE" ]
   do
      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE"
      # Verify a the Setup.exe was selected and not another .exe
      if [ ${APP_ANSWER:(-9)} = "Setup.exe" ]
      then
         DONE="TRUE"
      else
         POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')"
      fi
   done
fi
  
# Wait for Installation to Exit
POL_Wine_WaitExit
  
POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress"
  
# Create Shortcuts
POL_Shortcut "wtlibrary.exe" "$TITLE"
  
# Remove .lnk created on the desktop by wine installation application
test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
cd "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
rm ./Watchtower*.lnk
  
# Close and Exit
POL_SetupWindow_Close
exit 0

Replies

Wednesday 1 April 2015 at 18:00 -
Oh. One more thing; If you look at other scripts, there is a header that goes at the top of all of them. Please create a header like that and place it at the top of the script. That is the only thing that is catching my eye.
vlad88 Tuesday 31 March 2015 at 23:16
vlad88 Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -0,0 +1,64 @@
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+# Variable
+TITLE="Watchtower Library"
+PUBLISHER="Watchtower Bible and Tract Society of PA"
+PREFIX="Watchtower"
+URL="http://www.jw.org"
+AUTHOR="Vladislav Khomenko"
+DONE="FALSE"
+ 
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
+ 
+# Initialization
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 1959
+POL_Debug_Init
+ 
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX"
+ 
+# Create Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "1.7.35"
+ 
+# Select Installation Method
+POL_SetupWindow_InstallMethod "CD,LOCAL"
+if [ "$INSTALL_METHOD" = "CD" ]
+then
+   POL_SetupWindow_cdrom
+   POL_SetupWindow_check_cdrom "rs_data/PUBS"
+   POL_Wine start /unix "$CDROM/Setup.exe"
+elif [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+   while [ "$DONE" = "FALSE" ]
+   do
+      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE"
+      # Verify a the Setup.exe was selected and not another .exe
+      if [ ${APP_ANSWER:(-9)} = "Setup.exe" ]
+      then
+         DONE="TRUE"
+      else
+         POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')"
+      fi
+   done
+   POL_Wine start /unix "$APP_ANSWER"
+fi
+ 
+# Wait for Installation to Exit
+POL_Wine_WaitExit
+ 
+POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress"
+ 
+# Create Shortcuts
+POL_Shortcut "wtlibrary.exe" "$TITLE"
+ 
+# Remove .lnk created on the desktop by wine installation application
+test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
+cd "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
+rm ./Watchtower*.lnk
+ 
+# Close and Exit
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
# Variable
TITLE="Watchtower Library"
PUBLISHER="Watchtower Bible and Tract Society of PA"
PREFIX="Watchtower"
URL="http://www.jw.org"
AUTHOR="Vladislav Khomenko"
DONE="FALSE"
 
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 
# Initialization
POL_SetupWindow_Init
POL_SetupWindow_SetID 1959
POL_Debug_Init
 
# Presentation
POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX"
 
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "1.7.35"
 
# Select Installation Method
POL_SetupWindow_InstallMethod "CD,LOCAL"
if [ "$INSTALL_METHOD" = "CD" ]
then
   POL_SetupWindow_cdrom
   POL_SetupWindow_check_cdrom "rs_data/PUBS"
   POL_Wine start /unix "$CDROM/Setup.exe"
elif [ "$INSTALL_METHOD" = "LOCAL" ]
then
   while [ "$DONE" = "FALSE" ]
   do
      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE"
      # Verify a the Setup.exe was selected and not another .exe
      if [ ${APP_ANSWER:(-9)} = "Setup.exe" ]
      then
         DONE="TRUE"
      else
         POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')"
      fi
   done
   POL_Wine start /unix "$APP_ANSWER"
fi
 
# Wait for Installation to Exit
POL_Wine_WaitExit
 
POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress"
 
# Create Shortcuts
POL_Shortcut "wtlibrary.exe" "$TITLE"
 
# Remove .lnk created on the desktop by wine installation application
test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
cd "${XDG_DESKTOP_DIR:-$HOME/Desktop}"
rm ./Watchtower*.lnk
 
# Close and Exit
POL_SetupWindow_Close
exit

Replies

Wednesday 1 April 2015 at 3:46 -
I would declare a WINEVERISON variable near the top of the script, and use the variable throughout, just as standard practice (if it needs to be changed in the future, one would just need to change the variable, instead of hunting through the script).

Also, I don't think you need to add "start /unix" for POL_Wine. Just to be safe, you probably want to add a "0" to the exit code at the end, as, if it succeeds, exit 0 would indicate that. At least that is what I am seeing. I may be missing something, though. lol.
Anonymous
Wednesday 1 April 2015 at 14:35 -
I changed the installer based on your comments
vlad88 Tuesday 31 March 2015 at 22:07
vlad88 Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -0,0 +1,62 @@
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+# Variable
+TITLE="Watchtower Library"
+PUBLISHER="Watchtower Bible and Tract Society of PA"
+PREFIX="Watchtower"
+URL="http://www.jw.org"
+AUTHOR="Vladislav Khomenko"
+DONE="FALSE"
+ 
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
+ 
+# Initialization
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 1959
+POL_Debug_Init
+ 
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX"
+ 
+# Create Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "1.7.35"
+ 
+# Select Installation Method
+POL_SetupWindow_InstallMethod "CD,LOCAL"
+if [ "$INSTALL_METHOD" = "CD" ]
+then
+   POL_SetupWindow_cdrom
+   POL_SetupWindow_check_cdrom "rs_data/PUBS"
+   POL_Wine start /unix "$CDROM/Setup.exe"
+elif [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+   while [ "$DONE" = "FALSE" ]
+   do
+      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE"
+      # Verify a the Setup.exe was selected and not another .exe
+      if [ ${APP_ANSWER:(-9)} = "Setup.exe" ]
+      then
+         DONE="TRUE"
+      else
+         POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')"
+      fi
+   done
+   POL_Wine start /unix "$APP_ANSWER"
+fi
+ 
+# Wait for Installation to Exit
+POL_Wine_WaitExit
+ 
+POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress"
+ 
+# Create Shortcuts
+POL_Shortcut "wtlibrary.exe" "$TITLE"
+ 
+# Remove .lnk created on the desktop by wine installation application
+rm ~/Desktop/Watchtower*.lnk
+ 
+# Close and Exit
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
# Variable
TITLE="Watchtower Library"
PUBLISHER="Watchtower Bible and Tract Society of PA"
PREFIX="Watchtower"
URL="http://www.jw.org"
AUTHOR="Vladislav Khomenko"
DONE="FALSE"
 
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 
# Initialization
POL_SetupWindow_Init
POL_SetupWindow_SetID 1959
POL_Debug_Init
 
# Presentation
POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$URL" "$AUTHOR" "$PREFIX"
 
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "1.7.35"
 
# Select Installation Method
POL_SetupWindow_InstallMethod "CD,LOCAL"
if [ "$INSTALL_METHOD" = "CD" ]
then
   POL_SetupWindow_cdrom
   POL_SetupWindow_check_cdrom "rs_data/PUBS"
   POL_Wine start /unix "$CDROM/Setup.exe"
elif [ "$INSTALL_METHOD" = "LOCAL" ]
then
   while [ "$DONE" = "FALSE" ]
   do
      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE"
      # Verify a the Setup.exe was selected and not another .exe
      if [ ${APP_ANSWER:(-9)} = "Setup.exe" ]
      then
         DONE="TRUE"
      else
         POL_SetupWindow_message "$(eval_gettext 'Setup.exe was not selected, Please select the setup file to run {Setup.exe}')" "$(eval_gettext 'File Selection Error')"
      fi
   done
   POL_Wine start /unix "$APP_ANSWER"
fi
 
# Wait for Installation to Exit
POL_Wine_WaitExit
 
POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed')" "Installation in progress"
 
# Create Shortcuts
POL_Shortcut "wtlibrary.exe" "$TITLE"
 
# Remove .lnk created on the desktop by wine installation application
rm ~/Desktop/Watchtower*.lnk
 
# Close and Exit
POL_SetupWindow_Close
exit

Replies