tis-microsoft-edge icon

Microsoft Edge

Paquet d’installation silencieuse pour Microsoft Edge

140.0.3485.66-48

  • package: tis-microsoft-edge
  • name: Microsoft Edge
  • version: 140.0.3485.66-48
  • categories: Internet
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor: Microsoft
  • licence: proprietary_free,wapt_public
  • locale: all
  • target_os: windows
  • impacted_process: msedge,MicrosoftEdgeUpdate
  • architecture: x86
  • signature_date:
  • size: 172.04 Mo
  • installed_size: 972.65 Mo
  • homepage : https://www.microsoft.com/edge/

package           : tis-microsoft-edge
version           : 140.0.3485.66-48
architecture      : x86
section           : base
priority          : optional
name              : Microsoft Edge
categories        : Internet
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : Microsoft Edge is a cross-platform web browser created and developed by Microsoft
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.1
sources           : https://www.microsoft.com/edge/business/download
installed_size    : 972651014
impacted_process  : msedge,MicrosoftEdgeUpdate
description_fr    : Microsoft Edge est un navigateur web multiplateforme créé et développé par Microsoft
description_pl    : Microsoft Edge to wieloplatformowa przeglądarka internetowa stworzona i rozwijana przez firmę Microsoft
description_de    : Microsoft Edge ist ein plattformübergreifender Webbrowser, der von Microsoft entwickelt wurde
description_es    : Microsoft Edge es un navegador web multiplataforma creado y desarrollado por Microsoft
description_pt    : Microsoft Edge é um navegador web multiplataforma criado e desenvolvido pela Microsoft
description_it    : Microsoft Edge è un browser web multipiattaforma creato e sviluppato da Microsoft
description_nl    : Microsoft Edge is een cross-platform webbrowser gemaakt en ontwikkeld door Microsoft
description_ru    : Microsoft Edge - это кросс-платформенный веб-браузер, созданный и разработанный компанией Microsoft
audit_schedule    : 
editor            : Microsoft
keywords          : microsoft,edge,web,browser
licence           : proprietary_free,wapt_public
homepage          : https://www.microsoft.com/edge/
package_uuid      : ca4cf9d4-6198-45b2-ac81-ff35b54ab6c0
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://docs.microsoft.com/deployedge/microsoft-edge-relnote-stable-channel
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : a7c6b09372ea7c19abbbf1e40c70610177a814692ce9d17a0096bfae2f4437c0
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-09-12T14:05: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         : ZF5rBdI/9QL6wyjKptTtqaufIcbtVcGMQtcg7Csz+X3toBZUWVNA0RFsdG2tpD7a/WElh1LpaQMr4o8BKSrAw24fLqzb5XYZ86QKbzdOpIumni1TozAnsaFobdaTNqLC2WjE6r+RwjLfWjGYVpONPBQE6Hdu7AoMG8+PyvBPNfm5zNx3QdgpXe/o2eRdeHQjUidJZvORXpsMf4IXck3om+VbCsBf7pUxV81twQ01eLorBLdDw/at2F7A+x5VgZSHa71SMyOQO5hIlm04HHSX8j71uNAz+o/js/oQlMTszgPuzW0Lpo7pENbICgpyIZTxgWxWbn+Q8cYAWp7FuBR52g==

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


##app_scheduled_tasks = [
##    "MicrosoftEdgeUpdateBrowserReplacementTask",
##    "MicrosoftEdgeUpdateTaskMachineCore",
##    "MicrosoftEdgeUpdateTaskMachineUA",
##    "MicrosoftEdgeUpdateTaskUser"
##]

app_services = [
    "MicrosoftEdgeElevationService",
    "edgeupdatem",
    "edgeupdate",
]

