Captvty

Informations

Creator Message
Dadu042
Moderator

Warning

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

Informations

Platforms:
Downloads: 1958
Wine: 4.0.2

Feedbacks

Description

For french TV : it allow to download replay TV programs from the websites of the TV channels (that usually only allow to view, not to download).

"Accédez, depuis un point unique grâce à Captvty, aux directs et à une multitude d’émissions proposées au rattrapage par différentes chaînes de télévision."

 

Website.

Screenshots

MiniatureMiniature

Source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-05-14 09:08)
# Last revision : See changelog below
# Wine version used : see below
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
#
# Software used to write the script : Captvty v2.8.2 (2019)
# Software based on : MS VisualBasic, MS DotNet.
#
#
# CHANGELOG
# [Dadu042] (2019-05-14 09:08)
#   First version.
# [Dadu042] (2019-07-14 12:43) 
#   Add GDIplus (useless). 
#   Add more comments.
# [Dadu042] (2019-07-14 14:24)
#   Software started without crashing ("CLR error: 80004005"). Fix is Dotnet461 (instead of Dotnet40), very long to install (30 min?).
# [Dadu042] (2019-07-14 19:07)
#   Translate some parts to french because this software is only for french speakers.
# [Dadu042] (2019-09-20)
#   Wine 4.0.1 -> 4.0.2
#   Fix path name.
#   winxp -> win7.
#   Add warning about Dotnet461 that might never end.
#
# KNOWN ISSUES :
# - "CLR error: 80004005. The program will now terminate.": s'ouvre aussitôt l'appli lancée 
#   (arrive avec Captvty v2.7.13, v2.7.15. Wine v4.0.1, 4.12.1)  OK avec Dotnet461 (+ wine 4.12.1) au liee de Dotnet40.
# - "Ouvrir le dossier l'emplacement du fichier" (via clic droit) plante l'appli ("Erreur inattendue"). Arrive avec Wine 4.0.1 et 4.12.1 sans aucun Vcrun d'installé.
#
 
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Captvty"
PREFIX="captvty"
WORKING_WINE_VERSION="4.0.2"
AUTHOR="Dadu042"
EDITOR="Guillaume"
GAME_URL="https://captvty.fr"
APP_ID="2795"
 
POL_SetupWindow_Init
POL_Debug_Init
    
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
    
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"
 
Set_OS "win7"
 
# POL_SetupWindow_message  "Please note: once installed the program does not run.\n" "$TITLE"
 
###############
# Go          #
###############
 
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup ZIP file to extract.')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
 
cd "$POL_System_TmpDir"
TARGET_DIR="$WINEPREFIX/drive_c/CapTvTy"
mkdir -p "$TARGET_DIR"
cd "$TARGET_DIR"
 
POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE"
 
POL_System_unzip "$APP_ANSWER" -d "$WINEPREFIX/drive_c/CapTvTy/"
 
POL_Shortcut "Captvty.exe" "$TITLE" "" "" "AudioVideo;"
 
 
# Seem useless
# POL_Call POL_Install_gdiplus

POL_SetupWindow_message  "Attention: si l'installation de Dotnet ne se termine jamais, patientez plusieurs minutes (ex: 20) puis fermez la fenêtre.\n\nWarning: If the installation of DotNet never end, wait many minutes (ie: 20) then close the window." "$TITLE"
POL_Call POL_Install_dotnet461
# POL_Call POL_Install_dotnet40
 
# Should be usefull for msvcr90.dll, file located inside /tools/
# POL_Call POL_Install_vcrun2005
 
# Should be usefull for msvcr100.dll, file located inside /tools/
# POL_Call POL_Install_vcrun2010
 
# To add ?: a option to upgrade the software (it is provided as a .ZIP).
 
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Friday 20 September 2019 at 13:48
Dadu042
Moderator

Information

This update has been approved by the team.

Message

Testé avec v2.8.2

 

