Page 1 of 1

[RESOLVED] PDF Creator Package

Published: November 12, 2019 - 1:25 PM
by Smart
WAPT 1.7.4 - CentOS Server - Windows 10 Client

Good morning,
The PDF Creator package is outdated, and I would like to install the latest version. Currently, I have this code:

Code: Select all

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')
I simply reused the existing code and changed the .exe file (PDFCreator-3_5_1-Setup.exe). Unfortunately, it doesn't work...
Do you have any idea?

Re: PDF Creator Package

Published: November 12, 2019 - 1:41 PM
by sfonteneau
Take a quick look here and you'll understand:

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


Re: PDF Creator Package

Published: November 13, 2019 - 7:21 AM
by Smart
OH... ok thank you very much for the info :)