tis-webview2 icon

Microsoft Edge WebView2 Runtime

Paquet d’installation silencieuse pour Microsoft Edge WebView2 Runtime

140.0.3485.81-12

  • package: tis-webview2
  • name: Microsoft Edge WebView2 Runtime
  • version: 140.0.3485.81-12
  • categories: Dependency
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor: Microsoft Corporation
  • licence: proprietary_free,wapt_public
  • locale: all
  • target_os: windows
  • impacted_process: msedgewebview2
  • architecture: x64
  • signature_date:
  • size: 191.60 Mo
  • installed_size: 736.75 Mo
  • homepage : https://developer.microsoft.com/microsoft-edge/webview2

package           : tis-webview2
version           : 140.0.3485.81-12
architecture      : x64
section           : base
priority          : optional
name              : Microsoft Edge WebView2 Runtime
categories        : Dependency
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : WebView2 uses Microsoft Edge as the rendering engine to display the web content in native apps
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : https://developer.microsoft.com/microsoft-edge/webview2/#download-section
installed_size    : 736748319
impacted_process  : msedgewebview2
description_fr    : WebView2 utilise Microsoft Edge comme moteur de rendu pour afficher le contenu web dans les applications natives
description_pl    : WebView2 używa Microsoft Edge jako silnika renderującego do wyświetlania treści internetowych w natywnych aplikacjach
description_de    : WebView2 verwendet Microsoft Edge als Rendering-Engine zur Darstellung von Webinhalten in nativen Anwendungen
description_es    : WebView2 utiliza Microsoft Edge como motor de renderizado para mostrar el contenido web en aplicaciones nativas
description_pt    : WebView2 utiliza o Microsoft Edge como o motor de renderização para exibir o conteúdo da web em aplicações nativas
description_it    : WebView2 utilizza Microsoft Edge come motore di rendering per visualizzare il contenuto web nelle app native
description_nl    : WebView2 gebruikt Microsoft Edge als rendering engine om de webinhoud in native apps weer te geven
description_ru    : WebView2 использует Microsoft Edge в качестве механизма рендеринга для отображения веб-контента в родных приложениях
audit_schedule    : 
editor            : Microsoft Corporation
keywords          : microsoft,edge,webview2,runtime,native,engine
licence           : proprietary_free,wapt_public
homepage          : https://developer.microsoft.com/microsoft-edge/webview2
package_uuid      : f6feeae0-4b90-48ab-b8a9-21457f040c2b
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://learn.microsoft.com/deployedge/microsoft-edge-relnote-stable-channel
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : 7e24d7595bd0360ebede1089a98fef11ab672714e57e7f97ee386edb101fed90
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-09-20T06:04:51.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         : b5QwuKV0SNX8OkWW0+f5qNb0FruOxlbssAn2FcmYjHWgdCzBqleYCcZZZuWGeltTEjUDM/+nG+SpDVmGbW7UEiKnc97n0JsPmr6b2uCecwI180f3W9N3NJQy5qDuyPF6mr6pMZkhLqdZHK4pu5hjKMTVFsj+qkKT4Ejh064WPEnSqpqzQFuX2W/AApUsJcKn7k1ridmAtvmVN4acCYuDkwnvYaQI2jKTliNzV0Qf5Sb9mNEbsSBzH3hG1sBZaW9P0jt5BdsK6iY1pXpQdXoo3mwGOPStMss1FcqWDmbXye2wLbizI+66sAxvmYsLMEyAKSCUC4draHqxvSPZf/3CTQ==

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

app_uninstallkey = "Microsoft EdgeWebView"

def install():

    bin_name = glob.glob("MicrosoftEdgeWebView2RuntimeInstaller*.exe")[0]
    software_version = control.get_software_version()

    if registry_readstring(HKEY_LOCAL_MACHINE,r"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView","Publisher"):
        if not registry_readstring(HKEY_LOCAL_MACHINE,r"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView","DisplayName"):
            print("Add registry key for displayname")
            registry_set(HKEY_LOCAL_MACHINE,r"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView","DisplayName",app_uninstallkey)

    for installed in installed_softwares(app_uninstallkey):
        if Version(installed["version"], 4) >= Version(software_version, 4):
            print("Already up to date: %s (%s)" % (installed["name"], installed["version"]))
            print("Aborting installation of %s (%s)" % (installed["name"], software_version))
            return

    run(bin_name + " /silent /install",
        accept_returncodes=[0, 3010, 2147747602],
        timeout=600,
        )


