tis-patch-cleaner icon

Patch Cleaner

Paquet d’installation silencieuse pour Patch Cleaner

1.4.2.0-1

  • package: tis-patch-cleaner
  • name: Patch Cleaner
  • version: 1.4.2.0-1
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Clément Baziret
  • editor: clean,msi,msp
  • licence: proprietary_free,wapt_public
  • target_os: windows
  • impacted_process: PatchCleaner
  • architecture: all
  • signature_date:
  • size: 1.26 Mo
  • installed_size: 2.28 Mo
  • depends:

package           : tis-patch-cleaner
version           : 1.4.2.0-1
architecture      : all
section           : base
priority          : optional
name              : Patch Cleaner
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Clément Baziret
description       : Patch Cleaner is a software that clean the msi/msp files that are no longer used
depends           : tis-7zip
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 2275516
impacted_process  : PatchCleaner
description_fr    : Patch Cleaner est un logiciel qui nettoie les fichiers msi/msp qui ne sont plus utilisés
description_pl    : Patch Cleaner to oprogramowanie, które czyści pliki msi/msp, które nie są już używane
description_de    : Patch Cleaner ist eine Software, die msi/msp-Dateien, die nicht mehr verwendet werden, bereinigt
description_es    : Patch Cleaner es un software que limpia los archivos msi/msp que ya no se utilizan
description_pt    : O Patch Cleaner é um software que limpa os ficheiros msi/msp que já não são utilizados
description_it    : Patch Cleaner è un software che pulisce i file msi/msp non più utilizzati
description_nl    : Patch Cleaner is software die de msi/msp-bestanden opschoont die niet langer worden gebruikt
description_ru    : Patch Cleaner - это программа для очистки msi/msp файлов, которые больше не используются
audit_schedule    : 
editor            : clean,msi,msp
keywords          : 
licence           : proprietary_free,wapt_public
homepage          : 
package_uuid      : 3b691cae-e98e-484f-bf06-7ca6c53a1b7e
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 95229781047cf06ddc6f8c1af7c88d202ef47d57d50988cfba925555bd47465f
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-09-24T16:00:08.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         : Df55bLz0PSQAyKqvrr4GsmTNcdzBgbORqlGLOUVUN/MKbz5gWK7Z7rSM7UQIeEwAdCxr245ADuD54Jf1yH7K+hdsK+xXj+asrIXXxsJxOcuao8iRN73Kp02c4da3A/7/ZC70QBK0OuYC9prsthtaecvrcs3cmueadUPHzqOzc6AJMcj3YvccIz4uD+CXMwR7vJRVIxW86rgaF42J8uVnHt+0nVI4ETxlDxpvNucTTcEX9pU5gt+CTMYQdk5wFOPy5iqrx0IDT63Ezz7w3C86cR1aExP4ylJqbSMozBfQuUoFdd9DHpb/ydNsC5I8PqbEZ8xshnLMRuIqOc+yMUg5rg==

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

def install():
    # Declaring local variables
    bin_name = glob.glob("PatchCleaner_*.exe")[0]
    msi_dir = bin_name.split(".exe")[0]

    _7z_path = get_7z_path()
    if isdir(msi_dir):
        remove_tree(msi_dir)
    mkdirs(msi_dir)

    print("Extracting: %s to: %s" % (bin_name, msi_dir))
    run(r'"%s" x "%s" -aoa -o%s' % (_7z_path, bin_name, msi_dir))   # -aoa mode for overwrite mode

    # Installing the software
    msi_name = glob.glob(msi_dir + "\*.msi")[0]
    install_msi_if_needed(msi_name)

def get_7z_path():
    """
    Will get the 7zip binary path and return it

    Returns:
        path: path of 7zip binary
    """
    current_os = get_os_name()

    if "Windows" in current_os:
        path = makepath(programfiles, "7-Zip", "7z.exe")
        if isfile(path):
            return path
        path = makepath(programfiles32, "7-Zip", "7z.exe")
        if isfile(path):
            return path
        error("Couldn't find path to 7zip binary")

    elif "Darwin" in current_os:
        path = makepath("/usr", "local", "bin", "7zz")
        if isfile(path):
            return path
        path = path.strip("z")
        if isfile(path):
            return path
        error("Couldn't find path to 7zip binary")

    elif "Linux" in current_os:
        path = makepath("/usr", "local", "bin", "7zz")
        if isfile(path):
            return path
        path = path.strip("z")
        if isfile(path):
            return path
        error("Couldn't find path to 7zip binary")

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


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

    # Providing fixed version information
    download_url = "https://prod.downloadnow.com/4da/0e8/c2fe1f06b13985d700fe15686a1015c3bb/PatchCleaner_1.4.2.0.exe?Expires=1726793239&Signature=b19cc0d331f9aa0f71a027432a4c0aba5def3895&url=https://download.cnet.com/patchcleaner/3000-18512_4-76399133.html&Filename=PatchCleaner_1.4.2.0.exe"
    # latest_bin = download_url.split("/")[-1].split("=")[-1]
    latest_bin = "PatchCleaner_1.4.2.0.exe"
    version = "1.4.2.0"

    # Downloading latest binaries
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, sha256="6472de894c5cb6050fd80cdd893b8772aef71f8bdb5c65a0175cf7cbb90e6ec6", proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Changing version of the package
    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()

    # Validating update-package-sources
    return package_updated

6472de894c5cb6050fd80cdd893b8772aef71f8bdb5c65a0175cf7cbb90e6ec6 : PatchCleaner_1.4.2.0.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
0811a27995068df66fc71b9642e365042c9bf8576c08f37d9b43f96d058d72b6 : WAPT/control
95229781047cf06ddc6f8c1af7c88d202ef47d57d50988cfba925555bd47465f : WAPT/icon.png
9c2a8c2a862abd9cd9fe604089bd94d4a0610457d816148f05e43523b7c9e8c3 : luti.json
356e91b81ead03f190a5eb25233d1a7cd214580d140c100d941464046d8fe6cf : setup.py
79f7b6b9b4a3709afb438cf17d0229b4f6ee88695ea94b572c75ec814ccfba34 : update_package.py