Memories On TV

Informations

Creator Message
Ueliton

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 9451
Wine: 1.7.28

Feedbacks

Description

MemoriesOnTV is our award-winning photo/video slideshow software. This feature-packed program comes with beautiful and elegant pre-built effects that you can use. In addition, the powerful and advanced features and tools allow you to craft your slideshows anyway you want.

Website.

Screenshots

MiniatureMiniatureMiniatureMiniature

Source code

#!/usr/bin/env playonlinux-bash
# CHANGELOG
# [Ueliton] (2015-06-03) UTC-3 14:28
# Correction, script not working
# Changed PREFIX and TITLE(Thank you [petch])
# Added install method Local
# Changed URL link download of version 4.1.2
# Added versions 4.1.0
# Added translations
# **PlayOnLinux 4.2.8**
# Wine version used: 1.7.28
# Distribution used to test: openSUSE 13.2 x86_64
# MemoriesOnTV versions used to test: 4.1.0 and 4.1.2
# Author: Ueliton
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
# Variables -------------
AUTHOR="Ueliton"
BINU_SERVER="http://media.binu.com/12630290/stream"
PREFIX="MemoriesOnTV4"
TEXT_INSTRUCTIONS="$(eval_gettext '\nDuring installation please deselect Creation of Icon Launcher/Desktop\n\nDO NOT let RESTART.')"
TITLE="Memories On TV"
WORKING_WINE_VERSION="1.7.28"
# --------------------------
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
# -------------------------- 
POL_SetupWindow_Init
POL_SetupWindow_SetID 2531
# Enable debugging
POL_Debug_Init
# Presentation ---------
POL_SetupWindow_presentation "$TITLE" "Codejam Pte Ltd" "www.codejam.com" "$AUTHOR" "$PREFIX"
# INFO -------------------
POL_SetupWindow_message "$(eval_gettext 'INFO: This install MemoriesOnTV version 4.\n\nIf you have registration code from earlier versions to 3...\n\nYou can find the installer on PlayOnLinux / Mac for PictureToTV, MemoriesOnTV2 or MemoriesOnTV3.')" "$TITLE" 
# Managing prefix and Wine version -----
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
# Creating Temp directory ----------------
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
# --------------------------
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
# Installation Method DOWNLOAD -------------
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
  then
      POL_SetupWindow_menu "$(eval_gettext 'What version do you want to install?')" "Version Selection" \
      "4.1.2|4.1.0" "|"
      case "$APP_ANSWER" in
          "4.1.2")
              DOWNLOAD_LINK="$BINU_SERVER/98566924702-1e5186bca8f75fca/motv412.exe"
              MD5SUM="277a4be8e2c6746332f04791e853f03f";;
          "4.1.0")
              DOWNLOAD_LINK="$BINU_SERVER/98566923396-96ea64f3a1aa2fd0/motv410.exe"
              MD5SUM="d1ea7b849cb22b7fc1edc7b5c7b6f47c";;
          *)
      esac
  POL_Download "$DOWNLOAD_LINK" "$MD5SUM"
  EXE_FILE="${DOWNLOAD_LINK##*/}"
  POL_SetupWindow_message "$TEXT_INSTRUCTIONS" "$TITLE"
  POL_Wine_WaitBefore "$TITLE"
  POL_Wine ${EXE_FILE}
fi
# Installation Method LOCAL --------------------
if [ "$INSTALL_METHOD" = "LOCAL" ]
  then
      cd "$HOME"
      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
      POL_SetupWindow_message "$TEXT_INSTRUCTIONS" "$TITLE"
      POL_Wine_WaitBefore "$TITLE"
      POL_Wine "$APP_ANSWER"
fi
# Selection and configuration of DLL language ----------------
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/MemoriesOnTV4"
mv MotvLOC.dll MotvLOC_old.dll

POL_SetupWindow_menu "$(eval_gettext 'Please select a language:')" "$TITLE" \
"Default(English)|Dutch|French|German|Hungarian|Italian|Portuguese|Russian|Spanish|Turkish" "|"

case "$APP_ANSWER" in
    "Default(English)")
        mv MotvLOC_old.dll MotvLOC.dll;;
    
    "Dutch")
        POL_Download "$BINU_SERVER/98566921347-5bd53571b9788463/MotvLOC.dll" "36fecb8db3888ef75ddfdca19394b3f8";;
 
    "French")
        POL_Download "$BINU_SERVER/98566922123-5e1b18c4c6a6d316/MotvLOC.dll" "53c8f62a2d3d2385dc5b62ad5636a59e";;
 
    "German")
        POL_Download "$BINU_SERVER/98566922572-3bd318565e4adbe5/MotvLOC.dll" "ad4f646965049ffeeef9892768c8f41b";;
 
    "Hungarian")
        POL_Download "$BINU_SERVER/98566921834-3341f6f048384ec7/MotvLOC.dll" "96acbeea725f6539263e9d716a379985";;
 
    "Italian")
        POL_Download "$BINU_SERVER/98566921653-ec6826e925952de7/MotvLOC.dll" "e65ac42b6b06866dd558d5916e918b9d";;
 
    "Portuguese")
        POL_Download "$BINU_SERVER/98566921226-69421f032498c970/MotvLOC.dll" "ca4791dad5f5b19148f52c2e4fd5c71a";;
 
    "Russian")
        POL_Download "$BINU_SERVER/98566921112-a45a1d12ee0fb7f1/MotvLOC.dll" "2829de4f938f8b60408b4fd2fdce3759";;
 
    "Spanish")
        POL_Download "$BINU_SERVER/98566922293-50905d7b2216bfec/MotvLOC.dll" "c48fb0066e9c45293487cf955196befd";;
 
    "Turkish")
        POL_Download "$BINU_SERVER/98566920860-a9be4c2a4041cadb/MotvLOC.dll" "b3047242bf07affee0d4ce84bfc00b2b";;
    *)
esac
# Delete temp directory --------------------------
POL_System_TmpDelete
# Create a launcher
POL_Shortcut "Motv.exe" "$TITLE"
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
Ueliton Saturday 6 June 2015 at 17:09
Ueliton

Warning

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

Message

Added:

# Solution to overwrite versions already installed

rm -r "$WINEPREFIX/drive_c/$PROGRAMFILES/MemoriesOnTV4"

This command is necessary because, as here you can install two versions of MemoriesOnTV 4, I could observe a problem, to have installed the 4.1.2 version, and then try to override it with the 4.1.0 version without erasing the drive virtual, it does not work, because the installer MemoriesOnTV 4.1.0, do not overwrite the 4.1.2. This solves the problem.

Differences

@@ -38,6 +38,8 @@
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 # Creating Temp directory ----------------
 POL_System_TmpCreate "$PREFIX"
+# Solution to overwrite versions already installed
+rm -r "$WINEPREFIX/drive_c/$PROGRAMFILES/MemoriesOnTV4"
 cd "$POL_System_TmpDir"
 # --------------------------
 POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"

New source code

#!/usr/bin/env playonlinux-bash
# CHANGELOG
# [Ueliton] (2015-06-03) UTC-3 14:28
# Correction, script not working
# Changed PREFIX and TITLE(Thank you [petch])
# Added install method Local
# Changed URL link download of version 4.1.2
# Added versions 4.1.0
# Added translations
# **PlayOnLinux 4.2.8**
# Wine version used: 1.7.28
# Distribution used to test: openSUSE 13.2 x86_64
# MemoriesOnTV versions used to test: 4.1.0 and 4.1.2
# Author: Ueliton
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
# Variables -------------
AUTHOR="Ueliton"
BINU_SERVER="http://media.binu.com/12630290/stream"
PREFIX="MemoriesOnTV4"
TEXT_INSTRUCTIONS="$(eval_gettext '\nDuring installation please deselect Creation of Icon Launcher/Desktop\n\nDO NOT let RESTART.')"
TITLE="Memories On TV"
WORKING_WINE_VERSION="1.7.28"
# --------------------------
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
# -------------------------- 
POL_SetupWindow_Init
POL_SetupWindow_SetID 2531
# Enable debugging
POL_Debug_Init
# Presentation ---------
POL_SetupWindow_presentation "$TITLE" "Codejam Pte Ltd" "www.codejam.com" "$AUTHOR" "$PREFIX"
# INFO -------------------
POL_SetupWindow_message "$(eval_gettext 'INFO: This install MemoriesOnTV version 4.\n\nIf you have registration code from earlier versions to 3...\n\nYou can find the installer on PlayOnLinux / Mac for PictureToTV, MemoriesOnTV2 or MemoriesOnTV3.')" "$TITLE" 
# Managing prefix and Wine version -----
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
# Creating Temp directory ----------------
POL_System_TmpCreate "$PREFIX"
# Solution to overwrite versions already installed
rm -r "$WINEPREFIX/drive_c/$PROGRAMFILES/MemoriesOnTV4"
cd "$POL_System_TmpDir"
# --------------------------
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
# Installation Method DOWNLOAD -------------
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
  then
      POL_SetupWindow_menu "$(eval_gettext 'What version do you want to install?')" "Version Selection" \
      "4.1.2|4.1.0" "|"
      case "$APP_ANSWER" in
          "4.1.2")
              DOWNLOAD_LINK="$BINU_SERVER/98566924702-1e5186bca8f75fca/motv412.exe"
              MD5SUM="277a4be8e2c6746332f04791e853f03f";;
          "4.1.0")
              DOWNLOAD_LINK="$BINU_SERVER/98566923396-96ea64f3a1aa2fd0/motv410.exe"
              MD5SUM="d1ea7b849cb22b7fc1edc7b5c7b6f47c";;
          *)
      esac
  POL_Download "$DOWNLOAD_LINK" "$MD5SUM"
  EXE_FILE="${DOWNLOAD_LINK##*/}"
  POL_SetupWindow_message "$TEXT_INSTRUCTIONS" "$TITLE"
  POL_Wine_WaitBefore "$TITLE"
  POL_Wine ${EXE_FILE}
fi
# Installation Method LOCAL --------------------
if [ "$INSTALL_METHOD" = "LOCAL" ]
  then
      cd "$HOME"
      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
      POL_SetupWindow_message "$TEXT_INSTRUCTIONS" "$TITLE"
      POL_Wine_WaitBefore "$TITLE"
      POL_Wine "$APP_ANSWER"
fi
# Selection and configuration of DLL language ----------------
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/MemoriesOnTV4"
mv MotvLOC.dll MotvLOC_old.dll

POL_SetupWindow_menu "$(eval_gettext 'Please select a language:')" "$TITLE" \
"Default(English)|Dutch|French|German|Hungarian|Italian|Portuguese|Russian|Spanish|Turkish" "|"

case "$APP_ANSWER" in
    "Default(English)")
        mv MotvLOC_old.dll MotvLOC.dll;;
    
    "Dutch")
        POL_Download "$BINU_SERVER/98566921347-5bd53571b9788463/MotvLOC.dll" "36fecb8db3888ef75ddfdca19394b3f8";;
 
    "French")
        POL_Download "$BINU_SERVER/98566922123-5e1b18c4c6a6d316/MotvLOC.dll" "53c8f62a2d3d2385dc5b62ad5636a59e";;
 
    "German")
        POL_Download "$BINU_SERVER/98566922572-3bd318565e4adbe5/MotvLOC.dll" "ad4f646965049ffeeef9892768c8f41b";;
 
    "Hungarian")
        POL_Download "$BINU_SERVER/98566921834-3341f6f048384ec7/MotvLOC.dll" "96acbeea725f6539263e9d716a379985";;
 
    "Italian")
        POL_Download "$BINU_SERVER/98566921653-ec6826e925952de7/MotvLOC.dll" "e65ac42b6b06866dd558d5916e918b9d";;
 
    "Portuguese")
        POL_Download "$BINU_SERVER/98566921226-69421f032498c970/MotvLOC.dll" "ca4791dad5f5b19148f52c2e4fd5c71a";;
 
    "Russian")
        POL_Download "$BINU_SERVER/98566921112-a45a1d12ee0fb7f1/MotvLOC.dll" "2829de4f938f8b60408b4fd2fdce3759";;
 
    "Spanish")
        POL_Download "$BINU_SERVER/98566922293-50905d7b2216bfec/MotvLOC.dll" "c48fb0066e9c45293487cf955196befd";;
 
    "Turkish")
        POL_Download "$BINU_SERVER/98566920860-a9be4c2a4041cadb/MotvLOC.dll" "b3047242bf07affee0d4ce84bfc00b2b";;
    *)
esac
# Delete temp directory --------------------------
POL_System_TmpDelete
# Create a launcher
POL_Shortcut "Motv.exe" "$TITLE"
POL_SetupWindow_Close
exit 0

Replies

Anonymous
Saturday 6 June 2015 at 18:34
PlayOnLinux already removes any existing wine prefix before installing. So this line should not be necessary
petch Thursday 4 June 2015 at 1:21
petch

Information

This update has been approved by the team.

Message

Update POL_GetSetupImages, fix one missing localization, missing POL_Wine_WaitBefore

Differences