def install():
    # Declaring local variables
    bin_name = glob.glob("MicrosoftEdgeEnterprise*.msi")[0]
    app_uninstallkey = get_msi_properties(bin_name)["ProductCode"]

    # Disabling automatic updates (https://admx.help/?Category=EdgeChromium&Policy=Microsoft.Policies.Update::Pol_DefaultUpdatePolicy)
    registry_deletekey(HKEY_LOCAL_MACHINE, r"SOFTWARE\Policies\Microsoft", "EdgeUpdate")
    registry_set(HKEY_LOCAL_MACHINE, r"SOFTWARE\Policies\Microsoft\EdgeUpdate", "UpdateDefault", 0)
    registry_set(HKEY_LOCAL_MACHINE, r"SOFTWARE\Policies\Microsoft\EdgeUpdate", "DisableAutoUpdateChecksCheckboxValue", 1)
    registry_set(HKEY_LOCAL_MACHINE, r"SOFTWARE\Policies\Microsoft\EdgeUpdate", "AutoUpdateCheckPeriodMinutes", 0)


    ps_scheduled_tasks = run_powershell(f'Get-ScheduledTask -TaskPath \ | Where-Object TaskName -Like "MicrosoftEdgeUpdate*"')
    # Stopping application scheduled tasks
    if ps_scheduled_tasks:
        for task_name in ps_scheduled_tasks:
            curr_task_name = task_name['TaskName']
            try:
                run(rf'schtasks /end /tn "{curr_task_name}"')
            except:
                print(f"Unable to stop the task_name: {curr_task_name}")

    # Stopping application services
    for service_name in app_services:
        if service_installed(service_name):
            try:
                if service_is_running(service_name):
                    service_stop(service_name)
            except:
                print(f"Unable to stop the service: {service_name}")

    # for s in installed_softwares("Edge"):
    #     print("Found: %s (%s)" % (s["name"], s["version"]))
    #     print(s)

    if windows_version() < WindowsVersions.Windows10:
        # Uninstalling newer versions of the software for W7/8
        for to_uninstall in installed_softwares(name="^Microsoft Edge$"):
            if Version(to_uninstall["version"]) > Version(control.get_software_version()) or force:
                print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
                try:
                    killalltasks(control.get_impacted_process_list())
                    run(uninstall_cmd(to_uninstall["key"]))
                    wait_uninstallkey_absent(to_uninstall["key"])
                except Exception as e:
                    print(e)
                    print("Remove failed: %s (%s)\nContinuing..." % (to_uninstall["name"], to_uninstall["version"]))

    #Install only if a higher version is not detected

    edge_higher_version_detected = False
    for edge in installed_softwares(name="^Microsoft Edge$"):
        if Version(edge["version"]) > Version(control.get_software_version()):
            edge_higher_version_detected = True

    if not edge_higher_version_detected:
        install_msi_if_needed(
            bin_name,
            min_version=control.get_software_version(),
            timeout=900,
            remove_old_version=True,
        )

        if windows_version() > WindowsVersions.Windows10:
            # Avoiding the usage by WAPT of the app built-in Uninstallstring for Windows 10+
            uninstallkey.remove(app_uninstallkey)

    # Removing desktop shortcut if allowed
    if params.get("remove_desktop_shortcut"):
        remove_desktop_shortcut(control.name)


    ps_scheduled_tasks = run_powershell(f'Get-ScheduledTask -TaskPath \ | Where-Object TaskName -Like "MicrosoftEdgeUpdate*"')
    if ps_scheduled_tasks:
        for tasks in ps_scheduled_tasks:
            curr_task_name = tasks['TaskName']
                # Disabling application scheduled tasks
            try:
                disable_task(curr_task_name)
            except:
                print(f"Unable to disable the task_name: {curr_task_name}")

    # Changing default start mode of the application services
    for service_name in app_services:
        set_service_start_mode(service_name, "Manual")

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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    arch_dict = {
        "x64": "http://go.microsoft.com/fwlink/?LinkID=2093437",
        "x86": "http://go.microsoft.com/fwlink/?LinkID=2093505",
    }
    download_url = requests.head(arch_dict[control.architecture], proxies=proxies, allow_redirects=True).url
    latest_bin = download_url.split("/")[-1]

    # Deleting binaries
    for f in glob.glob("*.exe") + glob.glob("*.msi"):
        print("Removing: %s" % f)
        remove_file(f)

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

    # Changing version of the package
    version = get_version_from_binary(latest_bin)
    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 or not update-package-sources
    return package_updated

554a7f4d6615dfa01447b8b7d8078d44c1b2929f74376cb901df231f092bd503 : MicrosoftEdgeEnterpriseX86.msi
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
b78e90503035f2fb97087dc34ce5e5badbaa9c932ec6b1da2ffb5018fbb35769 : WAPT/changelog.txt
44911e7ac254d3837f61beae88a80f7a156a0ca80f9951f1e7d5f623b2c6239c : WAPT/control
a7c6b09372ea7c19abbbf1e40c70610177a814692ce9d17a0096bfae2f4437c0 : WAPT/icon.png
6fd193cb1f863dd4142623bfd82432b65ca50808db5975a4b967bb86e11ee3d1 : luti.json
f7e39c570977aef3fea0fc5e9d3fc79f869255f453104f8651ae63282a9342e9 : setup.py
1d4003b8c522950d5f6bfb5ff9049ae8ceaa452fde79bbc1fcc5a401da4f2fb1 : update_package.py

https://docs.microsoft.com/deployedge/microsoft-edge-relnote-stable-channel
-43
===
Stopping MSE services and scheduled tasks before installing to avoid any issues
Adding MicrosoftEdgeUpdate in impacted_process
Reducing prints


-40
===
Drastically reduce code since Windows is unhappy when we touch MSE
No longer uninstall on Windows10+
Disabling automatic updates with HKLM\SOFTWARE\Policies\Microsoft\EdgeUpdate\UpdateDefault


104.0.1293.47-36
===
No longer deny updates and installs completely since it interfere with tis-webview2 package


103.0.1264.44-35
===
No longer removing Microsoft EdgeWebView since it can break some other apps
No longer deny updates and installs on a specific key
min_wapt_version  : 2.1


101.0.1210.53-33
===
Updating installed_size and impacted_process
Now auditing manually
Registry cleaning as fail over
Now removing Microsoft EdgeWebView
Package cleanup improved, fixed the package upgrade on W11
min_wapt_version  : 2.0