tis-webview2
109.0.1518.69-2
Microsoft Edge WebView2 Runtime
47792 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal

- package : tis-webview2
- name : Microsoft Edge WebView2 Runtime
- version : 109.0.1518.69-2
- categories : Dependency
- maintainer : WAPT Team,Tranquil IT
- editor :
- licence :
- locale : all
- target_os : windows
- impacted_process :
- architecture : x64
- signature_date : 2023-01-26 02:02
- size : 145.61 Mo
package : tis-webview2
version : 109.0.1518.69-2
architecture : x64
section : base
priority : optional
name : Microsoft Edge WebView2 Runtime
categories : Dependency
maintainer : WAPT Team,Tranquil IT
description : Microsoft Edge WebView2 Runtime
depends :
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.1
sources : https://developer.microsoft.com/fr-fr/microsoft-edge/webview2/#download-section
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 : 2513a6f7-4ab9-4cf9-b76e-0fc758199957
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : a7c6b09372ea7c19abbbf1e40c70610177a814692ce9d17a0096bfae2f4437c0
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : tarGFK7cr4w2+ZgLf6lFsLU9rWpo3jeMP6aQ5veksDpOMBclFcxoJPkqjpdLT+17dlVeK1NtcsAgL9Lip49EVDkIIpnuVQqamr0U0wN5MPDUBWE2Sse/wrjCIUWb+/AOYs8VoOjXxrTOoQ0sGlyhGz60qQ2OU0WRqwE+R9HTmycLSqLaVX0lfLGW06KFxjw72gKbPAAfGy8+J7exbxCA3thahLjIEW9uOCJPbTvaVKFaCritmOJtJIoaiLKDkplcBHLP2Q3EVO+mGIbPYF9dCXRxRUUqfZRobfEzd9xf8nJBUQ7QcxcQfTlyDNEmS39odHPoKtrQMr2wujFOocTlMQ==
signature_date : 2023-01-26T02:02:45.680464
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_uninstallkey = "Microsoft EdgeWebView"
def install():
bin_name = glob.glob("MicrosoftEdgeWebView2RuntimeInstaller*.exe")[0]
install_exe_if_needed(
bin_name,
silentflags="/silent /install",
key=app_uninstallkey,
min_version=control.get_software_version(),
accept_returncodes=[0,3010,2147747602]
)
uninstallkey.clear()
def uninstall():
for to_uninstall in installed_softwares(uninstallkey=app_uninstallkey):
print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
killalltasks(control.impacted_process.split(","))
app_uninstall_cmd = uninstall_cmd(to_uninstall["key"])
app_uninstall_cmd[5] = "--force-uninstall"
app_uninstall_cmd.remove("--verbose-logging")
run(app_uninstall_cmd, accept_returncodes=[0, 300, 19])
wait_uninstallkey_absent(to_uninstall["key"])
def audit():
# Getting installed software version
if installed_softwares(uninstallkey=app_uninstallkey):
installed_version = installed_softwares(uninstallkey=app_uninstallkey)[0]["version"]
else:
installed_version = None
# Auditing software
print("Auditing: %s" % control.package)
if installed_version is None:
print("%s is not installed" % control.name)
return "ERROR"
# elif Version(installed_version) != Version(control.get_software_version()):
# print("%s is installed in version (%s) instead of (%s)" % (control.name, installed_version, control.get_software_version()))
# return "WARNING"
else:
print("%s is installed in correct version (%s)" % (control.name, installed_version))
return "OK"
# -*- coding: utf-8 -*-
from setuphelpers import *
import sys
import time
import os
import glob
"""
"update_package_dependencies": [
"tis-wapt-selenium",
"tis-chrome"
]
"""
def update_package():
# Importing Selenium with tis-wapt-selenium package
sys.path.insert(0, makepath(WAPT.wapt_base_dir, "selenium"))
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
# Declaring local variables
package_updated = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
arch_dict = {
"x64": "MicrosoftEdgeWebView2RuntimeInstallerX64.exe",
"x86": "MicrosoftEdgeWebView2RuntimeInstallerX86.exe",
"arm64": "MicrosoftEdgeWebView2RuntimeInstallerARM64.exe",
}
latest_bin = arch_dict[control.architecture]
# Deleting binaries
for f in glob.glob("*.exe") + glob.glob("*.msi"):
print("Removing: %s" % f)
remove_file(f)
version = control.get_software_version()
current_path = os.getcwd()
chrome_options = Options()
chrome_options.add_argument("--headless")
chrome_options.add_argument("--disable-notifications")
chrome_options.add_experimental_option(
"prefs",
{
"download.default_directory": f"{current_path}",
"download.prompt_for_download": False,
"download.directory_upgrade": True,
"safebrowsing_for_trusted_sources_enabled": False,
"safebrowsing.enabled": False,
},
)
# download with selenium
driver = webdriver.Chrome(options=chrome_options, executable_path=makepath(WAPT.wapt_base_dir, "selenium", "chromedriver.exe"))
driver.get("https://developer.microsoft.com/fr-fr/microsoft-edge/webview2/#download-section")
# get latest version version
version = driver.find_element(By.XPATH, "/html/body/div[1]/div[2]/article/section[2]/section[2]/div/div[2]/div[3]/div/select[1]/option[1]").text
driver.find_element(By.ID, control.architecture).click()
driver.find_element(By.ID, "accept-evergreen").click()
wait_download()
driver.quit()
# 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()
# Validating or not update-package-sources
return package_updated
def wait_download(delay=360):
loop = 0
while not glob.glob("*.exe"):
loop += 3
if loop > delay:
break
time.sleep(3)
16f1bbf0fd6f857f5752bf9a29cef7540470f5bfa5751e688410728d53fb7288 : setup.py
889823a5b2712faef157abff634770dce97e43b1da2fe817aca2eea41d4fd936 : MicrosoftEdgeWebView2RuntimeInstallerX64.exe
b29fc79feee0bfe2cb176ee6009d1cec504d8247193053f49220b2b99f036d79 : update_package.py
a7c6b09372ea7c19abbbf1e40c70610177a814692ce9d17a0096bfae2f4437c0 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 : WAPT/changelog.txt
0eccbb3f5d2a2a1fdce3fd572b188230f51685f3661a86883483c9791e81a158 : luti.json
d102cc9a1934d24ebc3de750c976da92f368a3c72ae3c664caad3cdbbe0dc4df : WAPT/control