Anagene 2 Plus Pack

Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is provided on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version (1.8.2 / 2.0 / 2.1 / 2.2 / etc.) AS WELL AS the Enterprise / Discovery edition.
* Specify the server OS (Linux / Windows) and version (Debian Stretch/Buster - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine (Windows 7 / 10)
. * As with any community forum, support is provided voluntarily by members. If you require sales support, you can contact the Tranquil IT sales department at 02.40.97.57.55
Locked
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

February 8, 2018 - 3:48 PM

Good morning,
Have you ever managed to create a package to install Anagene 2 Plus? I tried installing the MSI with `install_msi_if_needed(ur'./Anagene/Anagene 2.msi')`, but I get the following error:
CalledProcessErrorOutput: Command 'msiexec /norestart /q /i "./Anagene/Anagene 2.msi" ' returned non-zero exit status 1619.
Output:I cannot open this package kagedinstallation. Check that it exists and that you are authorized to access it, or check with your application vendor that this Windows Installer package is valid.


and using setup.exe with install_exe_if_needed("setup.exe",'/VERYSILENT',key='{6E83FF05-B414-4AA8-A782-927CB7D516EC}',min_version='5.0.349.0'), I get the error:
EWaptSetupException: Fatal error: setup exe file setup.exe not found in package

However, the following command works normally when run manually in Windows:

Code: Select all

msiexec /norestart /q /i "C:\waptdev\dst-anagene2_2.0.0-17_all\Anagene\Anagene 2.msi""

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = ['{6E83FF05-B414-4AA8-A782-927CB7D516EC}']
global destdir
destdir = makepath(programfiles32,'Anagene2','Anagene2Plus_maj_2017')

def install():
    print('Installation de Anagene2 PLUS avec MAJ 2017')
    #install_exe_if_needed("setup.exe",'/VERYSILENT',key='{6E83FF05-B414-4AA8-A782-927CB7D516EC}',min_version='5.0.349.0')
    install_msi_if_needed(ur'./Anagene/Anagene 2.msi')
    remove_desktop_shortcut(r'Anagene2')
    if not isdir(destdir):
        mkdirs(destdir)
    copytree2(r'.\Anagene2Plus_maj_2017',destdir)

    print('Raccourci dans dossier Logiciels sur bureau public')
    if not isdir(makepath(common_desktop(),u'Logiciels',u'SVT')):
        mkdirs(makepath(common_desktop(),u'Logiciels',u'SVT'))
    create_shortcut(makepath(common_desktop(),u'Logiciels',u'SVT',u'Anagene2.lnk'),target=r'%s\Anagene2\Anagene2Plus_maj_2017\anagene2.exe' %programfiles32, wDir=r'%s\Anagene2\Anagene2Plus_maj_2017\\' %programfiles32,icon=r'%s\Anagene2\Anagene2Plus_maj_2017\anagene2.exe' %programfiles32)

    print('Raccourci dans dossier Logiciels SVT sur bureau EXAO')
    if isdir(makepath(common_desktop(),u'Logiciels SVT')):
        if not isdir(makepath(common_desktop(),u'Logiciels SVT',u'Génétique')):
            mkdirs(makepath(common_desktop(),u'Logiciels SVT',u'Génétique'))
        create_shortcut(makepath(common_desktop(),u'Logiciels SVT',u'Génétique',u'Anagene2.lnk'),target=r'%s\Anagene2\Anagene2Plus_maj_2017\anagene2.exe' %programfiles32, wDir=r'%s\Anagene2\Anagene2Plus_maj_2017\\' %programfiles32,icon=r'%s\Anagene2\Anagene2Plus_maj_2017\anagene2.exe' %programfiles32)

def uninstall():
    print('Desinstallation de dst-anagene2')
    if isfile(makepath(common_desktop(),u'Logiciels',u'SVT',u'Anagene2.lnk')):
        remove_file(makepath(common_desktop(),'Logiciels','SVT','Anagene2.lnk'))
    if isfile(makepath(common_desktop(),u'Logiciels SVT',u'Génétique',u'Anagene2.lnk')):
        remove_file(makepath(common_desktop(),u'Logiciels SVT',u'Génétique',u'Anagene2.lnk'))
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

February 8, 2018 - 6:02 PM

I see that it's in the SIREC repository :D :

http://wapt.sirec.org/wapt/

Thank you Olivier.

Have a good day!
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

February 12, 2018 - 9:00 AM

Yes, thank you, but I tested it and it doesn't work. I get an error message when launching the software: "Path not found. Problem with one of the working directories."

EDIT: I just realized I need to modify the config.txt file and create a directory for Anagene backups.

However, I still get a "COMDLG32.OCX missing" error, and when I copy and save this file with regsvr32, I then get the error "ActiveX component can't create object. Problem with the data file."

I tried a package that installs setup.exe, but it doesn't work at all.
Tompte
Messages: 1
Registration: Oct 10, 2018 - 07:27

October 10, 2018 - 7:34 AM

Hello,

Were you able to package Anagene2?
I'm currently experiencing the same issues with missing DLLs.
The package from http://wapt.sirec.org/wapt/ seems to only install the update folder but not the Anagene2Plus software or the Anagene2Plus_2018 folder.

Wapt 1.5.1.26,
Debian server
, Windows 10.3 client OS.

Regards,
Philippe
Locked