@@ -23,7 +23,7 @@
 TITLE="Memories On TV"
 WORKING_WINE_VERSION="1.7.28"
 # --------------------------
-POL_GetSetupImages "" "" "$TITLE"
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 # -------------------------- 
 POL_SetupWindow_Init
 POL_SetupWindow_SetID 2531
@@ -32,7 +32,7 @@
 # Presentation ---------
 POL_SetupWindow_presentation "$TITLE" "Codejam Pte Ltd" "www.codejam.com" "$AUTHOR" "$PREFIX"
 # INFO -------------------
-POL_SetupWindow_message "INFO: This install MemoriesOnTV version 4.\n\nIf you have registration code from earlier versions to 3...\n\nYou can find the installer on PlayOnLinux / Mac for PictureToTV, MemoriesOnTV2 or MemoriesOnTV3." "$TITLE" 
+POL_SetupWindow_message "$(eval_gettext 'INFO: This install MemoriesOnTV version 4.\n\nIf you have registration code from earlier versions to 3...\n\nYou can find the installer on PlayOnLinux / Mac for PictureToTV, MemoriesOnTV2 or MemoriesOnTV3.')" "$TITLE" 
 # Managing prefix and Wine version -----
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
@@ -56,8 +56,9 @@
           *)
       esac
   POL_Download "$DOWNLOAD_LINK" "$MD5SUM"
-  POL_SetupWindow_message "$TEXT_INSTRUCTIONS" "$TITLE"
   EXE_FILE="${DOWNLOAD_LINK##*/}"
+  POL_SetupWindow_message "$TEXT_INSTRUCTIONS" "$TITLE"
+  POL_Wine_WaitBefore "$TITLE"
   POL_Wine ${EXE_FILE}
 fi
 # Installation Method LOCAL --------------------
@@ -66,6 +67,7 @@
       cd "$HOME"
       POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
       POL_SetupWindow_message "$TEXT_INSTRUCTIONS" "$TITLE"
+      POL_Wine_WaitBefore "$TITLE"
       POL_Wine "$APP_ANSWER"
 fi
 # Selection and configuration of DLL language ----------------

New source code

#!/usr/bin/env playonlinux-bash
# CHANGELOG
# [Ueliton] (2015-06-03) UTC-3 14:28
# Correction, script not working
# Changed PREFIX and TITLE(Thank you [petch])
# Added install method Local
# Changed URL link download of version 4.1.2
# Added versions 4.1.0
# Added translations
# **PlayOnLinux 4.2.8**
# Wine version used: 1.7.28
# Distribution used to test: openSUSE 13.2 x86_64
# MemoriesOnTV versions used to test: 4.1.0 and 4.1.2
# Author: Ueliton
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
# Variables -------------
AUTHOR="Ueliton"
BINU_SERVER="http://media.binu.com/12630290/stream"
PREFIX="MemoriesOnTV4"
TEXT_INSTRUCTIONS="$(eval_gettext '\nDuring installation please deselect Creation of Icon Launcher/Desktop\n\nDO NOT let RESTART.')"
TITLE="Memories On TV"
WORKING_WINE_VERSION="1.7.28"
# --------------------------
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
# -------------------------- 
POL_SetupWindow_Init
POL_SetupWindow_SetID 2531
# Enable debugging
POL_Debug_Init
# Presentation ---------
POL_SetupWindow_presentation "$TITLE" "Codejam Pte Ltd" "www.codejam.com" "$AUTHOR" "$PREFIX"
# INFO -------------------
POL_SetupWindow_message "$(eval_gettext 'INFO: This install MemoriesOnTV version 4.\n\nIf you have registration code from earlier versions to 3...\n\nYou can find the installer on PlayOnLinux / Mac for PictureToTV, MemoriesOnTV2 or MemoriesOnTV3.')" "$TITLE" 
# Managing prefix and Wine version -----
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
# Creating Temp directory ----------------
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
# --------------------------
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
# Installation Method DOWNLOAD -------------
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
  then
      POL_SetupWindow_menu "$(eval_gettext 'What version do you want to install?')" "Version Selection" \
      "4.1.2|4.1.0" "|"
      case "$APP_ANSWER" in
          "4.1.2")
              DOWNLOAD_LINK="$BINU_SERVER/98566924702-1e5186bca8f75fca/motv412.exe"
              MD5SUM="277a4be8e2c6746332f04791e853f03f";;
          "4.1.0")
              DOWNLOAD_LINK="$BINU_SERVER/98566923396-96ea64f3a1aa2fd0/motv410.exe"
              MD5SUM="d1ea7b849cb22b7fc1edc7b5c7b6f47c";;
          *)
      esac
  POL_Download "$DOWNLOAD_LINK" "$MD5SUM"
  EXE_FILE="${DOWNLOAD_LINK##*/}"
  POL_SetupWindow_message "$TEXT_INSTRUCTIONS" "$TITLE"
  POL_Wine_WaitBefore "$TITLE"
  POL_Wine ${EXE_FILE}
fi
# Installation Method LOCAL --------------------
if [ "$INSTALL_METHOD" = "LOCAL" ]
  then
      cd "$HOME"
      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
      POL_SetupWindow_message "$TEXT_INSTRUCTIONS" "$TITLE"
      POL_Wine_WaitBefore "$TITLE"
      POL_Wine "$APP_ANSWER"
fi
# Selection and configuration of DLL language ----------------
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/MemoriesOnTV4"
mv MotvLOC.dll MotvLOC_old.dll

POL_SetupWindow_menu "$(eval_gettext 'Please select a language:')" "$TITLE" \
"Default(English)|Dutch|French|German|Hungarian|Italian|Portuguese|Russian|Spanish|Turkish" "|"

case "$APP_ANSWER" in
    "Default(English)")
        mv MotvLOC_old.dll MotvLOC.dll;;
    
    "Dutch")
        POL_Download "$BINU_SERVER/98566921347-5bd53571b9788463/MotvLOC.dll" "36fecb8db3888ef75ddfdca19394b3f8";;
 
    "French")
        POL_Download "$BINU_SERVER/98566922123-5e1b18c4c6a6d316/MotvLOC.dll" "53c8f62a2d3d2385dc5b62ad5636a59e";;
 
    "German")
        POL_Download "$BINU_SERVER/98566922572-3bd318565e4adbe5/MotvLOC.dll" "ad4f646965049ffeeef9892768c8f41b";;
 
    "Hungarian")
        POL_Download "$BINU_SERVER/98566921834-3341f6f048384ec7/MotvLOC.dll" "96acbeea725f6539263e9d716a379985";;
 
    "Italian")
        POL_Download "$BINU_SERVER/98566921653-ec6826e925952de7/MotvLOC.dll" "e65ac42b6b06866dd558d5916e918b9d";;
 
    "Portuguese")
        POL_Download "$BINU_SERVER/98566921226-69421f032498c970/MotvLOC.dll" "ca4791dad5f5b19148f52c2e4fd5c71a";;
 
    "Russian")
        POL_Download "$BINU_SERVER/98566921112-a45a1d12ee0fb7f1/MotvLOC.dll" "2829de4f938f8b60408b4fd2fdce3759";;
 
    "Spanish")
        POL_Download "$BINU_SERVER/98566922293-50905d7b2216bfec/MotvLOC.dll" "c48fb0066e9c45293487cf955196befd";;
 
    "Turkish")
        POL_Download "$BINU_SERVER/98566920860-a9be4c2a4041cadb/MotvLOC.dll" "b3047242bf07affee0d4ce84bfc00b2b";;
    *)
esac
# Delete temp directory --------------------------
POL_System_TmpDelete
# Create a launcher
POL_Shortcut "Motv.exe" "$TITLE"
POL_SetupWindow_Close
exit 0

Replies

Thursday 4 June 2015 at 1:55
I was wondering about the warning against selecting "reboot", is it really necessary?
Thursday 4 June 2015 at 2:35
Thank you for your help.

I believe that the warning is necessary because the program restarts, it may stop the installation.
Thursday 4 June 2015 at 3:19
So the same problem exists on Windows?
Thursday 4 June 2015 at 3:27
I do not use Windows ... I refer to the installation process in PlayOnLinux, it can be stopped if the program restart, and not create shortcuts, for example.
Thursday 4 June 2015 at 3:31
Yes, but I don't see how this problem can happen with PlayOnLinux if it does not exist under Windows too
Thursday 4 June 2015 at 3:32
Have you actually experienced the problem?
Thursday 4 June 2015 at 4:12
No, I have not tested this. Just follow the recommendation that exists in PlayOnLinux own, and reinforced the warning.
Thursday 4 June 2015 at 4:26
I don't think we want to clutter half the scripts with "don't put cats into the microwave" style notices.
Maybe it could be added in the general PlayOnLinux general notices instead
Thursday 4 June 2015 at 4:36
Yeah, you're right ...
Good morning, and good work. Here it's late, I need sleep. : D
Thursday 4 June 2015 at 5:01
I tried to improve the wording, any comments welcome: https://github.com/PlayOnLinux/POL-POM-4/commit/76e5f5367eb28ce89e45b55ae796f954dc3af8bf
Ueliton Wednesday 3 June 2015 at 19:25
Ueliton

Warning

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

Differences

@@ -1,37 +1,115 @@
 #!/usr/bin/env playonlinux-bash
-# Wine version used : 1.7.28
-# Distribution used to test : openSUSE 13.2
-# Author : Ueliton
+# CHANGELOG
+# [Ueliton] (2015-06-03) UTC-3 14:28
+# Correction, script not working
+# Changed PREFIX and TITLE(Thank you [petch])
+# Added install method Local
+# Changed URL link download of version 4.1.2
+# Added versions 4.1.0
+# Added translations
+# **PlayOnLinux 4.2.8**
+# Wine version used: 1.7.28
+# Distribution used to test: openSUSE 13.2 x86_64
+# MemoriesOnTV versions used to test: 4.1.0 and 4.1.2
+# Author: Ueliton
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
  
-TITLE="MemoriesOnTV"
-PREFIX="memoriesontv"
-
-# Selection of a prefix for wine and creation
+# Variables -------------
+AUTHOR="Ueliton"
+BINU_SERVER="http://media.binu.com/12630290/stream"
+PREFIX="MemoriesOnTV4"
+TEXT_INSTRUCTIONS="$(eval_gettext '\nDuring installation please deselect Creation of Icon Launcher/Desktop\n\nDO NOT let RESTART.')"
+TITLE="Memories On TV"
+WORKING_WINE_VERSION="1.7.28"
+# --------------------------
+POL_GetSetupImages "" "" "$TITLE"
+# -------------------------- 
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 2531
+# Enable debugging
+POL_Debug_Init
+# Presentation ---------
+POL_SetupWindow_presentation "$TITLE" "Codejam Pte Ltd" "www.codejam.com" "$AUTHOR" "$PREFIX"
+# INFO -------------------
+POL_SetupWindow_message "INFO: This install MemoriesOnTV version 4.\n\nIf you have registration code from earlier versions to 3...\n\nYou can find the installer on PlayOnLinux / Mac for PictureToTV, MemoriesOnTV2 or MemoriesOnTV3." "$TITLE" 
+# Managing prefix and Wine version -----
 POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "1.7.28"
-
-# Create the temp directory
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+# Creating Temp directory ----------------
 POL_System_TmpCreate "$PREFIX"
-
-# Download installer to the temp directory
 cd "$POL_System_TmpDir"