##    if registry_readstring(HKEY_LOCAL_MACHINE,r"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView","Publisher"):
##        if not registry_readstring(HKEY_LOCAL_MACHINE,r"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView","DisplayName"):
##            print("Add registry key for displayname")
##            registry_set(HKEY_LOCAL_MACHINE,r"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView","DisplayName",app_uninstallkey)

    if not uninstall_key_exists(app_uninstallkey):
        error("Error during installation")

# -*- coding: utf-8 -*-
from setuphelpers import *
import os
import sys
import time
import glob

"""
    "update_package_dependencies": [
        "tis-wapt-selenium",
        "tis-chrome"
    ]
"""


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

    update_dict = {
        "latest_bin": {
            "windows-x64": "MicrosoftEdgeWebView2RuntimeInstallerX64.exe",
            "windows-x86": "MicrosoftEdgeWebView2RuntimeInstallerX86.exe",
            "windows-arm64": "MicrosoftEdgeWebView2RuntimeInstallerARM64.exe",
        },
        "download_url": {
            "windows-x64": "https://go.microsoft.com/fwlink/?linkid=2124701",
            "windows-x86": "https://go.microsoft.com/fwlink/?linkid=2099617",
            "windows-arm64": "https://go.microsoft.com/fwlink/?linkid=2099616",
        },
    }

    latest_bin = update_dict["latest_bin"][f'{ensure_list(control.target_os)[0].split("(")[0]}-{ensure_list(control.architecture)[0]}']
    download_url = update_dict["download_url"][f'{ensure_list(control.target_os)[0].split("(")[0]}-{ensure_list(control.architecture)[0]}']

    version = wgets('https://developer.microsoft.com/en-us/microsoft-edge/webview2?form=MA13LH#download-section', proxies=proxies).split('Microsoft.WebView2.FixedVersionRuntime.')[1].split('.x64')[0].split('.x86')[0].split('.arm64')[0]

    # Changing version of the package

    if Version(version, 4) >= Version(control.get_software_version(), 4):
        if not isfile(makepath(basedir,latest_bin)):
            print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))

            # Downloading latest binaries
            print("Latest %s version is: %s" % (control.name, version))
            print("Download URL is: %s" % download_url)
            wget(download_url, latest_bin, proxies=proxies)
            control.set_software_version(version)
            control.save_control_to_wapt()
            package_updated = True
        else:
            print("Software version up-to-date (%s)" % Version(version))

    # Validating or not update-package-sources
    return package_updated


e7c6a6ecca2b8da6962a3461f5510b893c8be7c72291428a44c373bde742dcb0 : MicrosoftEdgeWebView2RuntimeInstallerX64.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
dab2d992d672d5cb2f7c6f8c295269f7bfe69636eb91a48768c5a001a5ef7ecd : WAPT/changelog.txt
a5d6aada07b7b40a19955785ba3ccc3c741b72d0c34908e78efe71da3b8b8fa0 : WAPT/control
7e24d7595bd0360ebede1089a98fef11ab672714e57e7f97ee386edb101fed90 : WAPT/icon.png
203dc45419ba0f9be55a58cacb4091f005d2e08b8be0401ecd9f2cb9db3279da : luti.json
70d86262961d651d48037cdbeaf2ab11eb3bcec9fbb988bafaea4f1af7c65d46 : setup.py
ab5383c20532376bcbb9295a01d0a633ebd906ff6613d628d6329972ae050d26 : update_package.py

https://learn.microsoft.com/deployedge/microsoft-edge-relnote-stable-channel
0-7
===
fix update_package after page changes
timeout=900

0-6
===
No longer uninstalls because it fails too often
Reducing code
Fix selenium


0-3
===
Uninstalling WebView2 user installs
Fix update_package
Globally improve code
No longer runs update_package headless since it fails