tis-pdfgear icon

PDFgear

Silent install package for PDFgear

2.1.6-1

  • package: tis-pdfgear
  • name: PDFgear
  • version: 2.1.6-1
  • maintainer: AdministratorWAPT Team,Tranquil IT,Amel FRADJ
  • licence: Copyright © 2024 PDFgear
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 134.73 Mo
  • homepage : https://www.pdfgear.com/

package           : tis-pdfgear
version           : 2.1.6-1
architecture      : x64
section           : base
priority          : optional
name              : PDFgear
categories        : 
maintainer        : AdministratorWAPT Team,Tranquil IT,Amel FRADJ
description       : Read, edit, convert, merge and sign PDF files on multiple devices, completely free of charge and without registration
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Lisez, modifiez, convertissez, fusionnez et signez des fichiers PDF sur plusieurs appareils, entièrement gratuitement et sans inscription
description_pl    : Odczytuj, modyfikuj, konwertuj, scalaj i podpisuj pliki PDF na wielu urządzeniach, całkowicie bezpłatnie i bez rejestracji
description_de    : Lesen, bearbeiten, konvertieren, zusammenführen und signieren Sie PDF-Dateien auf mehreren Geräten, völlig kostenlos und ohne Anmeldung
description_es    : Lea, edite, convierta, fusione y firme archivos PDF en varios dispositivos, de forma totalmente gratuita y sin necesidad de registrarse
description_pt    : Ler, modificar, converter, fundir e assinar ficheiros PDF em vários dispositivos, de forma totalmente gratuita e sem registo
description_it    : Leggere, modificare, convertire, unire e firmare file PDF su più dispositivi, in modo completamente gratuito e senza registrazione
description_nl    : PDF-bestanden lezen, wijzigen, converteren, samenvoegen en ondertekenen op meerdere apparaten, volledig gratis en zonder registratie
description_ru    : Читайте, изменяйте, конвертируйте, объединяйте и подписывайте PDF-файлы на различных устройствах совершенно бесплатно и без регистрации
audit_schedule    : 
editor            : 
keywords          : 
licence           : Copyright © 2024 PDFgear
homepage          : https://www.pdfgear.com/
package_uuid      : 38a2a1bf-dd43-47d2-827a-3a260f9fd091
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 0c213fa7c0cc8273c1c3a3e6ee52952c4b84518287ff02d4b1e39caad182f076
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : iNBgPlXdHcYqZJFR+oZHscDOwEZIKeqG85f3GDqldk4gJkB8I4oMIb8SjPFViboml8/Ll8LSBPLqPV91EnaP3GdHRYmLzjXrydBAa6Nmplo6wFjqYrV2cswYu52NSa4fGkWFwAtHX+4cEMHkLJpFD8Xuocl/4/Unnlg1F/ZE8d2xiZgq1GMhmyfkjOl6ShE3SksnSZj6AcZky6v3/YeJ2zg77wx6UqCb3lvW0L540U2t14LmKKlKwA9ZRD0rT7E+xv0J33SQAT2iKCA3yUm2l5rN3D4S/cfnel+1KyoNc3Gt/U0xKD0NJSXejhSWyYoU3N3c+bYE7QQEvJuPB+74Wg==
signature_date    : 2024-08-25T12:01:30.710597
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes

# -*- coding: utf-8 -*-
from setuphelpers import *

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
{
   "key":"{7DACF63A-4EE4-4837-9AF9-C65D4509FFB4}_is1",
   "name":"PDFgear 2.1.6",
   "version":"2.1.6",
   "install_date":"2024-08-20 00:00:00",
   "install_location":"C:\\Program Files\\PDFgear\\",
   "uninstall_string":"\"C:\\Program Files\\PDFgear\\unins000.exe\"",
   "publisher":"PDFgear",
   "system_component":0,
   "win64":true
  }
 ]

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables
    bin_name = glob.glob('pdfgear_setup_v2.1.6.exe')[0]
    # Installing the software
    
    install_exe_if_needed(bin_name,
        silentflags='/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-',
        key='{7DACF63A-4EE4-4837-9AF9-C65D4509FFB4}_is1',
        min_version=control.get_software_version(),
    )




# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import glob




def update_package():
    # Declaring local variables
    package_updated = False
    
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

  
    '''url_base = "https://www.pdfgear.com/pdfgear-for-windows/"
    headers = {
     "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0"}

    response = requests.get(url_base, headers=headers, allow_redirects=True)
    
    divs = bs_find_all(response.text, "div",proxies=proxies, allow_redirects=True)
    exe_file = None
    for div in divs:
        if exe_file:
            break
        links = div.find_all('a', href=True)
        for link in links:
            if link['href'].endswith('/msi'):
                href = link['href']
                msi_file = href
                download_url = msi_file
                latest_bin = download_url.split('/')[-1]
                version = latest_bin.split('_')[-1]
                break'''
    download_url = wgets('https://www.pdfgear.com/pdfgear-for-windows/',proxies=proxies).split("pdfgear-desktop-btn")[1].split('"')[1]
    latest_bin = download_url.split('/')[-1].rsplit("?")[0]
    version = latest_bin.split('_')[-1].replace("v","").rsplit('.exe')[0]
    
    # Downloading latest binaries
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
        package_updated = True
    else:
        print("Binary is present: %s" % latest_bin)


    # Deleting outdated binaries
    for f in glob.glob('*.exe'):
        if f != latest_bin:
            remove_file(f)

         
    version = get_version_from_binary(latest_bin)
    # Mettre à jour le package
    control.set_software_version(version)
    control.save_control_to_wapt()    
        

2adb6f8af8a6a0f063cbd3eebd5c7e028c1fba6a2e571c8e88749450fc9af1fe : setup.py
514244a7cd9d574680167cf2ad9a4d59ac1d10dd9530a563af38fb6bb013f057 : update_package.py
0c213fa7c0cc8273c1c3a3e6ee52952c4b84518287ff02d4b1e39caad182f076 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
d69b53e3d0100807dcbe8aeb8b123a1f8d1d4624cd7d68f3eb8ae4de7ef0d533 : luti.json
1941ed148b7deca35e95e0d915f71944b34c3b15ba4d05cbb0a01a83d9e038ce : pdfgear_setup_v2.1.6.exe
476e9b1b992bfe6721c344884ac40440ab58040be42f7a4626710694bd5c8d50 : WAPT/control