-POL_Download "http://www.codejam.com/file/motv412.exe"
-
-# Running the instalation file from the temp directory
-POL_SetupWindow_message "$(eval_gettext 'When installing, be sure not to let MemoriesOnTV launch automatically, so the POL setup can complete.')" "$TITLE"
-POL_Wine_WaitBefore "$TITLE"
-POL_Wine "$POL_System_TmpDir/motv412.exe"
-
-# Waiting for the installer to finish
-POL_Wine_WaitExit "$TITLE"
-
-# Delete temp directory
+# --------------------------
+POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
+# Installation Method DOWNLOAD -------------
+if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
+  then
+      POL_SetupWindow_menu "$(eval_gettext 'What version do you want to install?')" "Version Selection" \
+      "4.1.2|4.1.0" "|"
+      case "$APP_ANSWER" in
+          "4.1.2")
+              DOWNLOAD_LINK="$BINU_SERVER/98566924702-1e5186bca8f75fca/motv412.exe"
+              MD5SUM="277a4be8e2c6746332f04791e853f03f";;
+          "4.1.0")
+              DOWNLOAD_LINK="$BINU_SERVER/98566923396-96ea64f3a1aa2fd0/motv410.exe"
+              MD5SUM="d1ea7b849cb22b7fc1edc7b5c7b6f47c";;
+          *)
+      esac
+  POL_Download "$DOWNLOAD_LINK" "$MD5SUM"
+  POL_SetupWindow_message "$TEXT_INSTRUCTIONS" "$TITLE"
+  EXE_FILE="${DOWNLOAD_LINK##*/}"
+  POL_Wine ${EXE_FILE}
+fi
+# Installation Method LOCAL --------------------
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+  then
+      cd "$HOME"
+      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
+      POL_SetupWindow_message "$TEXT_INSTRUCTIONS" "$TITLE"
+      POL_Wine "$APP_ANSWER"
+fi
+# Selection and configuration of DLL language ----------------
+cd "$WINEPREFIX/drive_c/$PROGRAMFILES/MemoriesOnTV4"
+mv MotvLOC.dll MotvLOC_old.dll
+
+POL_SetupWindow_menu "$(eval_gettext 'Please select a language:')" "$TITLE" \
+"Default(English)|Dutch|French|German|Hungarian|Italian|Portuguese|Russian|Spanish|Turkish" "|"
+
+case "$APP_ANSWER" in
+    "Default(English)")
+        mv MotvLOC_old.dll MotvLOC.dll;;
+    
+    "Dutch")
+        POL_Download "$BINU_SERVER/98566921347-5bd53571b9788463/MotvLOC.dll" "36fecb8db3888ef75ddfdca19394b3f8";;
+ 
+    "French")
+        POL_Download "$BINU_SERVER/98566922123-5e1b18c4c6a6d316/MotvLOC.dll" "53c8f62a2d3d2385dc5b62ad5636a59e";;
+ 
+    "German")
+        POL_Download "$BINU_SERVER/98566922572-3bd318565e4adbe5/MotvLOC.dll" "ad4f646965049ffeeef9892768c8f41b";;
+ 
+    "Hungarian")
+        POL_Download "$BINU_SERVER/98566921834-3341f6f048384ec7/MotvLOC.dll" "96acbeea725f6539263e9d716a379985";;
+ 
+    "Italian")
+        POL_Download "$BINU_SERVER/98566921653-ec6826e925952de7/MotvLOC.dll" "e65ac42b6b06866dd558d5916e918b9d";;
+ 
+    "Portuguese")
+        POL_Download "$BINU_SERVER/98566921226-69421f032498c970/MotvLOC.dll" "ca4791dad5f5b19148f52c2e4fd5c71a";;
+ 
+    "Russian")
+        POL_Download "$BINU_SERVER/98566921112-a45a1d12ee0fb7f1/MotvLOC.dll" "2829de4f938f8b60408b4fd2fdce3759";;
+ 
+    "Spanish")
+        POL_Download "$BINU_SERVER/98566922293-50905d7b2216bfec/MotvLOC.dll" "c48fb0066e9c45293487cf955196befd";;
+ 
+    "Turkish")
+        POL_Download "$BINU_SERVER/98566920860-a9be4c2a4041cadb/MotvLOC.dll" "b3047242bf07affee0d4ce84bfc00b2b";;
+    *)
+esac
+# Delete temp directory --------------------------
 POL_System_TmpDelete
-
 # Create a launcher
 POL_Shortcut "Motv.exe" "$TITLE"
-
 POL_SetupWindow_Close
-exit
\ No newline at end of file
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# CHANGELOG
# [Ueliton] (2015-06-03) UTC-3 14:28
# Correction, script not working
# Changed PREFIX and TITLE(Thank you [petch])
# Added install method Local
# Changed URL link download of version 4.1.2
# Added versions 4.1.0
# Added translations
# **PlayOnLinux 4.2.8**
# Wine version used: 1.7.28
# Distribution used to test: openSUSE 13.2 x86_64
# MemoriesOnTV versions used to test: 4.1.0 and 4.1.2
# Author: Ueliton
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
# Variables -------------
AUTHOR="Ueliton"
BINU_SERVER="http://media.binu.com/12630290/stream"
PREFIX="MemoriesOnTV4"
TEXT_INSTRUCTIONS="$(eval_gettext '\nDuring installation please deselect Creation of Icon Launcher/Desktop\n\nDO NOT let RESTART.')"
TITLE="Memories On TV"
WORKING_WINE_VERSION="1.7.28"
# --------------------------
POL_GetSetupImages "" "" "$TITLE"
# -------------------------- 
POL_SetupWindow_Init
POL_SetupWindow_SetID 2531
# Enable debugging
POL_Debug_Init
# Presentation ---------
POL_SetupWindow_presentation "$TITLE" "Codejam Pte Ltd" "www.codejam.com" "$AUTHOR" "$PREFIX"
# INFO -------------------
POL_SetupWindow_message "INFO: This install MemoriesOnTV version 4.\n\nIf you have registration code from earlier versions to 3...\n\nYou can find the installer on PlayOnLinux / Mac for PictureToTV, MemoriesOnTV2 or MemoriesOnTV3." "$TITLE" 
# Managing prefix and Wine version -----
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
# Creating Temp directory ----------------
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
# --------------------------
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
# Installation Method DOWNLOAD -------------
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
  then
      POL_SetupWindow_menu "$(eval_gettext 'What version do you want to install?')" "Version Selection" \
      "4.1.2|4.1.0" "|"
      case "$APP_ANSWER" in
          "4.1.2")
              DOWNLOAD_LINK="$BINU_SERVER/98566924702-1e5186bca8f75fca/motv412.exe"
              MD5SUM="277a4be8e2c6746332f04791e853f03f";;
          "4.1.0")
              DOWNLOAD_LINK="$BINU_SERVER/98566923396-96ea64f3a1aa2fd0/motv410.exe"
              MD5SUM="d1ea7b849cb22b7fc1edc7b5c7b6f47c";;
          *)
      esac
  POL_Download "$DOWNLOAD_LINK" "$MD5SUM"
  POL_SetupWindow_message "$TEXT_INSTRUCTIONS" "$TITLE"
  EXE_FILE="${DOWNLOAD_LINK##*/}"
  POL_Wine ${EXE_FILE}
fi
# Installation Method LOCAL --------------------
if [ "$INSTALL_METHOD" = "LOCAL" ]
  then
      cd "$HOME"
      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
      POL_SetupWindow_message "$TEXT_INSTRUCTIONS" "$TITLE"
      POL_Wine "$APP_ANSWER"
fi
# Selection and configuration of DLL language ----------------
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/MemoriesOnTV4"
mv MotvLOC.dll MotvLOC_old.dll

POL_SetupWindow_menu "$(eval_gettext 'Please select a language:')" "$TITLE" \
"Default(English)|Dutch|French|German|Hungarian|Italian|Portuguese|Russian|Spanish|Turkish" "|"

case "$APP_ANSWER" in
    "Default(English)")
        mv MotvLOC_old.dll MotvLOC.dll;;
    
    "Dutch")
        POL_Download "$BINU_SERVER/98566921347-5bd53571b9788463/MotvLOC.dll" "36fecb8db3888ef75ddfdca19394b3f8";;
 
    "French")
        POL_Download "$BINU_SERVER/98566922123-5e1b18c4c6a6d316/MotvLOC.dll" "53c8f62a2d3d2385dc5b62ad5636a59e";;
 
    "German")
        POL_Download "$BINU_SERVER/98566922572-3bd318565e4adbe5/MotvLOC.dll" "ad4f646965049ffeeef9892768c8f41b";;
 
    "Hungarian")
        POL_Download "$BINU_SERVER/98566921834-3341f6f048384ec7/MotvLOC.dll" "96acbeea725f6539263e9d716a379985";;
 
    "Italian")
        POL_Download "$BINU_SERVER/98566921653-ec6826e925952de7/MotvLOC.dll" "e65ac42b6b06866dd558d5916e918b9d";;
 
    "Portuguese")
        POL_Download "$BINU_SERVER/98566921226-69421f032498c970/MotvLOC.dll" "ca4791dad5f5b19148f52c2e4fd5c71a";;
 
    "Russian")
        POL_Download "$BINU_SERVER/98566921112-a45a1d12ee0fb7f1/MotvLOC.dll" "2829de4f938f8b60408b4fd2fdce3759";;
 
    "Spanish")
        POL_Download "$BINU_SERVER/98566922293-50905d7b2216bfec/MotvLOC.dll" "c48fb0066e9c45293487cf955196befd";;
 
    "Turkish")
        POL_Download "$BINU_SERVER/98566920860-a9be4c2a4041cadb/MotvLOC.dll" "b3047242bf07affee0d4ce84bfc00b2b";;
    *)
esac
# Delete temp directory --------------------------
POL_System_TmpDelete
# Create a launcher
POL_Shortcut "Motv.exe" "$TITLE"
POL_SetupWindow_Close
exit 0

Replies

Wednesday 3 June 2015 at 19:29
http://wiki.playonlinux.com/index.php/Scripting_-_Chapter_11:_List_of_Functions#POL_GetSetupImages_.284.0.2B.29
Wednesday 3 June 2015 at 19:31
And there are still eval_gettext statements missing from POL_SetupWindow_message. They do work:

https://www.playonlinux.com/en/app-2316-Adobe_Photoshop_CS6.html
Wednesday 3 June 2015 at 19:42
I can not leave without pictures?
Wednesday 3 June 2015 at 19:49
No. You need to put the URLs up, and in the comments here, post the links to the photos and we will upload them. When they are uploaded to our server, they will replace the default POL ones. It is a standard part of the POL scripts.
Wednesday 3 June 2015 at 20:31
Are your screenshots from Windows or from POL? They should be taken from your non-Windows system, showing that it works through POL. 

http://wiki.playonlinux.com/index.php/How_to_Contribute_a_Script#Screenshot_requirements
Ueliton Tuesday 2 June 2015 at 23:05
Ueliton

Warning

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

Differences

@@ -1,37 +1,122 @@
 #!/usr/bin/env playonlinux-bash
-# Wine version used : 1.7.28
-# Distribution used to test : openSUSE 13.2
-# Author : Ueliton
+# CHANGELOG
+# [Ueliton] (2015-06-02) UTC-3 18:09
+# Correction, script not working
+# Changed PREFIX and TITLE
+# Added install method Local
+# Changed URL link download of version 4.1.2
+# Added versions 4.1.0
+# Added translations
+# **PlayOnLinux 4.2.8**
+# Wine version used: 1.7.28
+# Distribution used to test: openSUSE 13.2 x86_64
+# MemoriesOnTV versions used to test: 4.1.0 and 4.1.2
+# Author: Ueliton
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
  
-TITLE="MemoriesOnTV"
-PREFIX="memoriesontv"
+# Variables -------------
+AUTHOR="Ueliton"
+BINU_SERVER="http://media.binu.com/12630290/stream"
+PREFIX="Codejam"
+TEXT_INSTRUCTIONS="\nDuring installation please deselect Creation of Icon Launcher/Desktop\n\nDO NOT let RESTART."
+TITLE="Memories On TV"
+WORKING_WINE_VERSION="1.7.28"
 
-# Selection of a prefix for wine and creation
+POL_GetSetupImages "http://media.binu.com/12630290/stream/98566919529-bc3ea21614e0fdc4/top.png" "http://media.binu.com/12630290/stream/98566920171-18ead4c77c3f40da/left.png" "$TITLE"
+ 
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 2531
+# Enable debugging
+POL_Debug_Init
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "Codejam Pte Ltd" "www.codejam.com" "$AUTHOR" "$PREFIX"
+# INFO
+POL_SetupWindow_message "INFO: This install MemoriesOnTV version 4 or later.\n\nIf you have registration code from earlier versions to 3...\n\nYou can find the installer on PlayOnLinux / Mac for PictureToTV, MemoriesOnTV2 or MemoriesOnTV3." "$TITLE" 
+# Managing prefix and Wine version
 POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "1.7.28"
-
-# Create the temp directory
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+# Creating Temp directory
 POL_System_TmpCreate "$PREFIX"
-
-# Download installer to the temp directory
 cd "$POL_System_TmpDir"
-POL_Download "http://www.codejam.com/file/motv412.exe"
-
-# Running the instalation file from the temp directory
-POL_SetupWindow_message "$(eval_gettext 'When installing, be sure not to let MemoriesOnTV launch automatically, so the POL setup can complete.')" "$TITLE"
-POL_Wine_WaitBefore "$TITLE"
-POL_Wine "$POL_System_TmpDir/motv412.exe"
 
-# Waiting for the installer to finish
-POL_Wine_WaitExit "$TITLE"
+POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
 