To do list :

  • Trouver le moyen de sauvegarder automatiquement les vidéos dans  ~/home/Vidéos/

Differences

@@ -2,14 +2,14 @@
 # Date : (2019-05-14 09:08)
 # Last revision : See changelog below
 # Wine version used : see below
-# Distribution used to test : XUbuntu 19.04 x64
+# Distribution used to test : Ubuntu 18.04 x64
 # Script licence : GPL3
 # Program licence : Retail
 #
 # Playonlinux version used : 4.3.4
 #
-# Software used to write the script : Captvty v2.7.15 (2019)
-# Based on : MS VisualBasic.
+# Software used to write the script : Captvty v2.8.2 (2019)
+# Software based on : MS VisualBasic, MS DotNet.
 #
 #
 # CHANGELOG
@@ -19,77 +19,82 @@
 #   Add GDIplus (useless). 
 #   Add more comments.
 # [Dadu042] (2019-07-14 14:24)
-#   Software started without crashing ("CLR error: 80004005"). Fix is Dotnet461 (instead of Dotnet40), very long to install (30 min?).
+#   Software started without crashing ("CLR error: 80004005"). Fix is Dotnet461 (instead of Dotnet40), very long to install (30 min?).
 # [Dadu042] (2019-07-14 19:07)
-#   Translate some parts to french because this software is only for french speakers.
+#   Translate some parts to french because this software is only for french speakers.
+# [Dadu042] (2019-09-20)
+#   Wine 4.0.1 -> 4.0.2
+#   Fix path name.
+#   winxp -> win7.
+#   Add warning about Dotnet461 that might never end.
 #
 # KNOWN ISSUES :
-# - "CLR error: 80004005. The program will now terminate.": s'ouvre aussitôt l'appli lancée 
-#   (arrive avec Captvty v2.7.13, v2.7.15. Wine v4.0.1, 4.12.1)  OK avec Dotnet461 (+ wine 4.12.1) au liee de Dotnet40.
+# - "CLR error: 80004005. The program will now terminate.": s'ouvre aussitôt l'appli lancée 
+#   (arrive avec Captvty v2.7.13, v2.7.15. Wine v4.0.1, 4.12.1)  OK avec Dotnet461 (+ wine 4.12.1) au liee de Dotnet40.
 # - "Ouvrir le dossier l'emplacement du fichier" (via clic droit) plante l'appli ("Erreur inattendue"). Arrive avec Wine 4.0.1 et 4.12.1 sans aucun Vcrun d'installé.
 #
