tis-7zip

21.07-36
7-Zip is a free and open-source file archiver with a high compression ratio
95100 downloads
Download
View on luti logo
tis-7zip icon

  Description 

  • package : tis-7zip
  • version : 21.07-36
  • architecture : x64
  • categories : Utilities
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
  • description : 7-Zip is a free and open-source file archiver with a high compression ratio
  • locale : all
  • target_os : windows
  • min_wapt_version : 1.7
  • sources : https://www.7-zip.org/download.html
  • installed_size :
  • impacted_process : 7zFM,7z,7zG
  • description_fr : 7-Zip est un logiciel gratuit et open source d'archivage de fichiers avec un taux de compression élevé
  • description_pl :
  • description_de : 7-Zip ist ein Datenkompressionsprogramm mit einer hohen Kompressionsrate
  • description_es : 7-Zip es un archivador de ficheros con una alta relación de compresión
  • description_pt : O 7-Zip é um compactador de arquivos com alta taxa de compressão
  • description_it :
  • description_nl :
  • description_ru : 7-Zip свободный файловый архиватор с высокой степенью сжатия данных
  • editor : Igor Pavlov
  • licence : LGPL
  • signature_date : 2022-05-03T12:01:26.522004
  • Homepage : https://www.7-zip.org/

  Setup.py 

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

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "7z"
ext_file_association = [
    ".001",
    ".7z",
    ".arj",
    ".bz2",
    ".bzip2",
    ".cab",
    ".cpio",
    ".deb",
    ".dmg",
    ".esd",
    ".fat",
    ".gz",
    ".gzip",
    ".hfs",
    ".lha",
    ".lzh",
    ".lzma",
    ".ntfs",
    ".rar",
    ".rpm",
    ".squashfs",
    ".swm",
    ".tar",
    ".taz",
    ".tbz",
    ".tbz2",
    ".tgz",
    ".tpz",
    ".txz",
    ".vhd",
    ".wim",
    ".xar",
    ".xz",
    ".z",
    ".zip",
    ".zipe",
]
#    ".iso",


def install():
    # Initializing variables
    package_version = control.version.split("-", 1)[0]
    bin_name = glob.glob("*%s*.msi" % bin_contains)[0]

    # Uninstalling other versions of the software
    for uninstall in installed_softwares("7-zip"):
        if Version(uninstall["version"], 2) < Version(package_version, 2) or force:
            print("Removing: %s (%s)" % (uninstall["name"], uninstall["version"]))
            killalltasks(control.impacted_process.split(","))
            try:
                run(uninstall_cmd(uninstall["key"]))
            except:
                if not "uninstall.exe" in str(uninstall_cmd(uninstall["key"])).lower():
                    raise
            if uninstall_key_exists(uninstall["key"]):
                time.sleep(10)
                if "uninstall.exe" in str(uninstall_cmd(uninstall["key"])).lower():
                    unregister_uninstall(uninstall["key"], win64app=iswin64())

    # Installing the software
    print("Installing: %s" % bin_name)
    install_msi_if_needed(bin_name, min_version=package_version)

    # File association for 7-Zip
    for ext in ext_file_association:
        register_ext(
            "7-zip",
            ext,
            '"%s" "%%1"' % (makepath(programfiles, "7-zip", "7zFM.exe")),
            icon="%s,1" % (makepath(programfiles, "7-zip", "7z.dll")),
        )


										

  Changelog 



Changelog software url : https://www.7-zip.org/history.txt



21.07-36
Switching update_package() to update_package.py
									
  manifest.sha256