+# Installation Method DOWNLOAD
+if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
+  then
+      POL_SetupWindow_menu "$(eval_gettext 'What version do you want to install?')" "Version Selection" \
+      "4.1.2|4.1.0" "|"
+  case "$APP_ANSWER" in
+      "4.1.2")
+        DOWNLOAD_LINK="$BINU_SERVER/98566924702-1e5186bca8f75fca/motv412.exe"
+        MD5SUM="277a4be8e2c6746332f04791e853f03f";;
+      "4.1.0")
+        DOWNLOAD_LINK="$BINU_SERVER/98566923396-96ea64f3a1aa2fd0/motv410.exe"
+        MD5SUM="d1ea7b849cb22b7fc1edc7b5c7b6f47c";;
+        *)
+  esac
+  POL_Download "$DOWNLOAD_LINK" "$MD5SUM"
+  POL_SetupWindow_message "$(eval_gettext '$TEXT_INSTRUCTIONS')" "$TITLE"
+  POL_Wine_WaitBefore "$TITLE"
+  EXE_FILE="${DOWNLOAD_LINK##*/}"
+  POL_Wine ${EXE_FILE}
+  POL_Wine_WaitExit "$TITLE"
+fi
+    
+# Installation Method LOCAL
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+  then
+      cd "$HOME"
+      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
+      POL_SetupWindow_message "$(eval_gettext '$TEXT_INSTRUCTIONS')" "$TITLE"
+      POL_Wine_WaitBefore "$TITLE"
+      POL_Wine "$APP_ANSWER"
+      POL_Wine_WaitExit "$TITLE"
+fi
+
+# Selection and configuration of DLL language:
+cd $POL_USER_ROOT/wineprefix/Codejam/drive_c/Program\ Files/MemoriesOnTV4
+mv MotvLOC.dll MotvLOC_old.dll
+
+POL_SetupWindow_menu "$(eval_gettext 'Please select a language:')" "$TITLE" \
+"Default(English)|Dutch|French|German|Hungarian|Italian|Portuguese|Russian|Spanish|Turkish" "|"
+
+case "$APP_ANSWER" in
+    "Default(English)")
+    mv MotvLOC_old.dll MotvLOC.dll;;
+    
+    "Dutch")
+    POL_Download "$BINU_SERVER/98566921347-5bd53571b9788463/MotvLOC.dll" "36fecb8db3888ef75ddfdca19394b3f8";;
+ 
+    "French")
+    POL_Download "$BINU_SERVER/98566922123-5e1b18c4c6a6d316/MotvLOC.dll" "53c8f62a2d3d2385dc5b62ad5636a59e";;
+ 
+    "German")
+    POL_Download "$BINU_SERVER/98566922572-3bd318565e4adbe5/MotvLOC.dll" "ad4f646965049ffeeef9892768c8f41b";;
+ 
+    "Hungarian")
+    POL_Download "$BINU_SERVER/98566921834-3341f6f048384ec7/MotvLOC.dll" "96acbeea725f6539263e9d716a379985";;
+ 
+    "Italian")
+    POL_Download "$BINU_SERVER/98566921653-ec6826e925952de7/MotvLOC.dll" "e65ac42b6b06866dd558d5916e918b9d";;
+ 
+    "Portuguese")
+    POL_Download "$BINU_SERVER/98566921226-69421f032498c970/MotvLOC.dll" "ca4791dad5f5b19148f52c2e4fd5c71a";;
+ 
+    "Russian")
+    POL_Download "$BINU_SERVER/98566921112-a45a1d12ee0fb7f1/MotvLOC.dll" "2829de4f938f8b60408b4fd2fdce3759";;
+ 
+    "Spanish")
+    POL_Download "$BINU_SERVER/98566922293-50905d7b2216bfec/MotvLOC.dll" "c48fb0066e9c45293487cf955196befd";;
+ 
+    "Turkish")
+    POL_Download "$BINU_SERVER/98566920860-a9be4c2a4041cadb/MotvLOC.dll" "b3047242bf07affee0d4ce84bfc00b2b";;
+    *)
+esac
 # Delete temp directory
 POL_System_TmpDelete
-
 # Create a launcher
 POL_Shortcut "Motv.exe" "$TITLE"
-
 POL_SetupWindow_Close
 exit
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# CHANGELOG
# [Ueliton] (2015-06-02) UTC-3 18:09
# Correction, script not working
# Changed PREFIX and TITLE
# Added install method Local
# Changed URL link download of version 4.1.2
# Added versions 4.1.0
# Added translations
# **PlayOnLinux 4.2.8**
# Wine version used: 1.7.28
# Distribution used to test: openSUSE 13.2 x86_64
# MemoriesOnTV versions used to test: 4.1.0 and 4.1.2
# Author: Ueliton
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
# Variables -------------
AUTHOR="Ueliton"
BINU_SERVER="http://media.binu.com/12630290/stream"
PREFIX="Codejam"
TEXT_INSTRUCTIONS="\nDuring installation please deselect Creation of Icon Launcher/Desktop\n\nDO NOT let RESTART."
TITLE="Memories On TV"
WORKING_WINE_VERSION="1.7.28"

POL_GetSetupImages "http://media.binu.com/12630290/stream/98566919529-bc3ea21614e0fdc4/top.png" "http://media.binu.com/12630290/stream/98566920171-18ead4c77c3f40da/left.png" "$TITLE"
 
POL_SetupWindow_Init
POL_SetupWindow_SetID 2531
# Enable debugging
POL_Debug_Init
# Presentation
POL_SetupWindow_presentation "$TITLE" "Codejam Pte Ltd" "www.codejam.com" "$AUTHOR" "$PREFIX"
# INFO
POL_SetupWindow_message "INFO: This install MemoriesOnTV version 4 or later.\n\nIf you have registration code from earlier versions to 3...\n\nYou can find the installer on PlayOnLinux / Mac for PictureToTV, MemoriesOnTV2 or MemoriesOnTV3." "$TITLE" 
# Managing prefix and Wine version
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
# Creating Temp directory
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"

POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"

# Installation Method DOWNLOAD
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
  then
      POL_SetupWindow_menu "$(eval_gettext 'What version do you want to install?')" "Version Selection" \
      "4.1.2|4.1.0" "|"
  case "$APP_ANSWER" in
      "4.1.2")
        DOWNLOAD_LINK="$BINU_SERVER/98566924702-1e5186bca8f75fca/motv412.exe"
        MD5SUM="277a4be8e2c6746332f04791e853f03f";;
      "4.1.0")
        DOWNLOAD_LINK="$BINU_SERVER/98566923396-96ea64f3a1aa2fd0/motv410.exe"
        MD5SUM="d1ea7b849cb22b7fc1edc7b5c7b6f47c";;
        *)
  esac
  POL_Download "$DOWNLOAD_LINK" "$MD5SUM"
  POL_SetupWindow_message "$(eval_gettext '$TEXT_INSTRUCTIONS')" "$TITLE"
  POL_Wine_WaitBefore "$TITLE"
  EXE_FILE="${DOWNLOAD_LINK##*/}"
  POL_Wine ${EXE_FILE}
  POL_Wine_WaitExit "$TITLE"
fi
    
# Installation Method LOCAL
if [ "$INSTALL_METHOD" = "LOCAL" ]
  then
      cd "$HOME"
      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
      POL_SetupWindow_message "$(eval_gettext '$TEXT_INSTRUCTIONS')" "$TITLE"
      POL_Wine_WaitBefore "$TITLE"
      POL_Wine "$APP_ANSWER"
      POL_Wine_WaitExit "$TITLE"
fi

# Selection and configuration of DLL language:
cd $POL_USER_ROOT/wineprefix/Codejam/drive_c/Program\ Files/MemoriesOnTV4
mv MotvLOC.dll MotvLOC_old.dll

POL_SetupWindow_menu "$(eval_gettext 'Please select a language:')" "$TITLE" \
"Default(English)|Dutch|French|German|Hungarian|Italian|Portuguese|Russian|Spanish|Turkish" "|"

case "$APP_ANSWER" in
    "Default(English)")
    mv MotvLOC_old.dll MotvLOC.dll;;
    
    "Dutch")
    POL_Download "$BINU_SERVER/98566921347-5bd53571b9788463/MotvLOC.dll" "36fecb8db3888ef75ddfdca19394b3f8";;
 
    "French")
    POL_Download "$BINU_SERVER/98566922123-5e1b18c4c6a6d316/MotvLOC.dll" "53c8f62a2d3d2385dc5b62ad5636a59e";;
 
    "German")
    POL_Download "$BINU_SERVER/98566922572-3bd318565e4adbe5/MotvLOC.dll" "ad4f646965049ffeeef9892768c8f41b";;
 
    "Hungarian")
    POL_Download "$BINU_SERVER/98566921834-3341f6f048384ec7/MotvLOC.dll" "96acbeea725f6539263e9d716a379985";;
 
    "Italian")
    POL_Download "$BINU_SERVER/98566921653-ec6826e925952de7/MotvLOC.dll" "e65ac42b6b06866dd558d5916e918b9d";;
 
    "Portuguese")
    POL_Download "$BINU_SERVER/98566921226-69421f032498c970/MotvLOC.dll" "ca4791dad5f5b19148f52c2e4fd5c71a";;
 
    "Russian")
    POL_Download "$BINU_SERVER/98566921112-a45a1d12ee0fb7f1/MotvLOC.dll" "2829de4f938f8b60408b4fd2fdce3759";;
 
    "Spanish")
    POL_Download "$BINU_SERVER/98566922293-50905d7b2216bfec/MotvLOC.dll" "c48fb0066e9c45293487cf955196befd";;
 
    "Turkish")
    POL_Download "$BINU_SERVER/98566920860-a9be4c2a4041cadb/MotvLOC.dll" "b3047242bf07affee0d4ce84bfc00b2b";;
    *)
esac
# Delete temp directory
POL_System_TmpDelete
# Create a launcher
POL_Shortcut "Motv.exe" "$TITLE"
POL_SetupWindow_Close
exit

Replies

Wednesday 3 June 2015 at 1:19
Ok, we're almost there, just a few new things, or things I forgot the first time around (sorry about that, I hope I'm not missing anything):

PREFIX="Codejam"

If Codejam is the publisher and Memories On TV the software name, shouldn't $PREFIX be "MemoriesOnTV" or "MemorieOnTV4", something like that? I'm trying to find something more consistent with your other scripts, and if they have other products...

TEXT_INSTRUCTIONS="\nDuring installation please deselect Creation of Icon Launcher/Desktop\n\nDO NOT let RESTART."
...
POL_SetupWindow_message "$(eval_gettext '$TEXT_INSTRUCTIONS')" "$TITLE"

