tis-element
1.11.110-0
Element is a free and open-source software instant messaging client implementing the Matrix protocol
5 téléchargements
Voir le résultat de la construction

- package : tis-element
- name : Element
- version : 1.11.110-0
- categories : Utilities
- maintainer : WAPT Team,Tranquil IT,Ingrid TALBOT
- editor :
- licence :
- locale : all
- target_os : windows
- impacted_process : Element
- architecture : x64
- signature_date : 2025-09-02 13:33
- size : 172.37 Mo
- installed_size : 674.87 Mo
package : tis-element
version : 1.11.110-0
architecture : x64
section : base
priority : optional
name : Element
categories : Utilities
maintainer : WAPT Team,Tranquil IT,Ingrid TALBOT
description : Element is a free and open-source software instant messaging client implementing the Matrix protocol
depends :
conflicts :
maturity : PREPROD
locale : all
target_os : windows
min_wapt_version : 2.3
sources :
installed_size : 674868071
impacted_process : Element
description_fr :
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor :
keywords : messaging
licence :
homepage :
package_uuid : b608de94-f6ca-49da-bd70-e87479a3b44c
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum :
signer : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date : 2025-09-02T13:33:01.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 : WPGiEzCxNuXmm6fEx6sNpnaQ0cQMHgaKT7333ya3d2/j8Rpr+f2TrXIy73nmKyjSVYRGE1viSunPbwbNjwbs+TeUB6Mz5hoz6aGBbMUw2xIlb+CTztD4uSxayLFQFZ6ApUmAxH2iv1K1tdCCT+2YLYGcH5mR36mqDbz0O5gHg14hYuMYufy7MsZJ7wxJe/ys1sEzTIkNoCr2s8cXZQeJ1E8rokWOywKSrPnec56RDFR1eSUH/7zd0svhr410843YhQMjf/P2lMbN2+PFjhBKG86BVtbRwI57KhDBrka6Q2kvBZNiaC6DdxCcbF3cTbjNjShEzIlXE727S7IHlyXx9A==
# -*- coding: utf-8 -*-
from setuphelpers import *
import time
element_install_dir = makepath(programfiles32, "element_install")
element_install_path = makepath(element_install_dir, "ElementSetup.exe")
def install():
mkdirs(element_install_dir)
filecopyto("ElementSetup.exe", element_install_path)
element_squirrel_remove()
def session_setup():
programdata_user_dir = makepath(programdata, get_current_user)
programdata_app_dir = makepath(programdata_user_dir, "Element")
if isdir(programdata_app_dir):
if not isfile(makepath(programdata_app_dir, ".dead")):
try:
app_uninstall_cmd = rf'"{programdata_app_dir}\Update.exe" --uninstall -s'
run(app_uninstall_cmd)
except:
print("Unable to remove Element in: %s" % programdata_app_dir)
remove_tree(programdata_app_dir)
if dir_is_empty(programdata_user_dir):
remove_tree(programdata_user_dir)
# Install app
user_app_dir = makepath(user_local_appdata, "Element")
element_versions = glob.glob(makepath(user_app_dir, "**/ElementSetup.exe"))
if element_versions:
element_version = "1.0"
for d in element_versions:
if Version(get_file_properties(d)["ProductVersion"]) > Version(element_version):
element_version = get_file_properties(d)["ProductVersion"]
if Version(control.get_software_version()) > Version(element_version):
run('"%s"' % element_install_path)
else:
print("Element already up-to-date (%s)" % element_version)
else:
run('"%s"' % element_install_path + " --silent")
# Element interact differently if user is admin
if running_as_admin():
element_squirrel_remove()
def uninstall():
if isdir(element_install_dir):
remove_tree(element_install_dir)
element_squirrel_remove()
# if discord was uninstalled a .dead file is left behind to prevent automatic reinstall
for user_dir in glob.glob(makepath(systemdrive, "Users", "*")):
# "C:\Users\username\AppData\Local\Discord\Update.exe"
local_appdata_app_dir = makepath(user_dir, "AppData", "Local", "Element")
if isdir(local_appdata_app_dir):
if not isfile(makepath(local_appdata_app_dir, ".dead")):
try:
app_uninstall_cmd = rf'"{local_appdata_app_dir}\Update.exe" --uninstall -s'
print(app_uninstall_cmd)
run(app_uninstall_cmd)
except:
print("Unable to remove Element for user: %s" % user_dir.split(os.sep)[-1])
remove_tree(local_appdata_app_dir)
# "C:\Users\jpadmin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Element Inc"
start_shortcut = makepath(user_dir, r"AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Element")
desktop_shortcut = makepath(user_dir, r"Desktop\Element.lnk")
if isfile(desktop_shortcut):
remove_file(desktop_shortcut)
if isdir(start_shortcut):
remove_tree(start_shortcut)
def element_squirrel_remove():
squirrel_dir = makepath(programdata, "SquirrelMachineInstalls")
element_old_installer = makepath(programdata, "Element.exe")
if isfile(element_old_installer):
remove_file(element_old_installer)
if dir_is_empty(squirrel_dir):
remove_tree(squirrel_dir)
from setuphelpers import *
import waptlicences
def update_package():
# Declaring local variables
package_updated = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
update_dict = {"windows": ".exe"}
download_url = "https://packages.element.io/desktop/install/win32/x64/Element%20Setup.exe"
latest_bin = download_url.rsplit("/")[-1].replace("%20","")
version_url = "https://api.github.com/repos/element-hq/element-web/releases/latest"
# Getting latest version information from official sources
json_load = wgets(version_url, proxies=proxies, as_json=True)
version = json_load["tag_name"].replace("v", "").replace(".windows", "")
# Downloading latest binaries
print(f"Latest version of {control.name} is: {version}")
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)
# Check signature bin
expected_issuer = 'NEW VECTOR LTD'
sign_name = waptlicences.check_exe_signing_certificate(latest_bin)[0]
if sign_name != expected_issuer:
error('Bad issuer %s != %s ' % (sign_name,expected_issuer))
# Changing version of the package
if Version(version) > Version(control.get_software_version()):
print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
package_updated = True
else:
print(f"Software version up-to-date ({Version(version)})")
# Deleting binaries
for f in glob.glob("*.exe"):
if f != latest_bin:
remove_file(f)
control.set_software_version(version)
control.save_control_to_wapt()
return package_updated
864a2bddd582111a1798da22cfe4f04e5f9f9cc80ecea313ee7df8d6053fbf1c : ElementSetup.exe
: WAPT
01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
4e3fc050f2fffb70964a3876bd4a7a0b021b6c51f87a01badc58dbb83a8c9dfd : WAPT/control
811fe0d77b75bc93105bd47289b9e289c7515e12d4f0d286d7acc4484f6556a4 : luti.json
514cf218c16e4bb56772b0bc958255688efe2bf1aaa0414725198f3afa42d742 : setup.py
33193804fc4455a9ec5a929946a08e1d0278dc452831ab9c7d917a0536319dbb : update_package.py