tis-foxit icon

Foxit PDF Reader

Paquet d’installation silencieuse pour Foxit PDF Reader

2025.1.0.27937-45

  • package: tis-foxit
  • name: Foxit PDF Reader
  • version: 2025.1.0.27937-45
  • categories: Office
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Clément BAZIRET
  • editor: Foxit Software Inc.
  • licence: proprietary_free,wapt_public
  • locale: all
  • target_os: windows
  • impacted_process: FoxitPDFReader,FoxitPDFCEF,FoxitPDFReaderUpdateService,FoxitUpdater,FoxitPreviewhost,FoxitPDFReaderUpdater
  • architecture: all
  • signature_date:
  • size: 133.85 Mo
  • installed_size: 699.83 Mo
  • homepage : https://www.foxit.com/
  • conflicts :

package           : tis-foxit
version           : 2025.1.0.27937-45
architecture      : all
section           : base
priority          : optional
name              : Foxit PDF Reader
categories        : Office
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Clément BAZIRET
description       : Foxit PDF Reader (formerly Foxit Reader) is a multilingual Freemium PDF (Portable Document Format) tool
depends           : 
conflicts         : tis-foxit9
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : https://www.foxit.com/downloads/
installed_size    : 699829332
impacted_process  : FoxitPDFReader,FoxitPDFCEF,FoxitPDFReaderUpdateService,FoxitUpdater,FoxitPreviewhost,FoxitPDFReaderUpdater
description_fr    : Foxit PDF Reader (anciennement Foxit Reader) est un outil PDF (Portable Document Format) multilingue Freemium
description_pl    : Foxit PDF Reader (dawniej Foxit Reader) to wielojęzyczne narzędzie Freemium PDF (Portable Document Format)
description_de    : Foxit PDF Reader (früher Foxit Reader) ist ein mehrsprachiges Freemium PDF (Portable Document Format) Tool
description_es    : Foxit PDF Reader (antes Foxit Reader) es una herramienta PDF (Portable Document Format) multilingüe Freemium
description_pt    : O Foxit PDF Reader (anteriormente Foxit Reader) é uma ferramenta Freemium multilingue para PDF (Portable Document Format)
description_it    : Foxit PDF Reader (precedentemente Foxit Reader) è uno strumento PDF (Portable Document Format) multilingue e gratuito
description_nl    : Foxit PDF Reader (voorheen Foxit Reader) is een meertalig Freemium PDF-programma (Portable Document Format)
description_ru    : Foxit PDF Reader (ранее Foxit Reader) - это многоязычный инструмент Freemium для работы с PDF (Portable Document Format)
audit_schedule    : 
editor            : Foxit Software Inc.
keywords          : pdf,tool,file,reader
licence           : proprietary_free,wapt_public
homepage          : https://www.foxit.com/
package_uuid      : b8cf11ed-e9f1-4f79-b7a2-74dfb5c69f96
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://www.foxit.com/pdf-reader/version-history.php
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : 18ea3aa5e6ea9c96685273c6804815e7a48cef1b1529913b4be2f9a5ab8ae082
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-04-27T09:12:16.000000
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
signature         : C/hkvaVZF6td022wu4nN7TJ9tguiNxayjy1yeWIuK8coqmaZmv630O/jYB8Xpf5zU3DBz21w1tR9/xY9QWniKPu3+P2Dyj5Izw359c4Aw8w88ex9UxDPgqk+oK79aY3GauAQhEQS71IQGU/UFzMb7674SaheSiOFR2QdcaX7jrgTcAKwFTdCqIDre2/etr1aXvbZJvGoAv1YcRRWcIsYxntoLf5hFo/kzUNDDdzmssue0xIQnG6zzVhI+i0rrsbXugs8IG2I2SlwPD/pfAFI1hBtzNiEyWa+Z22nUpamkc165btOsRpLSfHCqg1h4boaGPZ6BBE2abtE3ZxdYBBA/g==

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


# Installation procedure:
# https://kb.foxit.com/hc/sections/360013522472-Command-Line
# https://kb.foxit.com/hc/articles/360042235352-Foxit-PDF-Reader-MSI-Installer-Public-Properties-
# https://kb.foxit.com/hc/articles/360042663971-Foxit-PDF-Reader-EXE-Installer-Public-Properties-