Thinking of it, this will break localization; Because translators will be asked to translate '$TEXT_INSTRUCTIONS', and if they don't keep it unchanged (best case), the user will see the original english text.
Either inline the text (but I see it's used in several places), or use
TEXT_INSTRUCTIONS="$(eval_gettext '\nDuring installation please deselect Creation of Icon Launcher/Desktop\n\nDO NOT let RESTART.')"
...
POL_SetupWindow_message "$TEXT_INSTRUCTIONS" "$TITLE"
instead

POL_Wine_WaitBefore "$TITLE"
POL_Wine ${EXE_FILE}
POL_Wine_WaitExit "$TITLE"

POL_Wine_WaitExit should be unnecessary here; Unless POL_Wine ${EXE_FILE} is non-blocking (happens with few programs), in which case it's POL_Wine_WaitBefore "$TITLE" which is unnecessary. Either way, one should never need both for the same POL_Wine (see http://wiki.playonlinux.com/index.php/Scripting_-_Chapter_11:_List_of_Functions#POL_Wine_.284.0.2B.29)

cd $POL_USER_ROOT/wineprefix/Codejam/drive_c/Program\ Files/MemoriesOnTV4

Use $WINEPREFIX instead of $POL_USER_ROOT/wineprefix/Codejam for all paths inside the virtual drive; Also don't hardcode "Program Files" since it's subject to localization by Wine (following Windows own behavior), instead use $PROGRAMFILES:
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/MemoriesOnTV4"
Wednesday 3 June 2015 at 16:29
cd $WINEPREFIX/$PREFIX/drive_c/$PROGRAMFILES/MemoriesOnTV4

and

cd $WINEPREFIX/drive_c/$PROGRAMFILES/MemoriesOnTV4

This saving in $ HOME, how do I save in:

/home/openSUSE/PlayOnLinux's virtual drives/MemoriesOnTV4/drive_c/Program Files/MemoriesOnTV4/ (?)

or in

/home/openSUSE/PlayOnLinux's virtual drives/MemoriesOnTV4/drive_c/Program\ Files/MemoriesOnTV4/ (?)
Wednesday 3 June 2015 at 16:39
The problem is $ PROGRAMFILES, this forwarding to $ HOME. Only works using Program \ Files
Wednesday 3 June 2015 at 16:57
I can use this (?):

cd $WINEPREFIX//dosdevices/c:/Program\ Files/MemoriesOnTV4
Wednesday 3 June 2015 at 17:00
It should work the way that petch said. Did you add the quotes around the path after cd? Like he said, you don't want to hardcode the Program Files folder.
Wednesday 3 June 2015 at 17:08
I Just do it:
Wednesday 3 June 2015 at 17:09
cd $WINEPREFIX/drive_c/$PROGRAMFILES/MemoriesOnTV4 but not work
Wednesday 3 June 2015 at 17:10
So, add the quotes around the file path, exactly as petch typed it:

cd "$WINEPREFIX/drive_c/$PROGRAMFILES/MemoriesOnTV4"
Ueliton Monday 1 June 2015 at 23:11
Ueliton

Warning

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

Differences

@@ -1,37 +1,127 @@
-#!/usr/bin/env playonlinux-bash
-# Wine version used : 1.7.28
-# Distribution used to test : openSUSE 13.2
-# Author : Ueliton
+# !/usr/bin/env playonlinux-bash
+# CHANGELOG
+# [Ueliton] (2015-06-01) 18:10
+# Correction, script not working
+# Changed PREFIX
+# Added install method Local
+# Changed link download + md5
+# Added version 4.1.0
+# Added translations for version 4.1.0 and 4.1.2
+# **PlayOnLinux 4.2.8**
+# Wine version used: 1.7.28
+# Distribution used to test: openSUSE 13.2 x86_64
+# MemoriesOnTV versions used to test: 4.1.0 and 4.1.2
+# Author: Ueliton
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
  
+# Variables -------------
+AUTHOR="Ueliton"
+CODEJAM_SERVER="http://www.codejam.com"
 TITLE="MemoriesOnTV"
-PREFIX="memoriesontv"
+PREFIX="Codejam"
+WORKING_WINE_VERSION="1.7.28"
+TEXT_INSTRUCTIONS="\nDuring installation please Deselect Creation of Icon/Launcher\nDo Not let restart."
+TITLE="MemoriesOnTV"
+WORKING_WINE_VERSION="1.7.28"
 
-# Selection of a prefix for wine and creation
+POL_GetSetupImages "http://media.binu.com/12630290/stream/98566919529-bc3ea21614e0fdc4/top.png" "http://media.binu.com/12630290/stream/98566920171-18ead4c77c3f40da/left.png" "$TITLE"
+ 
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 2531
+# Enable debugging
+POL_Debug_Init
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "Codejam Pte Ltd" "$CODEJAM_SERVER" "$AUTHOR" "$PREFIX"
+# Creating Temp directory
 POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "1.7.28"
-
-# Create the temp directory
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 POL_System_TmpCreate "$PREFIX"
-
-# Download installer to the temp directory
 cd "$POL_System_TmpDir"
-POL_Download "http://www.codejam.com/file/motv412.exe"
 
-# Running the instalation file from the temp directory
-POL_SetupWindow_message "$(eval_gettext 'When installing, be sure not to let MemoriesOnTV launch automatically, so the POL setup can complete.')" "$TITLE"
-POL_Wine_WaitBefore "$TITLE"
-POL_Wine "$POL_System_TmpDir/motv412.exe"
-
-# Waiting for the installer to finish
-POL_Wine_WaitExit "$TITLE"
+POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
 
+# Installation Method DOWNLOAD
+if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
+then
+    POL_SetupWindow_menu "$(eval_gettext 'What version do you want to install?')" "Version Selection" \
+    "4.1.2|4.1.0" "|"
+case "$APP_ANSWER" in
+    "4.1.2")
+        DOWNLOAD_LINK="http://media.binu.com/12630290/stream/98566924702-1e5186bca8f75fca/motv412.exe"
+        MD5SUM="277a4be8e2c6746332f04791e853f03f";;
+    "4.1.0")
+        DOWNLOAD_LINK="http://media.binu.com/12630290/stream/98566923396-96ea64f3a1aa2fd0/motv410.exe"
+        MD5SUM="d1ea7b849cb22b7fc1edc7b5c7b6f47c";;
+        *)
+        exit 1 ;;
+esac
+    cd "$POL_System_TmpDir"
+    POL_Download "$DOWNLOAD_LINK" "$MD5SUM"
+    POL_SetupWindow_message "$(eval_gettext 'When installing, be sure not to let MemoriesOnTV restart, so the POL setup can complete.')" "$TITLE"
+    POL_Wine_WaitBefore "$TITLE"
+    EXE_FILE="${DOWNLOAD_LINK##*/}"
+    POL_Wine start /unix ${EXE_FILE}
+    POL_Wine_WaitExit "$TITLE"
+fi
+    
+# Installation Method LOCAL
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+    cd "$HOME"
+    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
+    POL_SetupWindow_message "$(eval_gettext 'When installing, be sure not to let MemoriesOnTV restart, so the POL setup can complete.')" "$TITLE"
+    POL_Wine_WaitBefore "$TITLE"
+    POL_Wine start /unix "$APP_ANSWER"
+    POL_Wine_WaitExit "$TITLE"
+fi
+
+# Selection and configuration of DLL language:
+cd ~/.PlayOn*/wineprefix/Codejam/drive_c/Program\ Files/MemoriesOnTV*
+mv MotvLOC.dll MotvLOC_Old.dll
+POL_SetupWindow_menu "$(eval_gettext 'Select a language:')" "$TITLE" \
+"Default|Dutch|French|German|Hungarian|Italian|Portuguese|Russian|Spanish|Turkish" "|"
+ 
+# Selection and configuration of DLL language:
+case "$APP_ANSWER" in
+    "Dutch")
+     POL_Download "http://media.binu.com/12630290/stream/98566921347-5bd53571b9788463/MotvLOC.dll" "36fecb8db3888ef75ddfdca19394b3f8";;
+ 
+    "Default")
+    POL_SetupWindow_wait_next_signal;;
+ 
+    "French")
+    POL_Download "http://media.binu.com/12630290/stream/98566922123-5e1b18c4c6a6d316/MotvLOC.dll" "53c8f62a2d3d2385dc5b62ad5636a59e";;
+ 
+    "German")
+    POL_Download "http://media.binu.com/12630290/stream/98566922572-3bd318565e4adbe5/MotvLOC.dll" "ad4f646965049ffeeef9892768c8f41b";;
+ 
+    "Hungarian")
+    POL_Download "http://media.binu.com/12630290/stream/98566921834-3341f6f048384ec7/MotvLOC.dll" "96acbeea725f6539263e9d716a379985";;
+ 
+    "Italian")
+    POL_Download "http://media.binu.com/12630290/stream/98566921653-ec6826e925952de7/MotvLOC.dll" "e65ac42b6b06866dd558d5916e918b9d";;
+ 
+    "Portuguese")
+    POL_Download "http://media.binu.com/12630290/stream/98566921226-69421f032498c970/MotvLOC.dll" "ca4791dad5f5b19148f52c2e4fd5c71a";;
+ 
+    "Russian")
+    POL_Download "http://media.binu.com/12630290/stream/98566921112-a45a1d12ee0fb7f1/MotvLOC.dll" "2829de4f938f8b60408b4fd2fdce3759";;
+ 
+    "Spanish")
+    POL_Download "http://media.binu.com/12630290/stream/98566922293-50905d7b2216bfec/MotvLOC.dll" "c48fb0066e9c45293487cf955196befd";;
+ 
+    "Turkish")
+    POL_Download "http://media.binu.com/12630290/stream/98566920860-a9be4c2a4041cadb/MotvLOC.dll" "b3047242bf07affee0d4ce84bfc00b2b";;
+    *)
+    exit 1 ;;
+esac
 # Delete temp directory
 POL_System_TmpDelete
-
 # Create a launcher
 POL_Shortcut "Motv.exe" "$TITLE"
 
+POL_SetupWindow_message "$TITLE has been successfully installed." "$TITLE"
+POL_Wine_WaitExit "$TITLE"
 POL_SetupWindow_Close
 exit
\ No newline at end of file

New source code

# !/usr/bin/env playonlinux-bash
# CHANGELOG
# [Ueliton] (2015-06-01) 18:10
# Correction, script not working
# Changed PREFIX
# Added install method Local
# Changed link download + md5
# Added version 4.1.0
# Added translations for version 4.1.0 and 4.1.2
# **PlayOnLinux 4.2.8**
# Wine version used: 1.7.28
# Distribution used to test: openSUSE 13.2 x86_64
# MemoriesOnTV versions used to test: 4.1.0 and 4.1.2
# Author: Ueliton
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
# Variables -------------
AUTHOR="Ueliton"
CODEJAM_SERVER="http://www.codejam.com"
TITLE="MemoriesOnTV"
PREFIX="Codejam"
WORKING_WINE_VERSION="1.7.28"
TEXT_INSTRUCTIONS="\nDuring installation please Deselect Creation of Icon/Launcher\nDo Not let restart."
TITLE="MemoriesOnTV"
WORKING_WINE_VERSION="1.7.28"

POL_GetSetupImages "http://media.binu.com/12630290/stream/98566919529-bc3ea21614e0fdc4/top.png" "http://media.binu.com/12630290/stream/98566920171-18ead4c77c3f40da/left.png" "$TITLE"
 
POL_SetupWindow_Init
POL_SetupWindow_SetID 2531
# Enable debugging
POL_Debug_Init
# Presentation
POL_SetupWindow_presentation "$TITLE" "Codejam Pte Ltd" "$CODEJAM_SERVER" "$AUTHOR" "$PREFIX"
# Creating Temp directory
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"

POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"

# Installation Method DOWNLOAD
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    POL_SetupWindow_menu "$(eval_gettext 'What version do you want to install?')" "Version Selection" \
    "4.1.2|4.1.0" "|"
case "$APP_ANSWER" in
    "4.1.2")
        DOWNLOAD_LINK="http://media.binu.com/12630290/stream/98566924702-1e5186bca8f75fca/motv412.exe"
        MD5SUM="277a4be8e2c6746332f04791e853f03f";;
    "4.1.0")
        DOWNLOAD_LINK="http://media.binu.com/12630290/stream/98566923396-96ea64f3a1aa2fd0/motv410.exe"
        MD5SUM="d1ea7b849cb22b7fc1edc7b5c7b6f47c";;
        *)
        exit 1 ;;
esac
    cd "$POL_System_TmpDir"
    POL_Download "$DOWNLOAD_LINK" "$MD5SUM"
    POL_SetupWindow_message "$(eval_gettext 'When installing, be sure not to let MemoriesOnTV restart, so the POL setup can complete.')" "$TITLE"
    POL_Wine_WaitBefore "$TITLE"
    EXE_FILE="${DOWNLOAD_LINK##*/}"
    POL_Wine start /unix ${EXE_FILE}
    POL_Wine_WaitExit "$TITLE"
fi
    
# Installation Method LOCAL
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    cd "$HOME"
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
    POL_SetupWindow_message "$(eval_gettext 'When installing, be sure not to let MemoriesOnTV restart, so the POL setup can complete.')" "$TITLE"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$APP_ANSWER"
    POL_Wine_WaitExit "$TITLE"
fi

# Selection and configuration of DLL language:
cd ~/.PlayOn*/wineprefix/Codejam/drive_c/Program\ Files/MemoriesOnTV*
mv MotvLOC.dll MotvLOC_Old.dll
POL_SetupWindow_menu "$(eval_gettext 'Select a language:')" "$TITLE" \
"Default|Dutch|French|German|Hungarian|Italian|Portuguese|Russian|Spanish|Turkish" "|"
 
# Selection and configuration of DLL language:
case "$APP_ANSWER" in
    "Dutch")
     POL_Download "http://media.binu.com/12630290/stream/98566921347-5bd53571b9788463/MotvLOC.dll" "36fecb8db3888ef75ddfdca19394b3f8";;
 
    "Default")
    POL_SetupWindow_wait_next_signal;;
 
    "French")
    POL_Download "http://media.binu.com/12630290/stream/98566922123-5e1b18c4c6a6d316/MotvLOC.dll" "53c8f62a2d3d2385dc5b62ad5636a59e";;
 
    "German")
    POL_Download "http://media.binu.com/12630290/stream/98566922572-3bd318565e4adbe5/MotvLOC.dll" "ad4f646965049ffeeef9892768c8f41b";;
 
    "Hungarian")
    POL_Download "http://media.binu.com/12630290/stream/98566921834-3341f6f048384ec7/MotvLOC.dll" "96acbeea725f6539263e9d716a379985";;
 
    "Italian")
    POL_Download "http://media.binu.com/12630290/stream/98566921653-ec6826e925952de7/MotvLOC.dll" "e65ac42b6b06866dd558d5916e918b9d";;
 
    "Portuguese")
    POL_Download "http://media.binu.com/12630290/stream/98566921226-69421f032498c970/MotvLOC.dll" "ca4791dad5f5b19148f52c2e4fd5c71a";;
 
    "Russian")
    POL_Download "http://media.binu.com/12630290/stream/98566921112-a45a1d12ee0fb7f1/MotvLOC.dll" "2829de4f938f8b60408b4fd2fdce3759";;
 
    "Spanish")
    POL_Download "http://media.binu.com/12630290/stream/98566922293-50905d7b2216bfec/MotvLOC.dll" "c48fb0066e9c45293487cf955196befd";;
 
    "Turkish")
    POL_Download "http://media.binu.com/12630290/stream/98566920860-a9be4c2a4041cadb/MotvLOC.dll" "b3047242bf07affee0d4ce84bfc00b2b";;
    *)
    exit 1 ;;
esac
# Delete temp directory
POL_System_TmpDelete
# Create a launcher
POL_Shortcut "Motv.exe" "$TITLE"

POL_SetupWindow_message "$TITLE has been successfully installed." "$TITLE"
POL_Wine_WaitExit "$TITLE"
POL_SetupWindow_Close
exit

Replies

Monday 1 June 2015 at 23:12
Sorry to post again, missed the creation of the virtual drive (PREFIX) and the shortcut.
Monday 1 June 2015 at 23:18
The time in the CHANGELOG is the Brazil -03
Monday 1 June 2015 at 23:25
# !/usr/bin/env playonlinux-bash

This line is not just a comment, it can be interpreted specifically by Unixen kernels. Adding a space just breaks this

TITLE="MemoriesOnTV"

$TITLE has to match script name in the repository

