tis-foxit

10.0.0.35798-7
Foxit Reader is a PDF tool that can create, view, edit, digitally sign, and print PDF files
2811 downloads
Download

  Description 

  • package : tis-foxit
  • version : 10.0.0.35798-7
  • architecture : all
  • categories : Office
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELE,Jimmy PELÉ
  • description : Foxit Reader is a PDF tool that can create, view, edit, digitally sign, and print PDF files
  • locale : all
  • target_os : windows
  • min_os_version : 6.1
  • max_os_version :
  • min_wapt_version : 1.5
  • sources : https://www.foxitsoftware.com/downloads/
  • installed_size :
  • impacted_process : FoxitReader,64BitMailAgent,FoxitReaderConnectedPDFService,FoxitReaderUpdateService,FoxitUpdater,SendCrashReport,ServiceMiniNotice,TrackReview
  • description_fr : Foxit Reader est un outil PDF permettant de créer, lire, modifier, signer numériquement et imprimer des fichiers PDF
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Foxit Software Inc.
  • licence : Proprietary
  • signature_date : 2020-06-22T18:14:23.383000
  • Homepage : https://www.foxitsoftware.com/

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *
import requests
import platform
try:
    import bs4 as BeautifulSoup
except:
    import BeautifulSoup

uninstallkey = []

# Declaring specific app values (TO CHANGE)
bin_name_string = 'FoxitReader_%s_Setup.exe'
silent_args_string = '/ForceInstall /VERYSILENT DESKTOP_SHORTCUT="0" MAKEDEFAULT="0" VIEWINBROWSER="0" LAUNCHCHECKDEFAULT="0" AUTO_UPDATE="0" /passive /norestart /LANG=%s'
app_uninstallkey = 'Foxit Reader_is1'


def install():
    # Specific app values
    package_version = control.version.split('-',1)[0]
    lang = get_language()

    # Installing the package
    install_exe_if_needed(bin_name_string % package_version
        ,silentflags=silent_args_string % lang
        ,key=app_uninstallkey
        ,min_version=package_version)

    registry_setstring(HKEY_LOCAL_MACHINE,r'SOFTWARE\Policies\Explorer\DisallowRun','foxit_updater','FoxitReaderUpdater.exe')


def session_setup():
    print("Disabling: auto-update-check, updater")

    # Specific app values
    package_version = control.version.split('-',1)[0]
    split_package_version = package_version.split('.')
    short_package_version = '%s.%s'% (split_package_version[0],split_package_version[1])

    # Disabling update-check
    registry_setstring(HKEY_CURRENT_USER,r'Software\Foxit Software\Foxit Reader %s\plugins\Updater' % short_package_version,'UpdateMode','0')

    # Deny start of FoxitReaderUpdater
    registry_setstring(HKEY_CURRENT_USER,r'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun','foxit_updater','FoxitReaderUpdater.exe')

    # Removing FoxitReaderUpdater
    updater_path = makepath(user_appdata,'Foxit Software','Addon','Foxit Reader','FoxitReaderUpdater.exe')
    if isfile(updater_path):
        killalltasks('FoxitReaderUpdater.exe')
        remove_file(updater_path)


def update_package():
    print('Download/Update package content from upstream binary sources')

    # Getting proxy informations from WAPT settings
    proxy = {}
    if platform.system()=='Windows' and isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxy = {'http':proxywapt,'https':proxywapt}

    # Specific app values
    app_name = control.name
    url = 'https://www.foxitsoftware.com/pdf-reader/version-history.php'

    # Getting latest version from official website
    page = requests.get(url,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'}).text
    bs = BeautifulSoup.BeautifulSoup(page)
    #bs = BeautifulSoup.BeautifulSoup(page,features="html.parser") # For bs4 only
    bs_raw_string = bs.find('h3').text
    version = bs_raw_string.replace('Version ','')

    # Do not use the URL: "language=English" (it will not download language packs)
    url_dl = 'https://www.foxitsoftware.com/downloads/latest.php?product=Foxit-Reader&platform=Windows&package_type=exe&language=French&version=%s' % version
    latest_bin = bin_name_string % version

    print("Latest %s version is: %s" % (app_name,version))
    print("Download url is: %s" % url_dl)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print('Downloading: %s' % latest_bin)
        wget(url_dl,latest_bin,proxies=proxy)

        # Get version from file
        version_from_file = get_file_properties(latest_bin)['ProductVersion']
        if version != version_from_file and version_from_file != '':
            version = version_from_file
            old_latest_bin = latest_bin
            latest_bin = bin_name_string % version
            if isfile(latest_bin):
                remove_file(latest_bin)
            os.rename(old_latest_bin,latest_bin)

        # Changing version of the package
        control.version = '%s-%s'%(version,int(control.version.split('-')[-1])+1)
        control.save_control_to_wapt()
        print('Changing version to: %s in WAPT\\control' % control.version)

    # Deleting outdated binaries
    for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi'):
        if bin_in_dir != latest_bin :
            print('Outdated binary: %s Deleted' % bin_in_dir)
            remove_file(bin_in_dir)


										

  Changelog 


Changelog software url : https://www.foxitsoftware.com/pdf-reader/version-history.php

No changelog
  manifest.sha256 
[["setup.py","9f4f7276dbb1ba8ecb479124fd9ee1fe19fab94bdd1e4d3ccf68b62f580cc226"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/icon.png","18ea3aa5e6ea9c96685273c6804815e7a48cef1b1529913b4be2f9a5ab8ae082"],["WAPT/control","380e0e3a3255d75b9ce9742e824af17c8e456e2ca4d215ea276dd1340d648d5b"],["FoxitReader_10.0.0.35798_Setup.exe","4ae834ee2f2e47341ff5214c4eb790f444feae8b9e7507bc31066d302a21a2f0"]]