tis-firefox icon

Mozilla Firefox

Silent install package for Mozilla Firefox

145.0-110
Internet
Internet

  • package: tis-firefox
  • name: Mozilla Firefox
  • version: 145.0-110
  • categories: Internet
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Jordan ARNAUD
  • editor: Mozilla Foundation,Mozilla Corporation
  • licence: MPL 2.0
  • locale: fr
  • target_os: windows
  • impacted_process: firefox
  • architecture: arm
  • signature_date:
  • size: 79.07 Mo
  • homepage : https://www.mozilla.org/
  • conflicts :

package           : tis-firefox
version           : 145.0-110
architecture      : arm
section           : base
priority          : optional
name              : Mozilla Firefox
categories        : Internet
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Jordan ARNAUD
description       : Mozilla Firefox is a free and open-source web browser
depends           : 
conflicts         : tis-firefox-esr,tis-firefox-multi-esr,tis-firefox-multi
maturity          : PROD
locale            : fr
target_os         : windows
min_wapt_version  : 2.5
sources           : https://www.firefox.com/en-US/download/all/desktop-release/
installed_size    : 
impacted_process  : firefox
description_fr    : Mozilla Firefox est un navigateur web gratuit et open source
description_pl    : Mozilla Firefox to darmowa i open-source'owa przeglądarka internetowa
description_de    : Mozilla Firefox ist ein kostenloser und quelloffener Webbrowser
description_es    : Mozilla Firefox es un navegador web gratuito y de código abierto
description_pt    : Mozilla Firefox é um navegador web gratuito e de código aberto
description_it    : Mozilla Firefox è un browser web gratuito e open-source
description_nl    : Mozilla Firefox is een gratis en open-source webbrowser
description_ru    : Mozilla Firefox - бесплатный веб-браузер с открытым исходным кодом
audit_schedule    : 
editor            : Mozilla Foundation,Mozilla Corporation
keywords          : web,browser,navigateur,firefox,mozilla
licence           : MPL 2.0
homepage          : https://www.mozilla.org/
package_uuid      : 0b0dfd93-656d-48b9-b4f9-f8612dbc6c75
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://www.mozilla.org/firefox/releases/
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : 2dc82eade364831757e067169d0039e6e0c9b693f343ea9a62db709eb1942c9e
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-11-11T16:08:41.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         : IdcZI1jy1Ht/q/FS+sWTnhz339Nc31DNFwLH16FxHg384BqmVEbzcZEpuVNXIJ2Wlwp9OJA3oYukqyvrY9jWXHshwkrYePxl+quPLMfgRHHp9Yal7d0FisFCwX8Tazks1MS08RP2a1CYU7AYjd7R+cBBYmV/zDSGiak1Ny/XT3RCm6nDhmScb6CjLmR4LzCpAbixIg+/DcuGXPuzaPyJ0KHBq8tMSHzheWwcJmPVJQbdBH4NIFD8U75bFGe4z5Vrf9DVZGfr/ScI5iVa8agZx0W57Qlx1Wg4n+OxXy6msAAUWHOcO02CTZDF84ZnieElVkwQwSWn8AbXZUWfR475Fw==

# -*- coding: UTF-8 -*-
from setuphelpers import *
import time


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

    # Translating locale
    for lang in ["fr", "en-US", "es-ES", "de", "it"]:
        if control.locale in lang:
            locale = lang

    architecture_map = {'arm': 'x64'}
    architecture = architecture_map[control.architecture]

    app_uninstallkey = "Mozilla Firefox %s (%s %s)" % (control.get_software_version(), architecture, locale)

    if windows_version() < Version(WindowsVersions.Windows11):
        app_uninstallkey = "Mozilla Firefox"
        
    # Uninstalling others versions
    for uninstall in installed_softwares(name="Mozilla Firefox"):
        if not architecture in uninstall["name"] or "ESR" in uninstall["name"]:
            print("Removing: %s" % (uninstall["name"]))
            killalltasks(control.get_impacted_process_list())
            run(uninstall_cmd(uninstall["key"]))
            time.sleep(15)  # Required for Firefox

    # Installing the software
    install_exe_if_needed(
        bin_name,
        silentflags="/S /PreventRebootRequired=false /TaskbarShortcut=false /DesktopShortcut=false /StartMenuShortcut=true /MaintenanceService=false /RegisterDefaultAgent=false /RemoveDistributionDir=false /OptionalExtensions=false",
        key=app_uninstallkey,
        min_version=control.get_software_version(),
    )

    # Making sure that Mozilla Maintenance Service is not installed
    for uninstall in installed_softwares(name="Mozilla Maintenance Service"):
        print("Removing: %s" % (uninstall["name"]))
        run(uninstall_cmd(uninstall["key"]))

    # Adding Minimal configuration for Firefox you may use the package "tis-config-firefox" for further options
    if not isfile(makepath(programfiles, "Mozilla Firefox", "distribution", "policies.json")):
        registry_set(HKEY_LOCAL_MACHINE, r"SOFTWARE\Policies\Mozilla\Firefox", "DisableAppUpdate", 1, REG_DWORD)
        registry_set(HKEY_LOCAL_MACHINE, r"SOFTWARE\Policies\Mozilla\Firefox", "DisableTelemetry", 1, REG_DWORD)

# -*- coding: UTF-8 -*-
from setuphelpers import *
import requests
import waptlicences

def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    arch_dict = {"x64": "win64", "x86": "win", "all": "win","arm" : "aarch64"}
    lang = control.locale

    # Translating locale
    if "en" in lang:
        lang = "en-US"
    if "es" in lang:
        lang = "es-ES"


    url_version = "https://www.firefox.com/en-US/releases/?redirect_source=mozilla-org"
    for bs_search in bs_find_all(url_version, "html", proxies=proxies):
            if "data-latest-firefox" in bs_search.attrs:
                latest_version = bs_search.attrs["data-latest-firefox"]


    download_url = f"https://download-installer.cdn.mozilla.net/pub/firefox/releases/{latest_version}/win64-{arch_dict[control.architecture]}/{lang}/Firefox%20Setup%20{latest_version}.exe"
    #version = download_url.split("/")[-4]
    version = latest_version
    latest_bin = download_url.split("/")[-1]


    # Getting latest version from official sources
    print("Latest %s version is: %s" % (control.name, latest_version))
    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)
    

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        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()


    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating or not update-package-sources
    return package_updated

50230ca2f05b0f85a66b8dc4326dd664bb8582dcef95764f1c44a892262dd31a : Firefox%20Setup%20145.0.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
fb52fe6b166efe0791d5cc9719c289892fbd86091b8f3ec7ef1492b4bea6f12d : WAPT/control
2dc82eade364831757e067169d0039e6e0c9b693f343ea9a62db709eb1942c9e : WAPT/icon.png
f8dbcd88b1795e7aa836e8cbbb9856c3434c4d22966c09508f9a741be59f2229 : luti.json
ebf543f0ffdc21292cb6635325705893a92d271ee2f81929b5d4b9dbc539ae27 : setup.py
ac1ffcf841c17a86d7224eb71640f98f2e85e04176a714e8e6a5481f2211394a : update_package.py