TITLE="MemoriesOnTV"
WORKING_WINE_VERSION="1.7.28"

Redefined variables

exit 1 ;;

Ideally if you want to abort the script you should call POL_SetupWindow_Close first

POL_Wine start /unix ${EXE_FILE}

start /unix is usually unnecessary, and it has unwanted side effects. Remove it if possible

cd ~/.PlayOn*/wineprefix/Codejam/drive_c/Program\ Files/MemoriesOnTV*

Never hardcode PlayOnLinux/PlayOnMac state directory, use $POL_USER_ROOT
never hardcode "Program Files" either, it's subject to localization. Use $PROGRAMFILES instead.

POL_SetupWindow_wait_next_signal;;

Not sure why your left that here

POL_SetupWindow_message "$TITLE has been successfully installed." "$TITLE"

"Success" messages are deprecated, as they can sometimes appear even after errors. Just let PoL display an error message if it detected that something broke.

POL_Wine_WaitExit "$TITLE"

The script shouldn't be waiting for any Wine process to finish at that point
Ueliton Monday 1 June 2015 at 22:55
Ueliton

Warning

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

Differences

@@ -1,37 +1,121 @@
-#!/usr/bin/env playonlinux-bash
-# Wine version used : 1.7.28
-# Distribution used to test : openSUSE 13.2
-# Author : Ueliton
+# !/usr/bin/env playonlinux-bash
+# CHANGELOG
+# [Ueliton] (2015-04-00)
+# Correction, script not working
+# Changed PREFIX
+# Added install method Local
+# Changed link download + md5
+# Added version 4.1.0
+# Added translations for version 4.1.0 and 4.1.2
+# **PlayOnLinux 4.2.8**
+# Wine version used: 1.7.28
+# Distribution used to test: openSUSE 13.2 x86_64
+# MemoriesOnTV versions used to test: 4.1.0 and 4.1.2
+# Author: Ueliton
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
  
+# Variables -------------
+AUTHOR="Ueliton"
+CODEJAM_SERVER="http://www.codejam.com"
 TITLE="MemoriesOnTV"
-PREFIX="memoriesontv"
-
-# Selection of a prefix for wine and creation
-POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "1.7.28"
+PREFIX="Codejam"
+WORKING_WINE_VERSION="1.7.28"
+TEXT_INSTRUCTIONS="\nDuring installation please Deselect Creation of Icon/Launcher\nDo Not let restart."
+TITLE="MemoriesOnTV"
+WORKING_WINE_VERSION="1.7.28"
 
-# Create the temp directory
+POL_GetSetupImages "http://media.binu.com/12630290/stream/98566919529-bc3ea21614e0fdc4/top.png" "http://media.binu.com/12630290/stream/98566920171-18ead4c77c3f40da/left.png" "$TITLE"
+ 
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 2531
+# Enable debugging
+POL_Debug_Init
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "Codejam Pte Ltd" "$CODEJAM_SERVER" "$AUTHOR" "$PREFIX"
+# Creating Temp directory
 POL_System_TmpCreate "$PREFIX"
-
-# Download installer to the temp directory
 cd "$POL_System_TmpDir"
-POL_Download "http://www.codejam.com/file/motv412.exe"
 
-# Running the instalation file from the temp directory
-POL_SetupWindow_message "$(eval_gettext 'When installing, be sure not to let MemoriesOnTV launch automatically, so the POL setup can complete.')" "$TITLE"
-POL_Wine_WaitBefore "$TITLE"
-POL_Wine "$POL_System_TmpDir/motv412.exe"
+POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
 
-# Waiting for the installer to finish
-POL_Wine_WaitExit "$TITLE"
-
-# Delete temp directory
-POL_System_TmpDelete
-
-# Create a launcher
-POL_Shortcut "Motv.exe" "$TITLE"
+# Installation Method DOWNLOAD
+if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
+then
+    POL_SetupWindow_menu "$(eval_gettext 'What version do you want to install?')" "Version Selection" \
+    "4.1.2|4.1.0" "|"
+case "$APP_ANSWER" in
+    "4.1.2")
+        DOWNLOAD_LINK="http://media.binu.com/12630290/stream/98566924702-1e5186bca8f75fca/motv412.exe"
+        MD5SUM="277a4be8e2c6746332f04791e853f03f";;
+    "4.1.0")
+        DOWNLOAD_LINK="http://media.binu.com/12630290/stream/98566923396-96ea64f3a1aa2fd0/motv410.exe"
+        MD5SUM="d1ea7b849cb22b7fc1edc7b5c7b6f47c";;
+        *)
+        exit 1 ;;
+esac
+    cd "$POL_System_TmpDir"
+    POL_Download "$DOWNLOAD_LINK" "$MD5SUM"
+    POL_SetupWindow_message "$(eval_gettext 'When installing, be sure not to let MemoriesOnTV restart, so the POL setup can complete.')" "$TITLE"
+    POL_Wine_WaitBefore "$TITLE"
+    EXE_FILE="${DOWNLOAD_LINK##*/}"
+    POL_Wine start /unix ${EXE_FILE}
+    POL_Wine_WaitExit "$TITLE"
+fi
+    
+# Installation Method LOCAL
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+    cd "$HOME"
+    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
+    POL_SetupWindow_message "$(eval_gettext 'When installing, be sure not to let MemoriesOnTV restart, so the POL setup can complete.')" "$TITLE"
+    POL_Wine_WaitBefore "$TITLE"
+    POL_Wine start /unix "$APP_ANSWER"
+    POL_Wine_WaitExit "$TITLE"
+fi
+
+# Selection and configuration of DLL language:
+cd ~/.PlayOn*/wineprefix/Codejam/drive_c/Program\ Files/MemoriesOnTV*
+mv MotvLOC.dll MotvLOC_Old.dll
+POL_SetupWindow_menu "$(eval_gettext 'Select a language:')" "$TITLE" \
+"Default|Dutch|French|German|Hungarian|Italian|Portuguese|Russian|Spanish|Turkish" "|"
+ 
+# Selection and configuration of DLL language:
+case "$APP_ANSWER" in
+    "Dutch")
+     POL_Download "http://media.binu.com/12630290/stream/98566921347-5bd53571b9788463/MotvLOC.dll" "36fecb8db3888ef75ddfdca19394b3f8";;
+ 
+    "Default")
+    POL_SetupWindow_wait_next_signal;;
+ 
+    "French")
+    POL_Download "http://media.binu.com/12630290/stream/98566922123-5e1b18c4c6a6d316/MotvLOC.dll" "53c8f62a2d3d2385dc5b62ad5636a59e";;
+ 
+    "German")
+    POL_Download "http://media.binu.com/12630290/stream/98566922572-3bd318565e4adbe5/MotvLOC.dll" "ad4f646965049ffeeef9892768c8f41b";;
+ 
+    "Hungarian")
+    POL_Download "http://media.binu.com/12630290/stream/98566921834-3341f6f048384ec7/MotvLOC.dll" "96acbeea725f6539263e9d716a379985";;
+ 
+    "Italian")
+    POL_Download "http://media.binu.com/12630290/stream/98566921653-ec6826e925952de7/MotvLOC.dll" "e65ac42b6b06866dd558d5916e918b9d";;
+ 
+    "Portuguese")
+    POL_Download "http://media.binu.com/12630290/stream/98566921226-69421f032498c970/MotvLOC.dll" "ca4791dad5f5b19148f52c2e4fd5c71a";;
+ 
+    "Russian")
+    POL_Download "http://media.binu.com/12630290/stream/98566921112-a45a1d12ee0fb7f1/MotvLOC.dll" "2829de4f938f8b60408b4fd2fdce3759";;
+ 
+    "Spanish")
+    POL_Download "http://media.binu.com/12630290/stream/98566922293-50905d7b2216bfec/MotvLOC.dll" "c48fb0066e9c45293487cf955196befd";;
+ 
+    "Turkish")
+    POL_Download "http://media.binu.com/12630290/stream/98566920860-a9be4c2a4041cadb/MotvLOC.dll" "b3047242bf07affee0d4ce84bfc00b2b";;
+    *)
+    exit 1 ;;
+esac
 
+POL_SetupWindow_message "$TITLE has been successfully installed." "$TITLE"
+POL_Wine_WaitExit "$TITLE"
 POL_SetupWindow_Close
 exit
\ No newline at end of file

New source code

# !/usr/bin/env playonlinux-bash
# CHANGELOG
# [Ueliton] (2015-04-00)
# Correction, script not working
# Changed PREFIX
# Added install method Local
# Changed link download + md5
# Added version 4.1.0
# Added translations for version 4.1.0 and 4.1.2
# **PlayOnLinux 4.2.8**
# Wine version used: 1.7.28
# Distribution used to test: openSUSE 13.2 x86_64
# MemoriesOnTV versions used to test: 4.1.0 and 4.1.2
# Author: Ueliton
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
# Variables -------------
AUTHOR="Ueliton"
CODEJAM_SERVER="http://www.codejam.com"
TITLE="MemoriesOnTV"
PREFIX="Codejam"
WORKING_WINE_VERSION="1.7.28"
TEXT_INSTRUCTIONS="\nDuring installation please Deselect Creation of Icon/Launcher\nDo Not let restart."
TITLE="MemoriesOnTV"
WORKING_WINE_VERSION="1.7.28"

POL_GetSetupImages "http://media.binu.com/12630290/stream/98566919529-bc3ea21614e0fdc4/top.png" "http://media.binu.com/12630290/stream/98566920171-18ead4c77c3f40da/left.png" "$TITLE"
 
POL_SetupWindow_Init
POL_SetupWindow_SetID 2531
# Enable debugging
POL_Debug_Init
# Presentation
POL_SetupWindow_presentation "$TITLE" "Codejam Pte Ltd" "$CODEJAM_SERVER" "$AUTHOR" "$PREFIX"
# Creating Temp directory
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"

POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"

# Installation Method DOWNLOAD
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    POL_SetupWindow_menu "$(eval_gettext 'What version do you want to install?')" "Version Selection" \
    "4.1.2|4.1.0" "|"
case "$APP_ANSWER" in
    "4.1.2")
        DOWNLOAD_LINK="http://media.binu.com/12630290/stream/98566924702-1e5186bca8f75fca/motv412.exe"
        MD5SUM="277a4be8e2c6746332f04791e853f03f";;
    "4.1.0")
        DOWNLOAD_LINK="http://media.binu.com/12630290/stream/98566923396-96ea64f3a1aa2fd0/motv410.exe"
        MD5SUM="d1ea7b849cb22b7fc1edc7b5c7b6f47c";;
        *)
        exit 1 ;;
esac
    cd "$POL_System_TmpDir"
    POL_Download "$DOWNLOAD_LINK" "$MD5SUM"
    POL_SetupWindow_message "$(eval_gettext 'When installing, be sure not to let MemoriesOnTV restart, so the POL setup can complete.')" "$TITLE"
    POL_Wine_WaitBefore "$TITLE"
    EXE_FILE="${DOWNLOAD_LINK##*/}"
    POL_Wine start /unix ${EXE_FILE}
    POL_Wine_WaitExit "$TITLE"
fi
    
# Installation Method LOCAL
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    cd "$HOME"
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
    POL_SetupWindow_message "$(eval_gettext 'When installing, be sure not to let MemoriesOnTV restart, so the POL setup can complete.')" "$TITLE"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$APP_ANSWER"
    POL_Wine_WaitExit "$TITLE"
fi

# Selection and configuration of DLL language:
cd ~/.PlayOn*/wineprefix/Codejam/drive_c/Program\ Files/MemoriesOnTV*
mv MotvLOC.dll MotvLOC_Old.dll
POL_SetupWindow_menu "$(eval_gettext 'Select a language:')" "$TITLE" \
"Default|Dutch|French|German|Hungarian|Italian|Portuguese|Russian|Spanish|Turkish" "|"
 
# Selection and configuration of DLL language:
case "$APP_ANSWER" in
    "Dutch")
     POL_Download "http://media.binu.com/12630290/stream/98566921347-5bd53571b9788463/MotvLOC.dll" "36fecb8db3888ef75ddfdca19394b3f8";;
 
    "Default")
    POL_SetupWindow_wait_next_signal;;
 
    "French")
    POL_Download "http://media.binu.com/12630290/stream/98566922123-5e1b18c4c6a6d316/MotvLOC.dll" "53c8f62a2d3d2385dc5b62ad5636a59e";;
 
    "German")
    POL_Download "http://media.binu.com/12630290/stream/98566922572-3bd318565e4adbe5/MotvLOC.dll" "ad4f646965049ffeeef9892768c8f41b";;
 
    "Hungarian")
    POL_Download "http://media.binu.com/12630290/stream/98566921834-3341f6f048384ec7/MotvLOC.dll" "96acbeea725f6539263e9d716a379985";;
 
    "Italian")
    POL_Download "http://media.binu.com/12630290/stream/98566921653-ec6826e925952de7/MotvLOC.dll" "e65ac42b6b06866dd558d5916e918b9d";;
 
    "Portuguese")
    POL_Download "http://media.binu.com/12630290/stream/98566921226-69421f032498c970/MotvLOC.dll" "ca4791dad5f5b19148f52c2e4fd5c71a";;
 
    "Russian")
    POL_Download "http://media.binu.com/12630290/stream/98566921112-a45a1d12ee0fb7f1/MotvLOC.dll" "2829de4f938f8b60408b4fd2fdce3759";;
 
    "Spanish")
    POL_Download "http://media.binu.com/12630290/stream/98566922293-50905d7b2216bfec/MotvLOC.dll" "c48fb0066e9c45293487cf955196befd";;
 
    "Turkish")
    POL_Download "http://media.binu.com/12630290/stream/98566920860-a9be4c2a4041cadb/MotvLOC.dll" "b3047242bf07affee0d4ce84bfc00b2b";;
    *)
    exit 1 ;;
