tis-foxit9

9.7.2.29539-4
Foxit Reader is a PDF tool that can create, view, edit, digitally sign, and print PDF files
64 downloads
Download

  Description 

  • package : tis-foxit9
  • version : 9.7.2.29539-4
  • architecture : all
  • categories : Office
  • maintainer : WAPT Team,Tranquil IT,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.7
  • 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-10-02T14:17:57.496489
  • Homepage : https://www.foxitsoftware.com/
  • Conflicts :

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *
import requests
import platform
import wmi

uninstallkey = []

# Defining variables
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'
# 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=9.7.2.29539' 
version = '9.7.2.29539'


def install():
    # Initializing variables
    package_version = control.version.split('-',1)[0]
    bin_name = bin_name_string % package_version
    lang = get_language()

    # Installing the package
    print('Installing: %s' % bin_name)
    install_exe_if_needed(bin_name,
        silentflags=silent_args_string % lang,
        key=app_uninstallkey,
        min_version=package_version)

    # Disable updater service
    if get_service_start_mode('FoxitReaderUpdateService') != 'Disabled':
        try:
            set_service_start_mode('FoxitReaderUpdateService', 'Disabled')
        except:
            print("Unable to disable the service: FoxitReaderUpdateService")


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

    # Initializing variables
    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')
    registry_setstring(HKEY_CURRENT_USER,r'Software\Foxit Software\Foxit Reader %s\Preferences\Registration' % short_package_version,'bShowRegisterDlg','0')

    # 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
    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)

        # 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)




def set_service_start_mode(service_name, start_mode):
    """Changing start mode of a service
    Usable values: 'Automatic', 'Manual', 'Disabled'
    Informations: https://msdn.microsoft.com/en-us/library/aa384896(v=vs.85).aspx
    """
    for svc in wmi.WMI().Win32_Service(Name=service_name):
        svc.ChangeStartMode(StartMode=start_mode)
        if start_mode == 'Disabled':
            service_stop(service_name)


def get_service_start_mode(service_name):
    """Getting actual start mode of a service
    Returned values: 'Auto', 'Manual', 'Disabled'
    """
    for svc in wmi.WMI().Win32_Service(Name=service_name):
        return svc.StartMode


										

  Changelog 


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

https://www.foxitsoftware.com/pdf-reader/version-history.php
  manifest.sha256 
[[".env","e312ee6c8275d1f07a4ce8ccbd1a17744f156a86929fc24e25e44fb10f0997dc"],[".vscode/launch.json","73ed339a2734c53613d1645b72606058a4a1eb060e44cd7d83d36add51f338bd"],[".vscode/settings.json","c0a7c3e648b2b2dba581fdb84ef38f7ebd3ae99d39d8294fda2088b04d05a695"],["FoxitReader_9.7.2.29539_Setup.exe","cbcab5e9b2ab0c6b7abdbc8c8f7fb253a91f9fe3132db0c0f281dcf481cacd60"],["setup.py","184003d15e4b01847f0f2daaede4e192bc521871d3c93a39865764d7b956c6ed"],["WAPT/changelog.txt","486cb739b8b8c89cbe40c2bfc4d454ea18226bb2fb73f447d81a530de12d76e0"],["WAPT/icon.png","18ea3aa5e6ea9c96685273c6804815e7a48cef1b1529913b4be2f9a5ab8ae082"],["WAPT/wapt.psproj","ab0613273a032435c397ab4b183a7a81bced95880acca8c89655b0daa6bf2f13"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/control","82bea2da33116a5b9663ef2cde3f5ae61f3b9347ea69be605a58f9c7c4eb1db8"]]