# old_silentflags = '/ForceInstall /VERYSILENT DESKTOP_SHORTCUT="0" MAKEDEFAULT="0" VIEWINBROWSER="0" LAUNCHCHECKDEFAULT="0" AUTO_UPDATE="0" /passive /norestart /LANG=%s' % lang,
# old_msi_properties = {
#     # "ADDLOCAL": '"FX_PDFVIEWER"',  # ,FX_PDFA,FX_OCR
#     # "ADDLOCAL": "ALL",
#     # "INSTALLLOCATION": r'"C:\Program Files (x86)\Foxit Software\Foxit PDF Reader"',
#     "MAKEDEFAULT": "0",
#     "VIEW_IN_BROWSER": "0",
#     "DESKTOP_SHORTCUT": "1",
#     "STARTMENU_SHORTCUT": "1",
#     "LAUNCHCHECKDEFAULT": "0",
#     "AUTO_UPDATE": "0",
#     "REMOVENEWVERSION": "1",  # Forces an installation to overwrite the higher version of Foxit Reader with the value of "1".
#     "REMOVEGAREADER": "1",  # Forces to uninstall Foxit Reader (Desktop Version).
#     "CPDF_DISABLE": "1",
#     "NOTINSTALLUPDATE": "1",
#     "INTERNET_DISABLE": "1",
#     "DISABLE_UNINSTALL_SURVEY": "1",
#     # "KEYCODE": "",
#     # "KEYPATH": "",
#     "EMBEDDED_PDF_INOFFICE": "0",
# }
# # app_dir = makepath(programfiles32, "Foxit Software")  # "Foxit PDF Reader" is added by the installer!
# # properties.update({"INSTALLLOCATION": '"%s"' % app_dir})


def install():
    bin_name = glob.glob("FoxitPDFReader*.exe")[0]

    # Removing old_app_dir
    old_app_dir = makepath(programfiles32, "Foxit Software", "Foxit Reader")
    if isdir(old_app_dir):
        remove_tree(old_app_dir)
    if iswin64():
        old_app_dir = makepath(programfiles, "Foxit Software")
        if isdir(old_app_dir):
            remove_tree(old_app_dir)

    # Installing the package
    install_exe_if_needed(
        bin_name,
        silentflags="/VERYSILENT /SUPPRESSMSGBOXES /NORESTART",
        timeout=900,
        key="Foxit Reader_is1",
        min_version=control.get_software_version(),
    )

    # Disabling updater service
    try:
        set_service_start_mode("FoxitReaderUpdateService", "Disabled")
    except:
        pass


def session_setup():
    # Cleaning incorrect reg values
    for older_version in ["10.0", "10.1", "11.0", "11.1", "11.2", "12.0", "12.1"]:
        if reg_key_exists(HKEY_CURRENT_USER, r"SOFTWARE\Foxit Software\Foxit Reader %s" % older_version):
            registry_deletekey(HKEY_CURRENT_USER, r"SOFTWARE\Foxit Software", "Foxit Reader %s" % older_version)

    # Disabling update-check
    print("Disabling: auto-update-check, updater, registration dialog, internet in the app, telemetry, advertisement and promotion")
    user_reg_app_path = r"SOFTWARE\Foxit Software\Foxit PDF Reader\Continuous"

    registry_setstring(HKEY_CURRENT_USER, r"%s\plugins\Updater" % user_reg_app_path, "UpdateMode", "0")
    registry_setstring(HKEY_CURRENT_USER, r"%s\Preferences\Registration" % user_reg_app_path, "bShowRegisterDlg", "0")
    # registry_setstring(HKEY_CURRENT_USER, r"%s\Preferences\General" % user_reg_app_path, "bShowStartPage", "0")
    registry_setstring(HKEY_CURRENT_USER, r"%s\Preferences\General" % user_reg_app_path, "bShowFloatingPromotionPage", "0")
    registry_setstring(HKEY_CURRENT_USER, r"%s\Preferences\General" % user_reg_app_path, "bShowAdvertisement", "0")
    registry_setstring(HKEY_CURRENT_USER, r"%s\Preferences\General" % user_reg_app_path, "bDisableInternet", "1")
    registry_setstring(HKEY_CURRENT_USER, r"%s\Preferences\General" % user_reg_app_path, "bCollectData", "0")

    # Disable plugins # LoadBehavior avoiding them to be loaded automatically # DefaultEnable hide plugins
    # registry_set(HKEY_CURRENT_USER, r"%s\plugins\Installed\FoxitInnerPluginBrowser" % user_reg_app_path, "DefaultEnable", 0)
    registry_set(HKEY_CURRENT_USER, r"%s\plugins\Installed\FoxitInnerPluginBrowser" % user_reg_app_path, "LoadBehavior", 2)
    registry_set(HKEY_CURRENT_USER, r"%s\plugins\Installed\FoxitInnerPluginDropboxPlugin" % user_reg_app_path, "LoadBehavior", 2)
    registry_set(HKEY_CURRENT_USER, r"%s\plugins\Installed\FoxitInnerPluginFoxitAccountManagement" % user_reg_app_path, "LoadBehavior", 2)
    registry_set(HKEY_CURRENT_USER, r"%s\plugins\Installed\FoxitInnerPluginFoxitUpdater" % user_reg_app_path, "DefaultEnable", 0)
    registry_set(HKEY_CURRENT_USER, r"%s\plugins\Installed\FoxitInnerPluginFoxitUpdater" % user_reg_app_path, "LoadBehavior", 2)
    registry_set(HKEY_CURRENT_USER, r"%s\plugins\Installed\FoxitInnerPluginGoogleDrive" % user_reg_app_path, "LoadBehavior", 2)
    registry_set(HKEY_CURRENT_USER, r"%s\plugins\Installed\FoxitInnerPluginOneDrive" % user_reg_app_path, "LoadBehavior", 2)
    registry_set(HKEY_CURRENT_USER, r"%s\plugins\Installed\FoxitInnerPluginOneDriveForBusiness" % user_reg_app_path, "LoadBehavior", 2)

    # Zoom 100% by default
    registry_setstring(HKEY_CURRENT_USER, r"%s\Preferences\Display" % user_reg_app_path, "nZoomToMode", "1")

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

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