-
-
+ 
+ 
 [ -z "$PLAYONLINUX" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
- 
+  
 TITLE="Captvty"
 PREFIX="captvty"
-WORKING_WINE_VERSION="4.0.1"
+WORKING_WINE_VERSION="4.0.2"
 AUTHOR="Dadu042"
 EDITOR="Guillaume"
 GAME_URL="https://captvty.fr"
 APP_ID="2795"
-
+ 
 POL_SetupWindow_Init
 POL_Debug_Init
-   
+    
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-   
+    
 POL_Wine_SelectPrefix "$PREFIX"
 POL_System_SetArch "x86"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 POL_System_TmpCreate "$TITLE"
-
-Set_OS "winxp"
-
-# POL_SetupWindow_message  "Please note: once installed the program does not run.\n" "$TITLE"
-
+ 
+Set_OS "win7"
+ 
+# POL_SetupWindow_message  "Please note: once installed the program does not run.\n" "$TITLE"
+ 
 ###############
 # Go          #
 ###############
-
+ 
 cd "$HOME"
 POL_SetupWindow_browse "$(eval_gettext 'Please select the setup ZIP file to extract.')" "$TITLE"
 SETUP_EXE="$APP_ANSWER"
-
+ 
 cd "$POL_System_TmpDir"
 TARGET_DIR="$WINEPREFIX/drive_c/CapTvTy"
 mkdir -p "$TARGET_DIR"
 cd "$TARGET_DIR"
-
+ 
 POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE"
-
-POL_System_unzip "$APP_ANSWER" -d "$WINEPREFIX/drive_c/"
-
+ 
+POL_System_unzip "$APP_ANSWER" -d "$WINEPREFIX/drive_c/CapTvTy/"
+ 
 POL_Shortcut "Captvty.exe" "$TITLE" "" "" "AudioVideo;"
-
-
-# Seem useless
+ 
+ 
+# Seem useless
 # POL_Call POL_Install_gdiplus
 
-# POL_SetupWindow_message  "Warning: If the installation of DotNet never end, wait many minutes." "$TITLE"
+POL_SetupWindow_message  "Attention: si l'installation de Dotnet ne se termine jamais, patientez plusieurs minutes (ex: 20) puis fermez la fenêtre.\n\nWarning: If the installation of DotNet never end, wait many minutes (ie: 20) then close the window." "$TITLE"
 POL_Call POL_Install_dotnet461
-# POL_Call POL_Install_dotnet40
-
-# Should be usefull for msvcr90.dll, file located inside /tools/
-# POL_Call POL_Install_vcrun2005
-
-# Should be usefull for msvcr100.dll, file located inside /tools/
-# POL_Call POL_Install_vcrun2010
-
+# POL_Call POL_Install_dotnet40
+ 
+# Should be usefull for msvcr90.dll, file located inside /tools/
+# POL_Call POL_Install_vcrun2005
+ 
+# Should be usefull for msvcr100.dll, file located inside /tools/
+# POL_Call POL_Install_vcrun2010
+ 
 # To add ?: a option to upgrade the software (it is provided as a .ZIP).
-
+ 
 POL_System_TmpDelete
 POL_SetupWindow_Close
 exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-05-14 09:08)
# Last revision : See changelog below
# Wine version used : see below
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
#
# Software used to write the script : Captvty v2.8.2 (2019)
# Software based on : MS VisualBasic, MS DotNet.
#
#
# CHANGELOG
# [Dadu042] (2019-05-14 09:08)
#   First version.
# [Dadu042] (2019-07-14 12:43) 
#   Add GDIplus (useless). 
#   Add more comments.
# [Dadu042] (2019-07-14 14:24)
#   Software started without crashing ("CLR error: 80004005"). Fix is Dotnet461 (instead of Dotnet40), very long to install (30 min?).
# [Dadu042] (2019-07-14 19:07)
#   Translate some parts to french because this software is only for french speakers.
# [Dadu042] (2019-09-20)
#   Wine 4.0.1 -> 4.0.2
#   Fix path name.
#   winxp -> win7.
#   Add warning about Dotnet461 that might never end.
#
# KNOWN ISSUES :
# - "CLR error: 80004005. The program will now terminate.": s'ouvre aussitôt l'appli lancée 
#   (arrive avec Captvty v2.7.13, v2.7.15. Wine v4.0.1, 4.12.1)  OK avec Dotnet461 (+ wine 4.12.1) au liee de Dotnet40.
# - "Ouvrir le dossier l'emplacement du fichier" (via clic droit) plante l'appli ("Erreur inattendue"). Arrive avec Wine 4.0.1 et 4.12.1 sans aucun Vcrun d'installé.
#
 
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Captvty"
PREFIX="captvty"
WORKING_WINE_VERSION="4.0.2"
AUTHOR="Dadu042"
EDITOR="Guillaume"
GAME_URL="https://captvty.fr"
APP_ID="2795"
 
POL_SetupWindow_Init
POL_Debug_Init
    
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
    
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"
 
Set_OS "win7"
 
# POL_SetupWindow_message  "Please note: once installed the program does not run.\n" "$TITLE"
 
###############
# Go          #
###############
 
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup ZIP file to extract.')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
 
cd "$POL_System_TmpDir"
TARGET_DIR="$WINEPREFIX/drive_c/CapTvTy"
mkdir -p "$TARGET_DIR"
cd "$TARGET_DIR"
 
POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE"
 
