tis-microsoft-edge icon

Microsoft Edge

Silent install package for Microsoft Edge

109.0.1518.100-42

  • package: tis-microsoft-edge
  • name: Microsoft Edge
  • version: 109.0.1518.100-42
  • 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: 145.85 Mo
  • installed_size: 972.65 Mo
  • homepage : https://www.microsoft.com/edge/

package           : tis-microsoft-edge
version           : 109.0.1518.100-42
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      : faecbdca-4401-4617-bc06-4a3d410a4ae1
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://docs.microsoft.com/deployedge/microsoft-edge-relnote-stable-channel
min_os_version    : 6.1
max_os_version    : 10.0
icon_sha256sum    : a7c6b09372ea7c19abbbf1e40c70610177a814692ce9d17a0096bfae2f4437c0
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : CDva3ttJEBfe+YZbFrrc3Id9NFVDQiVKbSXL9mwh2Wqanh2TNA7pmQTY85PCrj1ihQFLhsXyu6B+YcbsnILz4MADqQQBj68I1NdhVeZcOVXZhrCumEai7o2T8NWqVOreDFUL+4XCfO3J2JJV2mIIh8m/RQY2+w/uqqPRo0Z7MXfPIogutKGGnIJOfHTwAIF95MLk5BkEMzmjYQS7ih1VdLURcPth3hVCKJVPvn3DPHJcLDo/4khgJy3vIfmkRFLHogD99/QODFCAgrHF76EGfCJXPENKm9oLAXcozFvRCf3LxhUgwmaZXDnBOaQb5XMuhTKB5q1uQ/cM00nNfvGmZw==
signature_date    : 2023-06-17T03:00:15.349834
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

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

app_scheduled_tasks = [
    "MicrosoftEdgeUpdateTaskMachineCore",
    "MicrosoftEdgeUpdateTaskMachineUA",
    "MicrosoftEdgeUpdateBrowserReplacementTask",
]
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_setstring(HKEY_LOCAL_MACHINE, r"SOFTWARE\Policies\Microsoft\EdgeUpdate", "UpdateDefault", 0, type=REG_DWORD)
    registry_setstring(HKEY_LOCAL_MACHINE, r"SOFTWARE\Policies\Microsoft\EdgeUpdate", "DisableAutoUpdateChecksCheckboxValue", 1, type=REG_DWORD)
    registry_setstring(HKEY_LOCAL_MACHINE, r"SOFTWARE\Policies\Microsoft\EdgeUpdate", "AutoUpdateCheckPeriodMinutes", 0, type=REG_DWORD)

    # Stopping application scheduled tasks
    for task_name in app_scheduled_tasks:
        if task_exists(task_name):
            try:
                run(rf'schtasks /end /tn "{task_name}"')
            except:
                print(f"Unable to stop the task_name: {task_name}")

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

    for s in installed_softwares(name="^Microsoft 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)

    # Disabling application scheduled tasks
    for task_name in app_scheduled_tasks:
        if task_exists(task_name):
            try:
                disable_task(task_name)
            except:
                print(f"Unable to disable the task_name: {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 *


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    arch_dict = {
        "x86": "http://srvtemplates.ad.tranquil.it/binary_cache/MicrosoftEdgeEnterpriseX86_109.0.1518.100.msi",
        "x64": "http://srvtemplates.ad.tranquil.it/binary_cache/MicrosoftEdgeEnterpriseX64_109.0.1518.100.msi",
    }
    binaries_dict = {
        "MicrosoftEdgeEnterpriseX86_109.0.1518.100.msi": "d7629b53f763e2c18126be4d45f4543f4b6426d32c0ce34105d4975eba35a351",
        "MicrosoftEdgeEnterpriseX64_109.0.1518.100.msi": "54079f028002189efeb715e49ed908d85c8bc6282c7388fa0ac9f75f15fbecaf",
    }
    download_url = arch_dict[control.architecture]
    latest_bin = download_url.split("/")[-1]
    version = "109.0.1518.100"

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

    bin_name = latest_bin
    download_url = "http://srvtemplates.ad.tranquil.it/binary_cache/" + bin_name
    sha256 = binaries_dict[bin_name]
    if isfile(bin_name):
        if get_sha256(bin_name) != sha256:
            remove_file(bin_name)
    print("Download URL is: %s" % download_url)
    if not isfile(bin_name):
        print("Downloading: %s" % bin_name)
        wget(download_url, bin_name, sha256=sha256, proxies=proxies)
    else:
        print("Binary is present: %s" % bin_name)

    if version:
        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()
    return package_updated

2df0140a81a07e1999683d8d025d19a5fd8f58230695b4fd9bcc96174809d82b : setup.py
d56d7ce4f7c980d2352df83195931bd52d39941535bc8725d38d057c80400da7 : update_package.py
54079f028002189efeb715e49ed908d85c8bc6282c7388fa0ac9f75f15fbecaf : MicrosoftEdgeEnterpriseX64_109.0.1518.100.msi
a7c6b09372ea7c19abbbf1e40c70610177a814692ce9d17a0096bfae2f4437c0 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
819eb442d8fe33d26b01330ee02d1dd21d9990f709b2dd4a17cbea552c645185 : WAPT/changelog.txt
2694acc707370d267e287c6fa99db27fdc3854760e17d96f78b363fc69ce484b : luti.json
62cf61ab5e992451d2595dd7a5ed7885aa91f145ec208fce31054d4e331dfd42 : WAPT/control

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


-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