esac

POL_SetupWindow_message "$TITLE has been successfully installed." "$TITLE"
POL_Wine_WaitExit "$TITLE"
POL_SetupWindow_Close
exit

Replies

Monday 1 June 2015 at 22:56
You need to resize the fonts in the description, because they are very large.
Monday 1 June 2015 at 22:58
This are the screenshots:"http://media.binu.com/12630290/stream/98566919891-7143d7fbadfa4693/MemoriesOnTVscreenshot1.png" # MemoriesOnTVscreenshot1.png
"http://media.binu.com/12630290/stream/98566919830-972cda1e62b72640/MemoriesOnTVscreenshot2.png" # MemoriesOnTVscreenshot2.png
"http://media.binu.com/12630290/stream/98566919747-b3dd760eb02d2e66/MemoriesOnTVscreenshot3.png" # MemoriesOnTVscreenshot3.png
"http://media.binu.com/12630290/stream/98566919633-b06b5541a62ed438/MemoriesOnTVscreenshot4.png" # MemoriesOnTVscreenshot4.png
Monday 1 June 2015 at 23:02
The icon that will be used in the PlayOnLinux script list and the site: "http://media.binu.com/12630290/stream/98566920031-169779d3852b32ce/MemoriesOnTV-22x22.png" # MemoriesOnTV-22x22.png

The icon that will be used for the installed program: "http://media.binu.com/12630290/stream/98566919968-1dacb10f0623c67c/MemoriesOnTV-48x48.png" # MemoriesOnTV-48x48.png
Ueliton Wednesday 27 May 2015 at 22:23
Ueliton

Warning

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

Message

MemoriesOnTV

Photo slideshow for the Creative

MemoriesOnTV is our award-winning photo/video slideshow software. This feature-packed program comes with beautiful and elegant pre-built effects that you can use. In addition, the powerful and advanced features and tools allow you to craft your slideshows anyway you want. Let your creativity flow with MemoriesOnTV!

Site: http://www.codejam.com/slideshow/index.htm

Images for description:

http://media.binu.com/2627104/stream/98567242579-b1a59b315fc9a300/PlayonLinux1.png

http://media.binu.com/2627104/stream/98567242602-a383d162a97be62a/PlayonLinux02.png

http://media.binu.com/2627104/stream/98567242622-00482b9bed15a272/PlayonLinux01.png

http://media.binu.com/2627104/stream/98567242651-a07c2f3b3b907aaf/PlayonLinux.png



The icon that will be used for the installed program: 

http://media.binu.com/2627104/stream/98567242699-c6bff625bdb03939/MemoriesOnTV-48x48.png

The icon that will be used in the PlayOnLinux script list and the site:

http://media.binu.com/2627104/stream/98567242944-05d8cccb5f47e507/MemoriesOnTV-22x22.png


Sideways banner that is on the left side of the first window when script is ran:

http://media.binu.com/2627104/stream/98567243430-321cf86b4c9f5ddd/left.png

Top corner Icon for install script:

http://media.binu.com/2627104/stream/98567242677-51de85ddd068f0bc/top.png

Differences

@@ -1,37 +1,159 @@
-#!/usr/bin/env playonlinux-bash
-# Wine version used : 1.7.28
-# Distribution used to test : openSUSE 13.2
-# Author : Ueliton
+# !/usr/bin/env playonlinux-bash
+# PlayOnLinux 4.2.8
+# Wine version used; 1.7.28
+# Distribution used to test; openSUSE 13.2'
+
+# Checking execution of the PlayOnLinux and Loading source libraries
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
- 
+
+# Variables:
 TITLE="MemoriesOnTV"
-PREFIX="memoriesontv"
+PREFIX="wineprefix/default/drive_c/"
+WINE_VERSION="1.7.28"
+AUTHOR="Ueliton"
+CODEJAM_SERVER="http://www.codejam.com"
+TEXT_INSTRUCTIONS="\nDuring installation... \n\nDeselect the options:\n -Create a desktop icon \n -Create a Quick Launch icon
+ \nSelect:\n -No, I will restart the \ncomputer later"
+
+# Initial syntax:
+POL_SetupWindow_Init
+POL_Debug_Init
+
+# Presentation:
+POL_SetupWindow_presentation "$TITLE" 
+"MemoriesOnTV is a program provided by CodeJam Pte Ltd, a tiny company based in tiny Singapore.
+\nCompany Registration No: 200210123R.
+
+\n\nCopyright © 2002-2008 CodeJam, all rights reserved." 
+"$CODEJAM_SERVER" 
+"$AUTHOR" 
 
-# Selection of a prefix for wine and creation
+# Configuring virtual drive:
 POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "1.7.28"
+POL_Wine_PrefixCreate "$WINE_VERSION"
 
-# Create the temp directory
-POL_System_TmpCreate "$PREFIX"
+# Installation Method: 
+POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
+if [ "$INSTALL_METHOD" = "LOCAL" ]; 
+then
+cd "$HOME"
+POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.\n$TEXT_INSTRUCTIONS')" "$TITLE"
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine start /unix "$APP_ANSWER"
+POL_Wine_WaitExit "$TITLE"
 
-# Download installer to the temp directory
+elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]; 
+then
+
+# Create the temp directory:    
+POL_System_TmpCreate "$PREFIX"
+ 
+# Download installer to the temp directory:
 cd "$POL_System_TmpDir"
-POL_Download "http://www.codejam.com/file/motv412.exe"
 
-# Running the instalation file from the temp directory
-POL_SetupWindow_message "$(eval_gettext 'When installing, be sure not to let MemoriesOnTV launch automatically, so the POL setup can complete.')" "$TITLE"
+# Selecting version:
+POL_SetupWindow_menu "$(eval_gettext 'Select a version:')" "$TITLE" "$(eval_gettext '4.1.2(Pro/Home Edition)')~$(eval_gettext '4.1.0(Pro/Home Edition)')~$(eval_gettext '3.1.8(Personal/Pro Edition)')~$(eval_gettext '2.2.1(Personal Edition)')~$(eval_gettext 'PictureToTV 1.4.5(Personal Edition)')" "~"
+
+# By downloading and installing selected:
+case "$APP_ANSWER" in "$(eval_gettext '4.1.2(Pro/Home Edition)')")
+POL_Download "$CODEJAM_SERVER/file/motv412.exe" "277a4be8e2c6746332f04791e853f03f"
+POL_Wine_WaitBefore "$TITLE"
+POL_SetupWindow_message "$(eval_gettext '$TEXT_INSTRUCTIONS')" "$TITLE"
+POL_Wine start /unix "motv412.exe";;
+
+"$(eval_gettext '4.1.0(Pro/Home Edition)')")
+POL_Download "https://sites.google.com/site/myubuntustudio/motv410.exe.tar.gz" "02cc0f082a4f0fda1d533063baf8a4f6"
+tar -vzxf motv410.exe.tar.gz
 POL_Wine_WaitBefore "$TITLE"
-POL_Wine "$POL_System_TmpDir/motv412.exe"
+POL_SetupWindow_message "$(eval_gettext '$TEXT_INSTRUCTIONS')" "$TITLE"
+POL_Wine start /unix "motv410.exe";;
+
+"$(eval_gettext '3.1.8(Personal/Pro Edition)')")
+POL_Download "$CODEJAM_SERVER/file/motv318.exe" "3f7d50933113954fddc294775648bb2b"
+POL_Wine_WaitBefore "$TITLE"
+POL_SetupWindow_message "$(eval_gettext '$TEXT_INSTRUCTIONS')" "$TITLE"
+POL_Wine start /unix "motv318.exe";;
+
+"$(eval_gettext '2.2.1(Personal Edition)')")
+POL_Download "$CODEJAM_SERVER/file/motv221.exe" "1d569cde2ef6076e05a12fa47d7a562a"
+POL_Wine_WaitBefore "$TITLE"
+POL_SetupWindow_message "$(eval_gettext '$TEXT_INSTRUCTIONS')" "$TITLE"
+POL_Wine start /unix "motv221.exe";;
+
+"$(eval_gettext 'PictureToTV 1.4.5(Personal Edition)')")
+POL_Download "$CODEJAM_SERVER/file/p2tv145.exe" "de0d261d897450852c5c0be79036b595"
+POL_Wine_WaitBefore "$TITLE"
+POL_SetupWindow_message "$(eval_gettext '$TEXT_INSTRUCTIONS')" "$TITLE"
+POL_Wine start /unix "p2tv145.exe";;
+esac
 
-# Waiting for the installer to finish
 POL_Wine_WaitExit "$TITLE"
+fi
 
+# Selecting language and downloading DLL to directory MemoriesOnTV:
+cd ~/.PlayOnLinux/wineprefix/wineprefix_default_drive_c_/drive_c/Program\ Files/MemoriesOnTV*
+POL_SetupWindow_menu "$(eval_gettext 'Select a language:')" "$TITLE" "$(eval_gettext 'Dutch(Tino Baanvinger)')~$(eval_gettext 'English(default)')~$(eval_gettext 'French(Wahid Omar)')~$(eval_gettext 'German(Karl Exler)')~$(eval_gettext 'Hungarian(Balazs Fekete)')~$(eval_gettext 'Italian(Dino Termini & Riccardo Nifosi)')~$(eval_gettext 'Portuguese(Telio Oliveira)')~$(eval_gettext 'Russian(Yuri Nazarov)')~$(eval_gettext 'Spanish(Pedro Tenorio)')~$(eval_gettext 'Turkish(Efecan Erdur)')" "~"
+
+# Selection and configuration of DLL language:
+case "$APP_ANSWER" in "$(eval_gettext 'Dutch(Tino Baanvinger)')")
+ POL_Download "$CODEJAM_SERVER/file/MotvNLD.dll" "36fecb8db3888ef75ddfdca19394b3f8"
+mv MotvLOC.dll MotvLOC_Old.dll
+mv MotvNLD.dll MotvLOC.dll;;
+
+"$(eval_gettext 'English(default)')")
+POL_SetupWindow_wait_next_signal;;
+
+"$(eval_gettext 'French(Wahid Omar)')")
+POL_Download "$CODEJAM_SERVER/file/MotvFRA.dll" "53c8f62a2d3d2385dc5b62ad5636a59e"
+mv MotvLOC.dll MotvLOC_Old.dll
+mv MotvFRA.dll MotvLOC.dll;;
+
+"$(eval_gettext 'German(Karl Exler)')")
+POL_Download "$CODEJAM_SERVER/file/MotvDEU.dll" "ad4f646965049ffeeef9892768c8f41b"
+mv MotvLOC.dll MotvLOC_Old.dll
+mv MotvDEU.dll MotvLOC.dll;;
+
+"$(eval_gettext 'Hungarian(Balazs Fekete)')")
+POL_Download "$CODEJAM_SERVER/file/MotvHUN.dll" "96acbeea725f6539263e9d716a379985"
+mv MotvLOC.dll MotvLOC_Old.dll
+mv MotvHUN.dll MotvLOC.dll;;
+
+"$(eval_gettext 'Italian(Dino Termini & Riccardo Nifosi)')")
+POL_Download "$CODEJAM_SERVER/file/MotvITA.dll" "e65ac42b6b06866dd558d5916e918b9d"
+mv MotvLOC.dll MotvLOC_Old.dll
+mv MotvITA.dll MotvLOC.dll;;
+
+"$(eval_gettext 'Portuguese(Telio Oliveira)')")
+POL_Download "$CODEJAM_SERVER/file/MotvPTB.dll" "ca4791dad5f5b19148f52c2e4fd5c71a"
+mv MotvLOC.dll MotvLOC_Old.dll
+mv MotvPTB.dll MotvLOC.dll;;
+
+"$(eval_gettext 'Russian(Yuri Nazarov)')")
+POL_Download "$CODEJAM_SERVER/file/MotvRUS.dll" "2829de4f938f8b60408b4fd2fdce3759"
+mv MotvLOC.dll MotvLOC_Old.dll
+mv MotvRUS.dll MotvLOC.dll;;
+
+"$(eval_gettext 'Spanish(Pedro Tenorio)')")
+POL_Download "$CODEJAM_SERVER/file/MotvESP.dll" "c48fb0066e9c45293487cf955196befd"
+mv MotvLOC.dll MotvLOC_Old.dll
+mv MotvESP.dll MotvLOC.dll;;
+
+"$(eval_gettext 'Turkish(Efecan Erdur)')")
+POL_Download "$CODEJAM_SERVER/file/MotvTRK.dll" "b3047242bf07affee0d4ce84bfc00b2b"
+mv MotvLOC.dll MotvLOC_Old.dll
+mv MotvNLD.dll MotvLOC.dll;;
+esac
+
+# Waiting set DLL to finish
+POL_Wine_WaitExit "$TITLE"
+ 
 # Delete temp directory
 POL_System_TmpDelete
