tis-microsoft-edge icon

Microsoft Edge

Silent install package for Microsoft Edge

138.0.3351.109-47

  • package: tis-microsoft-edge
  • name: Microsoft Edge
  • version: 138.0.3351.109-47
  • 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: x64
  • signature_date:
  • size: 185.92 Mo
  • installed_size: 972.65 Mo
  • homepage : https://www.microsoft.com/edge/

package           : tis-microsoft-edge
version           : 138.0.3351.109-47
architecture      : x64
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      : 6983a4c4-059d-4b96-ad2a-918b122a59f8
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-07-26T00:02:45.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         : r6s+IIze0JAkzY0JrYIcUICY8wXaZf7qUQWZ5nq++0jNVCYO1NRj+OWxv0LNx/+3bBN7lh0449rO7Yqld8ViaSxE7SYhpuw/Tv+EJtKk7ssFRtuBmRX6DXD6LBoiDi9n9OUvownIQ2rPAgo4N7HCDSldIBp7pLTP0TIXru/W6LXOjpxByFh+a/MuFr6FQ1eMqLghHLxr610eW+6QZrAFS99ItjvVgNZrvLyBwNZ6+OOMNO7ltuCjp9UZG/DPwwuY1NKf/Op1NQUT0noFIgE18wLjrZElk1qz5Z3GbQG9me/e6IbdwgyhkrQ61q8DraUfCLmKuPpvF/2D7MR8yk3+MA==

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

    stop_disable_edge_tasks()

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

    # Installing the package
    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)

    stop_disable_edge_tasks()

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

def get_edge_tasks():
    return [
        task for task in get_all_scheduled_tasks(enable_only=True)
        if task.startswith("MicrosoftEdgeUpdate")
    ]

def stop_edge_tasks():
    for task in get_edge_tasks():
        try:
            run(rf'schtasks /end /tn "{task}"')
        except:
            print(f"Unable to stop the task_name: {task}")

def disable_edge_tasks():
    for task in get_edge_tasks():
        try:
            disable_task(task)
        except:
            print(f"Unable to disable the task_name: {task}")

def stop_disable_edge_tasks():
    stop_edge_tasks()
    disable_edge_tasks()

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

5acfb39675647dce404f11d0495c46578e5b22bd760ec29d368994c120c1a1de : MicrosoftEdgeEnterpriseX64.msi
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
b78e90503035f2fb97087dc34ce5e5badbaa9c932ec6b1da2ffb5018fbb35769 : WAPT/changelog.txt
127ed228e0df2fa3c85cb605411127e8e513e0474032b67857e0cba400f315d2 : WAPT/control
a7c6b09372ea7c19abbbf1e40c70610177a814692ce9d17a0096bfae2f4437c0 : WAPT/icon.png
7b5834845a9d2b39c2874939f03787e025d53e17467d52fbfa6504c4439b82a6 : luti.json
e080e174f2e65ea9cab67f98a82cd43e88e7a29a3ebd61fac70f9b39e7e214a2 : 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