POL_System_unzip "$APP_ANSWER" -d "$WINEPREFIX/drive_c/CapTvTy/"
 
POL_Shortcut "Captvty.exe" "$TITLE" "" "" "AudioVideo;"
 
 
# Seem useless
# POL_Call POL_Install_gdiplus

POL_SetupWindow_message  "Attention: si l'installation de Dotnet ne se termine jamais, patientez plusieurs minutes (ex: 20) puis fermez la fenêtre.\n\nWarning: If the installation of DotNet never end, wait many minutes (ie: 20) then close the window." "$TITLE"
POL_Call POL_Install_dotnet461
# POL_Call POL_Install_dotnet40
 
# Should be usefull for msvcr90.dll, file located inside /tools/
# POL_Call POL_Install_vcrun2005
 
# Should be usefull for msvcr100.dll, file located inside /tools/
# POL_Call POL_Install_vcrun2010
 
# To add ?: a option to upgrade the software (it is provided as a .ZIP).
 
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Edited by Dadu042

Dadu042 Tuesday 23 July 2019 at 7:03
Dadu042
Moderator

Message

OK pour Captvty v2.8(.0), bien que j'ai eu finalement à fermer la fenêtre d'installation après 20 min sans que le script ne veuille se terminer.

 

To do list :

  • Réparer : TARGET_DIR (pour unzip).
  • Trouver le moyen de sauvegarder automatiquement les vidéos dans  ~/home/Vidéos/

Replies

Edited by Dadu042

Dadu042 Sunday 14 July 2019 at 19:07
Dadu042
Moderator

Warning

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

Message

Non testés (et sans doute non fonctionnels) : onglet "Conversion" et "Enregistrement en direct".

Differences

@@ -2,7 +2,7 @@
 # Date : (2019-05-14 09:08)
 # Last revision : See changelog below
 # Wine version used : see below
-# Distribution used to test : Ubuntu 19.04 x64
+# Distribution used to test : XUbuntu 19.04 x64
 # Script licence : GPL3
 # Program licence : Retail
 #
@@ -20,11 +20,16 @@
 #   Add more comments.
 # [Dadu042] (2019-07-14 14:24)
 #   Software started without crashing ("CLR error: 80004005"). Fix is Dotnet461 (instead of Dotnet40), very long to install (30 min?).
+# [Dadu042] (2019-07-14 19:07)
+#   Translate some parts to french because this software is only for french speakers.
 #
 # KNOWN ISSUES :
-# - As soon as it start, error window "CLR error: 80004005. The program will now terminate." 
-#   (Occurs with Captvty v2.7.13, v2.7.15. Wine v4.0.1, 4.12.1)  OK with Dotnet461 (+ wine 4.12.1) instead of Dotnet40.
- 
+# - "CLR error: 80004005. The program will now terminate.": s'ouvre aussitôt l'appli lancée 
+#   (arrive avec Captvty v2.7.13, v2.7.15. Wine v4.0.1, 4.12.1)  OK avec Dotnet461 (+ wine 4.12.1) au liee de Dotnet40.
+# - "Ouvrir le dossier l'emplacement du fichier" (via clic droit) plante l'appli ("Erreur inattendue"). Arrive avec Wine 4.0.1 et 4.12.1 sans aucun Vcrun d'installé.
+#
+
+
 [ -z "$PLAYONLINUX" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
  

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-05-14 09:08)
# Last revision : See changelog below
# Wine version used : see below
# Distribution used to test : XUbuntu 19.04 x64
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
#
# Software used to write the script : Captvty v2.7.15 (2019)
# Based on : MS VisualBasic.
#
#
# CHANGELOG
# [Dadu042] (2019-05-14 09:08)
#   First version.
# [Dadu042] (2019-07-14 12:43) 
#   Add GDIplus (useless). 
#   Add more comments.
# [Dadu042] (2019-07-14 14:24)
#   Software started without crashing ("CLR error: 80004005"). Fix is Dotnet461 (instead of Dotnet40), very long to install (30 min?).
# [Dadu042] (2019-07-14 19:07)
#   Translate some parts to french because this software is only for french speakers.
#
# KNOWN ISSUES :
# - "CLR error: 80004005. The program will now terminate.": s'ouvre aussitôt l'appli lancée 
#   (arrive avec Captvty v2.7.13, v2.7.15. Wine v4.0.1, 4.12.1)  OK avec Dotnet461 (+ wine 4.12.1) au liee de Dotnet40.
# - "Ouvrir le dossier l'emplacement du fichier" (via clic droit) plante l'appli ("Erreur inattendue"). Arrive avec Wine 4.0.1 et 4.12.1 sans aucun Vcrun d'installé.
#