""" 
FoxitPDFReader1212_L10N_Setup_Prom.exe
FoxitPDFReader1212_L10N_Setup.exe
FoxitPDFReader1212_enu_Setup_Clean.exe
FoxitPDFReader1212_enu_Setup_Prom.exe
FoxitPDFReader1212_L10N_Setup.msi
FoxitPDFReader1212_enu_Setup.msi

OK:
https://cdn01.foxitsoftware.com/product/reader/desktop/win/12.1.2/FoxitPDFReader1212_L10N_Setup.msi
NOK:
https://cdn78.foxitsoftware.com/product/reader/desktop/win/12.1.2/FoxitPDFReader1212_L10N_Setup.msi


"""


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

    url = "https://www.foxit.com/pdf-reader/version-history.php"
    download_url = "https://www.foxit.com/downloads/latest.php?product=Foxit-Reader&platform=Windows&package_type=exe&language=French"  # Do not use the URL: "language=English" (it will not download language packs)

    # Getting latest version information from download url
    requests_result = requests.head(download_url, proxies=proxies, allow_redirects=True, verify=False)
    download_url = requests_result.url
    latest_bin = download_url.split("/")[-1]
    version = requests_result.url.split("/")[-2]

    # Deleting binaries
    remove_outdated_binaries("*")

    # 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,verify_cert=makepath(systemdrive, programfiles32, "wapt", "lib", "site-packages", "certifi", "cacert.pem")
        )
    else:
        print("Binary is present: %s" % latest_bin)

    # Checking version from file
    if get_os_name() == "Windows" and "windows" in control.target_os.lower():
        version_from_file = get_version_from_binary(latest_bin)
        if Version(version_from_file, 4) == Version(version, 4):
            print("INFO: Binary file version corresponds to online version")
        elif Version(version_from_file, 3) == Version(version, 3):
            print("INFO: Binary file version is superior, changing version to binary version (from %s to %s)" % (version, version_from_file))
            version = version_from_file
        else:
            error("ERROR: Binary file version do NOT corresponds to online version")

    # Changing version of the package
    if Version(version, 4) > Version(control.get_software_version(), 4):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating update-package-sources
    return package_updated

b9be0103e1e8caa51a76a9a7141daf6d34a01362faede2fe224b5864e8684b21 : FoxitPDFReader20251_L10N_Setup_Prom.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
a82c2a799f0ea37604e72031567343140569d5c63e7c4d1aa6d3d7ace7f6ab89 : WAPT/changelog.txt
1692c2fdf6e0fb19ae5f266ea86b41a19be9a6d0c989ea8fe303778eeeaaa37a : WAPT/control
18ea3aa5e6ea9c96685273c6804815e7a48cef1b1529913b4be2f9a5ab8ae082 : WAPT/icon.png
b10deb65012020b96544dc69ea6a2efe396c7cafafebb855eb90a1ac63e13a08 : luti.json
08229a4ef135d269ff2c5b92782763ca5c10d647f0543b3287fb7191359e48ed : setup.py
a5c3abb513924370b12217b102a07779ea17127e008126606fa5ce1746044509 : update_package.py

https://www.foxit.com/pdf-reader/version-history.php
12.1.2.15332-41
===
Switch installer to MSI (since the new EXE is completely broken)
Now using default install location (makepath(programfiles32, "Foxit Software", "Foxit PDF Reader"))
Using ADDLOCAL default features
Disabling Cloud Drive plugins
Disable FoxitInnerPluginFoxitUpdater

12.0.2.12465-33
===
URLs changed from foxitsoftware.com to foxit.com
Zoom 100% by default

11.2.2.53575-30
===
Disabling internet in the app, telemetry, advertisement and promotion
Avoiding errors with set_service_start_mode()

11.2.1.53537-26
===
Removing old_app_dir
Disabling update-check
Cleaning incorrect reg values in HKCU
Updating EXE files corresponding to new names
WAPT 2.0 minimum