-
+ 
 # Create a launcher
 POL_Shortcut "Motv.exe" "$TITLE"
 
+POL_SetupWindow_message "MemoriesOnTV has been installed successfully" "$TITLE"
 POL_SetupWindow_Close
 exit
\ No newline at end of file

New source code

# !/usr/bin/env playonlinux-bash
# PlayOnLinux 4.2.8
# Wine version used; 1.7.28
# Distribution used to test; openSUSE 13.2'

# Checking execution of the PlayOnLinux and Loading source libraries
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

# Variables:
TITLE="MemoriesOnTV"
PREFIX="wineprefix/default/drive_c/"
WINE_VERSION="1.7.28"
AUTHOR="Ueliton"
CODEJAM_SERVER="http://www.codejam.com"
TEXT_INSTRUCTIONS="\nDuring installation... \n\nDeselect the options:\n -Create a desktop icon \n -Create a Quick Launch icon
 \nSelect:\n -No, I will restart the \ncomputer later"

# Initial syntax:
POL_SetupWindow_Init
POL_Debug_Init

# Presentation:
POL_SetupWindow_presentation "$TITLE" 
"MemoriesOnTV is a program provided by CodeJam Pte Ltd, a tiny company based in tiny Singapore.
\nCompany Registration No: 200210123R.

\n\nCopyright © 2002-2008 CodeJam, all rights reserved." 
"$CODEJAM_SERVER" 
"$AUTHOR" 

# Configuring virtual drive:
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINE_VERSION"

# Installation Method: 
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
if [ "$INSTALL_METHOD" = "LOCAL" ]; 
then
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.\n$TEXT_INSTRUCTIONS')" "$TITLE"
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE"

elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]; 
then

# Create the temp directory:    
POL_System_TmpCreate "$PREFIX"
 
# Download installer to the temp directory:
cd "$POL_System_TmpDir"

# Selecting version:
POL_SetupWindow_menu "$(eval_gettext 'Select a version:')" "$TITLE" "$(eval_gettext '4.1.2(Pro/Home Edition)')~$(eval_gettext '4.1.0(Pro/Home Edition)')~$(eval_gettext '3.1.8(Personal/Pro Edition)')~$(eval_gettext '2.2.1(Personal Edition)')~$(eval_gettext 'PictureToTV 1.4.5(Personal Edition)')" "~"

# By downloading and installing selected:
case "$APP_ANSWER" in "$(eval_gettext '4.1.2(Pro/Home Edition)')")
POL_Download "$CODEJAM_SERVER/file/motv412.exe" "277a4be8e2c6746332f04791e853f03f"
POL_Wine_WaitBefore "$TITLE"
POL_SetupWindow_message "$(eval_gettext '$TEXT_INSTRUCTIONS')" "$TITLE"
POL_Wine start /unix "motv412.exe";;

"$(eval_gettext '4.1.0(Pro/Home Edition)')")
POL_Download "https://sites.google.com/site/myubuntustudio/motv410.exe.tar.gz" "02cc0f082a4f0fda1d533063baf8a4f6"
tar -vzxf motv410.exe.tar.gz
POL_Wine_WaitBefore "$TITLE"
POL_SetupWindow_message "$(eval_gettext '$TEXT_INSTRUCTIONS')" "$TITLE"
POL_Wine start /unix "motv410.exe";;

"$(eval_gettext '3.1.8(Personal/Pro Edition)')")
POL_Download "$CODEJAM_SERVER/file/motv318.exe" "3f7d50933113954fddc294775648bb2b"
POL_Wine_WaitBefore "$TITLE"
POL_SetupWindow_message "$(eval_gettext '$TEXT_INSTRUCTIONS')" "$TITLE"
POL_Wine start /unix "motv318.exe";;

"$(eval_gettext '2.2.1(Personal Edition)')")
POL_Download "$CODEJAM_SERVER/file/motv221.exe" "1d569cde2ef6076e05a12fa47d7a562a"
POL_Wine_WaitBefore "$TITLE"
POL_SetupWindow_message "$(eval_gettext '$TEXT_INSTRUCTIONS')" "$TITLE"
POL_Wine start /unix "motv221.exe";;

"$(eval_gettext 'PictureToTV 1.4.5(Personal Edition)')")
POL_Download "$CODEJAM_SERVER/file/p2tv145.exe" "de0d261d897450852c5c0be79036b595"
POL_Wine_WaitBefore "$TITLE"
POL_SetupWindow_message "$(eval_gettext '$TEXT_INSTRUCTIONS')" "$TITLE"
POL_Wine start /unix "p2tv145.exe";;
esac

POL_Wine_WaitExit "$TITLE"
fi

# Selecting language and downloading DLL to directory MemoriesOnTV:
cd ~/.PlayOnLinux/wineprefix/wineprefix_default_drive_c_/drive_c/Program\ Files/MemoriesOnTV*
POL_SetupWindow_menu "$(eval_gettext 'Select a language:')" "$TITLE" "$(eval_gettext 'Dutch(Tino Baanvinger)')~$(eval_gettext 'English(default)')~$(eval_gettext 'French(Wahid Omar)')~$(eval_gettext 'German(Karl Exler)')~$(eval_gettext 'Hungarian(Balazs Fekete)')~$(eval_gettext 'Italian(Dino Termini & Riccardo Nifosi)')~$(eval_gettext 'Portuguese(Telio Oliveira)')~$(eval_gettext 'Russian(Yuri Nazarov)')~$(eval_gettext 'Spanish(Pedro Tenorio)')~$(eval_gettext 'Turkish(Efecan Erdur)')" "~"

# Selection and configuration of DLL language:
case "$APP_ANSWER" in "$(eval_gettext 'Dutch(Tino Baanvinger)')")
 POL_Download "$CODEJAM_SERVER/file/MotvNLD.dll" "36fecb8db3888ef75ddfdca19394b3f8"
mv MotvLOC.dll MotvLOC_Old.dll
mv MotvNLD.dll MotvLOC.dll;;

"$(eval_gettext 'English(default)')")
POL_SetupWindow_wait_next_signal;;

"$(eval_gettext 'French(Wahid Omar)')")
POL_Download "$CODEJAM_SERVER/file/MotvFRA.dll" "53c8f62a2d3d2385dc5b62ad5636a59e"
mv MotvLOC.dll MotvLOC_Old.dll
mv MotvFRA.dll MotvLOC.dll;;

"$(eval_gettext 'German(Karl Exler)')")
POL_Download "$CODEJAM_SERVER/file/MotvDEU.dll" "ad4f646965049ffeeef9892768c8f41b"
mv MotvLOC.dll MotvLOC_Old.dll
mv MotvDEU.dll MotvLOC.dll;;

"$(eval_gettext 'Hungarian(Balazs Fekete)')")
POL_Download "$CODEJAM_SERVER/file/MotvHUN.dll" "96acbeea725f6539263e9d716a379985"
mv MotvLOC.dll MotvLOC_Old.dll
mv MotvHUN.dll MotvLOC.dll;;

"$(eval_gettext 'Italian(Dino Termini & Riccardo Nifosi)')")
POL_Download "$CODEJAM_SERVER/file/MotvITA.dll" "e65ac42b6b06866dd558d5916e918b9d"
mv MotvLOC.dll MotvLOC_Old.dll
mv MotvITA.dll MotvLOC.dll;;

"$(eval_gettext 'Portuguese(Telio Oliveira)')")
POL_Download "$CODEJAM_SERVER/file/MotvPTB.dll" "ca4791dad5f5b19148f52c2e4fd5c71a"
mv MotvLOC.dll MotvLOC_Old.dll
mv MotvPTB.dll MotvLOC.dll;;

"$(eval_gettext 'Russian(Yuri Nazarov)')")
POL_Download "$CODEJAM_SERVER/file/MotvRUS.dll" "2829de4f938f8b60408b4fd2fdce3759"
mv MotvLOC.dll MotvLOC_Old.dll
mv MotvRUS.dll MotvLOC.dll;;

"$(eval_gettext 'Spanish(Pedro Tenorio)')")
POL_Download "$CODEJAM_SERVER/file/MotvESP.dll" "c48fb0066e9c45293487cf955196befd"
mv MotvLOC.dll MotvLOC_Old.dll
mv MotvESP.dll MotvLOC.dll;;

"$(eval_gettext 'Turkish(Efecan Erdur)')")
POL_Download "$CODEJAM_SERVER/file/MotvTRK.dll" "b3047242bf07affee0d4ce84bfc00b2b"
mv MotvLOC.dll MotvLOC_Old.dll
mv MotvNLD.dll MotvLOC.dll;;
esac

# Waiting set DLL to finish
POL_Wine_WaitExit "$TITLE"
 
# Delete temp directory
POL_System_TmpDelete
 
# Create a launcher
POL_Shortcut "Motv.exe" "$TITLE"

POL_SetupWindow_message "MemoriesOnTV has been installed successfully" "$TITLE"
POL_SetupWindow_Close
exit

Replies

Ueliton Monday 25 May 2015 at 23:01
Ueliton

Warning

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

Differences

@@ -0,0 +1,37 @@
+#!/usr/bin/env playonlinux-bash
+# Wine version used : 1.7.28
+# Distribution used to test : openSUSE 13.2
+# Author : Ueliton
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="MemoriesOnTV"
+PREFIX="memoriesontv"
+
+# Selection of a prefix for wine and creation
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "1.7.28"
+
+# Create the temp directory
+POL_System_TmpCreate "$PREFIX"
+
+# Download installer to the temp directory
+cd "$POL_System_TmpDir"
+POL_Download "http://www.codejam.com/file/motv412.exe"
+
+# Running the instalation file from the temp directory
+POL_SetupWindow_message "$(eval_gettext 'When installing, be sure not to let MemoriesOnTV launch automatically, so the POL setup can complete.')" "$TITLE"
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine "$POL_System_TmpDir/motv412.exe"
+
+# Waiting for the installer to finish
+POL_Wine_WaitExit "$TITLE"
+
+# Delete temp directory
+POL_System_TmpDelete
+
+# Create a launcher
+POL_Shortcut "Motv.exe" "$TITLE"
+
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Wine version used : 1.7.28
# Distribution used to test : openSUSE 13.2
# Author : Ueliton
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="MemoriesOnTV"
PREFIX="memoriesontv"

# Selection of a prefix for wine and creation
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "1.7.28"

# Create the temp directory
POL_System_TmpCreate "$PREFIX"

# Download installer to the temp directory
cd "$POL_System_TmpDir"
POL_Download "http://www.codejam.com/file/motv412.exe"

# Running the instalation file from the temp directory
POL_SetupWindow_message "$(eval_gettext 'When installing, be sure not to let MemoriesOnTV launch automatically, so the POL setup can complete.')" "$TITLE"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$POL_System_TmpDir/motv412.exe"

# Waiting for the installer to finish
POL_Wine_WaitExit "$TITLE"

# Delete temp directory
POL_System_TmpDelete

# Create a launcher
POL_Shortcut "Motv.exe" "$TITLE"

POL_SetupWindow_Close
exit

Replies

Ueliton Sunday 24 May 2015 at 19:07
Ueliton

Message

Add DLL overrides in winecfg:

-gdplus(native, builtin)
-riched20(native, builtin)

Add Windows DLL with POL:

-dotnet 20
-msxml 3
-msxml 6

Replies

Ueliton Sunday 24 May 2015 at 18:45
Ueliton

Message

Someone can help do this script?
#Program name: MemoriesOnTV
# Program version: 4.1.2 Pro, work well with 4.1.0 too
#wine version used 1.7.28(System)
#Distribution used to test: openSUSE 13.2
#.exe download: http://www.codejam.com/file/motv412.exe

#After instalation, for translate, rename the file MotvLOC.dll to MotvLOC_old.dll, and rename the above downloaded file to MotvLOC.dll
Files options for translate:
Dutch(Tino Baanvinger): http://www.codejam.com/file/MotvNLD.dll
French(Wahid Omar): http://www.codejam.com/file/MotvFRA.dll
German(karl Exler): http://www.codejam.com/file/MotvDEU.dll
Hungarian(Balazs Fekete): http://www.codejam.com/file/MotvHUN.dll
Italian(Dino Termini & Riccardo Nifosi): http://www.codejam.com/file/MotvITA.dll
Portuguese(Telio Oliveira): http://www.codejam.com/file/MotvPTB.dll
Russian(Yuri Nazarov): http://www.codejam.com/file/MotvRUS.dll
Spanish(Pedro Tenorio): http://www.codejam.com/file/MotvESP.dll
Turkish(Efecan Erdur): http://www.codejam.com/file/MotvTRK.dll

Replies

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