[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Captvty"
PREFIX="captvty"
WORKING_WINE_VERSION="4.0.1"
AUTHOR="Dadu042"
EDITOR="Guillaume"
GAME_URL="https://captvty.fr"
APP_ID="2795"

POL_SetupWindow_Init
POL_Debug_Init
   
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
   
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"

Set_OS "winxp"

# POL_SetupWindow_message  "Please note: once installed the program does not run.\n" "$TITLE"

###############
# Go          #
###############

cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup ZIP file to extract.')" "$TITLE"
SETUP_EXE="$APP_ANSWER"

cd "$POL_System_TmpDir"
TARGET_DIR="$WINEPREFIX/drive_c/CapTvTy"
mkdir -p "$TARGET_DIR"
cd "$TARGET_DIR"

POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE"

POL_System_unzip "$APP_ANSWER" -d "$WINEPREFIX/drive_c/"

POL_Shortcut "Captvty.exe" "$TITLE" "" "" "AudioVideo;"


# Seem useless
# POL_Call POL_Install_gdiplus

# POL_SetupWindow_message  "Warning: If the installation of DotNet never end, wait many minutes." "$TITLE"
POL_Call POL_Install_dotnet461
# POL_Call POL_Install_dotnet40

# Should be usefull for msvcr90.dll, file located inside /tools/
# POL_Call POL_Install_vcrun2005

# Should be usefull for msvcr100.dll, file located inside /tools/
# POL_Call POL_Install_vcrun2010

# To add ?: a option to upgrade the software (it is provided as a .ZIP).

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Edited by Dadu042

Dadu042 Sunday 14 July 2019 at 14:24
Dadu042
Moderator

Warning

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

Message

Maintenant le logiciel démarre. Usage pas testé.

Differences

@@ -1,6 +1,6 @@
 #!/usr/bin/env playonlinux-bash
-# Date : (2019-05-14 09-08)
-# Last revision : (2019-05-19 00-58)
+# Date : (2019-05-14 09:08)
+# Last revision : See changelog below
 # Wine version used : see below
 # Distribution used to test : Ubuntu 19.04 x64
 # Script licence : GPL3
@@ -8,10 +8,22 @@
 #
 # Playonlinux version used : 4.3.4
 #
-# Software used to write the script : Captvty v2.7.13 (2019)
+# Software used to write the script : Captvty v2.7.15 (2019)
+# Based on : MS VisualBasic.
 #
-# Known issues :
-# As soon as it start (v2.7.13), error window "CLR error: 80004005. The program will now terminate."
+#
+# CHANGELOG
+# [Dadu042] (2019-05-14 09:08)
+#   First version.
+# [Dadu042] (2019-07-14 12:43) 
+#   Add GDIplus (useless). 
+#   Add more comments.
+# [Dadu042] (2019-07-14 14:24)
+#   Software started without crashing ("CLR error: 80004005"). Fix is Dotnet461 (instead of Dotnet40), very long to install (30 min?).
+#
+# KNOWN ISSUES :
+# - As soon as it start, error window "CLR error: 80004005. The program will now terminate." 
+#   (Occurs with Captvty v2.7.13, v2.7.15. Wine v4.0.1, 4.12.1)  OK with Dotnet461 (+ wine 4.12.1) instead of Dotnet40.
  
 [ -z "$PLAYONLINUX" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
@@ -35,13 +47,13 @@
 POL_System_TmpCreate "$TITLE"
 
 Set_OS "winxp"
- 
+
 # POL_SetupWindow_message  "Please note: once installed the program does not run.\n" "$TITLE"
 
 ###############
 # Go          #
 ###############
-   
+
 cd "$HOME"
 POL_SetupWindow_browse "$(eval_gettext 'Please select the setup ZIP file to extract.')" "$TITLE"
 SETUP_EXE="$APP_ANSWER"
@@ -55,22 +67,24 @@
 
 POL_System_unzip "$APP_ANSWER" -d "$WINEPREFIX/drive_c/"
 
-POL_Shortcut "Captvty.exe" "$TITLE" "" "AudioVideo;"
+POL_Shortcut "Captvty.exe" "$TITLE" "" "" "AudioVideo;"
+
 
+# Seem useless
+# POL_Call POL_Install_gdiplus
 
-# POL_SetupWindow_message  "Warning: If the installation of DotNet never end, click Cancel." "$TITLE"
-POL_Call POL_Install_dotnet40
+# POL_SetupWindow_message  "Warning: If the installation of DotNet never end, wait many minutes." "$TITLE"
+POL_Call POL_Install_dotnet461
+# POL_Call POL_Install_dotnet40
 
-# for msvcr90.dll
-POL_Call POL_Install_vcrun2005
+# Should be usefull for msvcr90.dll, file located inside /tools/
+# POL_Call POL_Install_vcrun2005
 
-# for msvcr100.dll
-POL_Call POL_Install_vcrun2010
+# Should be usefull for msvcr100.dll, file located inside /tools/
+# POL_Call POL_Install_vcrun2010
 
+# To add ?: a option to upgrade the software (it is provided as a .ZIP).
 
 POL_System_TmpDelete
 POL_SetupWindow_Close
-exit 0
-
-
-# To add ?: option to upgrade the software (it is provided as a .ZIP).
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-05-14 09:08)
# Last revision : See changelog below
# Wine version used : see below
# Distribution used to test : Ubuntu 19.04 x64
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
#
# Software used to write the script : Captvty v2.7.15 (2019)
# Based on : MS VisualBasic.
#
#
# CHANGELOG
# [Dadu042] (2019-05-14 09:08)
#   First version.
# [Dadu042] (2019-07-14 12:43) 
#   Add GDIplus (useless). 
#   Add more comments.
# [Dadu042] (2019-07-14 14:24)
#   Software started without crashing ("CLR error: 80004005"). Fix is Dotnet461 (instead of Dotnet40), very long to install (30 min?).
#
# KNOWN ISSUES :
# - As soon as it start, error window "CLR error: 80004005. The program will now terminate." 
#   (Occurs with Captvty v2.7.13, v2.7.15. Wine v4.0.1, 4.12.1)  OK with Dotnet461 (+ wine 4.12.1) instead of Dotnet40.
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Captvty"
PREFIX="captvty"
WORKING_WINE_VERSION="4.0.1"
AUTHOR="Dadu042"
EDITOR="Guillaume"
GAME_URL="https://captvty.fr"
APP_ID="2795"

POL_SetupWindow_Init
POL_Debug_Init
   
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
   
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"

Set_OS "winxp"

# POL_SetupWindow_message  "Please note: once installed the program does not run.\n" "$TITLE"

###############
# Go          #
###############

cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup ZIP file to extract.')" "$TITLE"
SETUP_EXE="$APP_ANSWER"

cd "$POL_System_TmpDir"
TARGET_DIR="$WINEPREFIX/drive_c/CapTvTy"
mkdir -p "$TARGET_DIR"
cd "$TARGET_DIR"

POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE"

POL_System_unzip "$APP_ANSWER" -d "$WINEPREFIX/drive_c/"

POL_Shortcut "Captvty.exe" "$TITLE" "" "" "AudioVideo;"


# Seem useless
# POL_Call POL_Install_gdiplus

# POL_SetupWindow_message  "Warning: If the installation of DotNet never end, wait many minutes." "$TITLE"
POL_Call POL_Install_dotnet461
# POL_Call POL_Install_dotnet40

# Should be usefull for msvcr90.dll, file located inside /tools/
# POL_Call POL_Install_vcrun2005

# Should be usefull for msvcr100.dll, file located inside /tools/
# POL_Call POL_Install_vcrun2010

# To add ?: a option to upgrade the software (it is provided as a .ZIP).

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Dadu042 Sunday 14 July 2019 at 12:44
Dadu042
Moderator

Warning

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

Message

See changelog.

Differences

@@ -1,6 +1,6 @@
 #!/usr/bin/env playonlinux-bash
-# Date : (2019-05-14 09-08)
-# Last revision : (2019-05-19 00-58)
+# Date : (2019-05-14 09:08)
+# Last revision : See changelog below
 # Wine version used : see below
 # Distribution used to test : Ubuntu 19.04 x64
 # Script licence : GPL3
@@ -10,8 +10,15 @@
 #
 # Software used to write the script : Captvty v2.7.13 (2019)
 #
-# Known issues :
-# As soon as it start (v2.7.13), error window "CLR error: 80004005. The program will now terminate."
+# CHANGELOG
+# [Dadu042] (2019-05-14 09:08)
+#   First version.
+# [Dadu042] (2019-07-14 12:43) 
+#   Add GDIplus (useless). 
+#   Add more comments.
+#
+# KNOWN ISSUES :
+# As soon as it start, error window "CLR error: 80004005. The program will now terminate."  Occurs with Captvty v2.7.13, v2.7.15. Wine v4.0.1
  
 [ -z "$PLAYONLINUX" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
@@ -35,13 +42,13 @@
 POL_System_TmpCreate "$TITLE"
 
 Set_OS "winxp"
- 
+
 # POL_SetupWindow_message  "Please note: once installed the program does not run.\n" "$TITLE"
 
 ###############
 # Go          #
 ###############
-   
+
 cd "$HOME"
 POL_SetupWindow_browse "$(eval_gettext 'Please select the setup ZIP file to extract.')" "$TITLE"
 SETUP_EXE="$APP_ANSWER"
@@ -58,19 +65,19 @@
 POL_Shortcut "Captvty.exe" "$TITLE" "" "AudioVideo;"
 
 
+POL_Call POL_Install_gdiplus
+
 # POL_SetupWindow_message  "Warning: If the installation of DotNet never end, click Cancel." "$TITLE"
 POL_Call POL_Install_dotnet40
 
-# for msvcr90.dll
+# Should be usefull for msvcr90.dll, file located inside /tools/
 POL_Call POL_Install_vcrun2005
 
-# for msvcr100.dll
+# Should be usefull for msvcr100.dll, file located inside /tools/
 POL_Call POL_Install_vcrun2010
 
+# To add ?: a option to upgrade the software (it is provided as a .ZIP).
 
 POL_System_TmpDelete
 POL_SetupWindow_Close
-exit 0
-
-
-# To add ?: option to upgrade the software (it is provided as a .ZIP).
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-05-14 09:08)
# Last revision : See changelog below
# Wine version used : see below
# Distribution used to test : Ubuntu 19.04 x64
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
#
# Software used to write the script : Captvty v2.7.13 (2019)
#
# CHANGELOG
# [Dadu042] (2019-05-14 09:08)
#   First version.
# [Dadu042] (2019-07-14 12:43) 
#   Add GDIplus (useless). 
#   Add more comments.
#
# KNOWN ISSUES :
# As soon as it start, error window "CLR error: 80004005. The program will now terminate."  Occurs with Captvty v2.7.13, v2.7.15. Wine v4.0.1
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Captvty"
PREFIX="captvty"
WORKING_WINE_VERSION="4.0.1"
AUTHOR="Dadu042"
EDITOR="Guillaume"
GAME_URL="https://captvty.fr"
APP_ID="2795"

POL_SetupWindow_Init
POL_Debug_Init
   
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
   
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"

Set_OS "winxp"

# POL_SetupWindow_message  "Please note: once installed the program does not run.\n" "$TITLE"

###############
# Go          #
###############

cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup ZIP file to extract.')" "$TITLE"
SETUP_EXE="$APP_ANSWER"

cd "$POL_System_TmpDir"
TARGET_DIR="$WINEPREFIX/drive_c/CapTvTy"
mkdir -p "$TARGET_DIR"
cd "$TARGET_DIR"

POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE"

POL_System_unzip "$APP_ANSWER" -d "$WINEPREFIX/drive_c/"

POL_Shortcut "Captvty.exe" "$TITLE" "" "AudioVideo;"


POL_Call POL_Install_gdiplus

# POL_SetupWindow_message  "Warning: If the installation of DotNet never end, click Cancel." "$TITLE"
POL_Call POL_Install_dotnet40

# Should be usefull for msvcr90.dll, file located inside /tools/
POL_Call POL_Install_vcrun2005

# Should be usefull for msvcr100.dll, file located inside /tools/
POL_Call POL_Install_vcrun2010

# To add ?: a option to upgrade the software (it is provided as a .ZIP).

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Edited by Dadu042

Dadu042 Sunday 19 May 2019 at 0:59
Dadu042
Moderator

Warning

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

Message

The script allow to install the app from is zip file.

But the app crash when loading. angry (even with Wine up to v4.8).

Differences

@@ -55,7 +55,7 @@
 
 POL_System_unzip "$APP_ANSWER" -d "$WINEPREFIX/drive_c/"
 
-POL_Shortcut "Captvty.exe" "$TITLE" ""
+POL_Shortcut "Captvty.exe" "$TITLE" "" "AudioVideo;"
 
 
 # POL_SetupWindow_message  "Warning: If the installation of DotNet never end, click Cancel." "$TITLE"

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-05-14 09-08)
# Last revision : (2019-05-19 00-58)
# Wine version used : see below
# Distribution used to test : Ubuntu 19.04 x64
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
#
# Software used to write the script : Captvty v2.7.13 (2019)
#
# Known issues :
# As soon as it start (v2.7.13), error window "CLR error: 80004005. The program will now terminate."
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Captvty"
PREFIX="captvty"
WORKING_WINE_VERSION="4.0.1"
AUTHOR="Dadu042"
EDITOR="Guillaume"
GAME_URL="https://captvty.fr"
APP_ID="2795"

POL_SetupWindow_Init
POL_Debug_Init
   
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
   
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"

Set_OS "winxp"
 
# POL_SetupWindow_message  "Please note: once installed the program does not run.\n" "$TITLE"

###############
# Go          #
###############
   
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup ZIP file to extract.')" "$TITLE"
SETUP_EXE="$APP_ANSWER"

cd "$POL_System_TmpDir"
TARGET_DIR="$WINEPREFIX/drive_c/CapTvTy"
mkdir -p "$TARGET_DIR"
cd "$TARGET_DIR"

POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE"

POL_System_unzip "$APP_ANSWER" -d "$WINEPREFIX/drive_c/"

POL_Shortcut "Captvty.exe" "$TITLE" "" "AudioVideo;"


# POL_SetupWindow_message  "Warning: If the installation of DotNet never end, click Cancel." "$TITLE"
POL_Call POL_Install_dotnet40

# for msvcr90.dll
POL_Call POL_Install_vcrun2005

# for msvcr100.dll
POL_Call POL_Install_vcrun2010


POL_System_TmpDelete
POL_SetupWindow_Close
exit 0


# To add ?: option to upgrade the software (it is provided as a .ZIP).

Replies

Edited by Dadu042