Page 1 sur 1

[RESOLU] Paquet PDF Creator

Posté : 12 nov. 2019 - 13:25
par Futé
WAPT 1.7.4 - Serveur CentOS - Client Windows 10

Bonjour,
Le paquet PDF Creator n'est pas à jour et je voudrais pouvoir installer la dernière version. Actuellement, j'ai ce code là :

Code : Tout sélectionner

from setuphelpers import *

uninstallkey = []

def install():
    oldpdf = installed_softwares('pdfcreator')
    for prog in oldpdf:
        if Version(prog['version'])<>Version('3.5.1'):
            print('Removing PDFCreator %s' %prog['version'])
            run('"%s"  /VERYSILENT /NORESTART /SUPPRESSMSGBOXES' % prog['uninstall_string'])

    # See http://docs.pdfforge.org/pdfcreator/2.0/en/installing-pdfcreator/setup-command-line-parameters/
    open('pdf2.inf','w').write(open('pdf.inf','r').read() % {'programfiles32':programfiles})
    install_exe_if_needed('PDFCreator-3_5_1-Setup.exe','/FORCEINSTALL /VERYSILENT /NORESTART /LOADINF="pdf2.inf"', \
        key = '{0001B4FD-9EA3-4D90-A79E-FD14BA3AB01D}', min_version = '3.5.1', accept_returncodes=[0,-100,1603,3010])
    remove_file('pdf2.inf')
J'ai simplement repris le code existant et changer le .exe (PDFCreator-3_5_1-Setup.exe). Malheureusement ça ne marche...
Auriez vous une idée ?

Re: Paquet PDF Creator

Posté : 12 nov. 2019 - 13:41
par sfonteneau
Un petit tour par là et vous allez comprendre

https://forums.pdfforge.org/t/echec-mis ... de/13553/4


Re: Paquet PDF Creator

Posté : 13 nov. 2019 - 07:21
par Futé
OH... ok merci beaucoup pour l'info :)