tis-foxit icon

Foxit PDF Reader

Silent install package for Foxit PDF Reader

2025.2.0.33046-45

  • package: tis-foxit
  • name: Foxit PDF Reader
  • version: 2025.2.0.33046-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: x64
  • signature_date:
  • size: 211.44 Mo
  • installed_size: 699.83 Mo
  • homepage : https://www.foxit.com/
  • conflicts :

package           : tis-foxit
version           : 2025.2.0.33046-45
architecture      : x64
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      : 567cdd5c-8b15-4bd6-a684-cccaa41bf3d1
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-08-24T16:00:18.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         : sdZeSXoHjoik8peTNH5Vxkt7hcu6Ye880q4QFeqosfxmw8fNUVP4k8YH/Knmpe569/qcdm7++59DO+0bYWRNzLLkSZC0tw5iwIU7v/AWM1MJ+kvcpmXSQiv+c8VnZkQvzdprTn4X/cAmYkK/zo5yFPsWDqnKLPeFS6Om1wvF8BkUF+CaOQixyQZl9URZMS0chEznuzR33CDuv1xfR3oBT2R/d2NpcmDGsGYWkIjjtOcmcDE1A6AgvvXw5M4/Yiz98WvxPo5CjacL1bxH1ggPap4fq/rs/kX6cxFIY5cActow6/rdFgJKXf9omh5hysYqKe/Yw5xZ/XQ295obDdfP4Q==

# -*- 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="/quiet /norestart",
        timeout=900,
        key="{07076c18-fbda-44e6-81c4-4bf87112af2a}",
        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/pdf-reader-thanks.html?product=Foxit-Reader&platform=Windows&version=&package_type=&language=ML&formId=download-reader"  # Do not use the URL: "language=English" (it will not download language packs)

    for bs_search in bs_find_all(url, "div", "class", "version_id active", proxies = proxies):
        if "Version" in bs_search["id"]:
            version = bs_search["id"].split("_")[1]
            shorter_version = version.rsplit(".",1)[0]
            short_version = shorter_version.rsplit(".",1)[0].replace(".", "")
            download_url = f"https://cdn01.foxitsoftware.com/product/reader/desktop/win/{shorter_version}/FoxitPDFReader{short_version}_L10N_Setup_Prom_x64.exe"
            latest_bin = download_url.split("/")[-1]
            break

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

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

    control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating update-package-sources
    return package_updated

31db3256b8f5ec55ec9bc5a278a03c938802ed17a61fe6394e196e5fa4fed1bd : FoxitPDFReader20252_L10N_Setup_Prom_x64.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
a82c2a799f0ea37604e72031567343140569d5c63e7c4d1aa6d3d7ace7f6ab89 : WAPT/changelog.txt
032d3242c8b61f8fbf69fc8a4f1fe63cb8ddfa95bf514b46cecf458c6a196ce4 : WAPT/control
18ea3aa5e6ea9c96685273c6804815e7a48cef1b1529913b4be2f9a5ab8ae082 : WAPT/icon.png
524bfee8d4348ed05c0ebbe74f941ec3fa06e8ff696e52bc78aca225a6d0ec70 : luti.json
78881dfd5177c67f86a36c06cda0d15edccab8e49a1a2d1ac717d809e464e53e : setup.py
f325f0c06ec14962761e94a8101c4ad33d7535bf9aa70bfe7d47c687a7869928 : 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