tis-processexplorer icon

Process Explorer

Silent install package for Process Explorer

17.06-1

  • package: tis-processexplorer
  • name: Process Explorer
  • version: 17.06-1
  • categories: System and network
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor: Mark Russinovich
  • licence: Freeware
  • locale: all
  • target_os: windows
  • impacted_process: procexp,procexp64,procexp64a
  • architecture: all
  • signature_date:
  • size: 3.47 Mo
  • installed_size: 4.37 Mo
  • homepage : https://docs.microsoft.com/sysinternals/downloads/process-explorer

package           : tis-processexplorer
version           : 17.06-1
architecture      : all
section           : base
priority          : optional
name              : Process Explorer
categories        : System and network
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : Process Explorer is a freeware task manager and system monitor for Microsoft Windows
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://docs.microsoft.com/sysinternals/downloads/process-explorer
installed_size    : 4374528
impacted_process  : procexp,procexp64,procexp64a
description_fr    : Process Explorer est un gestionnaire de tâches et un moniteur système gratuits pour Microsoft Windows
description_pl    : Process Explorer to darmowy menedżer zadań i monitor systemu dla Microsoft Windows
description_de    : Process Explorer ist ein kostenloser Task-Manager und Systemmonitor für Microsoft Windows
description_es    : Process Explorer es un gestor de tareas gratuito y un monitor del sistema para Microsoft Windows
description_pt    : Process Explorer é um gestor de tarefas freeware e monitor de sistema para Microsoft Windows
description_it    : Process Explorer è un task manager e un monitor di sistema freeware per Microsoft Windows
description_nl    : Process Explorer is een freeware taakbeheerder en systeemmonitor voor Microsoft Windows
description_ru    : Process Explorer - это бесплатный менеджер задач и системный монитор для Microsoft Windows
audit_schedule    : 
editor            : Mark Russinovich
keywords          : process,explorer,task,tasks
licence           : Freeware
homepage          : https://docs.microsoft.com/sysinternals/downloads/process-explorer
package_uuid      : 7d0149b0-91f4-4380-ab05-91fb45aa806d
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 5.1
max_os_version    : 
icon_sha256sum    : 86c52b7eca7320ed582b630c65d2665b6adbc7e3b186e86612f2c115c1b439d8
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : jul29cS8khT7XRfl9lmyZZs6aIdlXxuz1pumiwRP4oKpciZr4Vhu/l9Spt1R3E16CHRGOZ01Bzlkq4+/5WUAWtuE/WA4m8MnmKI3EfuvlMzoMcQ/oAzRMzCEg5xD6bFfdJEeuM7a7pf0zA5gg3I0/YXp9bB3k2j/6NYtNa4W1fCOOH2Xgl6vzwFhnHdLo8W8VAwlwVnWwwanNQzEfL85dWq2oPdW4t+93XY4koXcmvSLcYyYGqh3CIqtmX3A7urPWaUvomDr7qw9rAFCsSOykcLF7G+fu2nDbJrpfhjWwTNjVf4iIU5XqxI9A1B3IgpAh8kA+ISqeyf4eCjMhfB36w==
signature_date    : 2024-06-08T09:01:25.147478
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 *

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
app_name = "Process Explorer"
app_dir = makepath(programfiles32, app_name)


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob("*ProcessExplorer*.zip")[0]
    if isARM64():
        app_path = makepath(app_dir, "procexp64a.exe")
    elif iswin64():
        app_path = makepath(app_dir, "procexp64.exe")
    else:
        app_path = makepath(app_dir, "procexp.exe")

    # Getting installed software version
    if isfile(app_path):
        installed_version = get_version_from_binary(app_path)
    else:
        installed_version = None

    # Installing software
    print("Installing: %s" % app_name)
    if installed_version is None or installed_version < package_version or force:
        killalltasks(control.get_impacted_process_list())
        if isdir(app_dir):
            remove_tree(app_dir)
        mkdirs(app_dir)
        print("Extracting: %s to: %s" % (bin_name, app_dir))
        unzip(bin_name, app_dir)

        # Creating shortcuts
        create_desktop_shortcut(app_name, app_path)
        create_programs_menu_shortcut(app_name, app_path)

        # Adding software to "list-registry"
        register_windows_uninstall(control, win64app=False)
    else:
        print("%s already installed. Skipping" % app_name)


def uninstall():
    # Uninstalling software
    killalltasks(control.get_impacted_process_list())
    if isdir(app_dir):
        remove_tree(app_dir)
    unregister_uninstall(app_name)

    # Removing shortcuts
    remove_desktop_shortcut(app_name)
    remove_programs_menu_shortcut(app_name)


def audit():
    # Declaring local variables
    package_version = control.get_software_version()
    if isARM64():
        app_path = makepath(app_dir, "procexp64a.exe")
    elif iswin64():
        app_path = makepath(app_dir, "procexp64.exe")
    else:
        app_path = makepath(app_dir, "procexp.exe")

    # Getting installed software version
    if isfile(app_path):
        installed_version = get_version_from_binary(app_path)
    else:
        installed_version = None

    # Auditing software
    print("Auditing: %s" % control.package)
    if installed_version is None or Version(installed_version) < Version(package_version):
        print("%s version is incorrect (%s)" % (app_name, installed_version))
        return "ERROR"
    else:
        print("%s is installed in correct version (%s)" % (app_name, installed_version))
        return "OK"

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

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
app_name = "Process Explorer"


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    url = "https://docs.microsoft.com/sysinternals/downloads/process-explorer#related-links"
    download_url = "https://download.sysinternals.com/files/ProcessExplorer.zip"
    latest_bin = download_url.split("/")[-1]

    # Getting latest version from official website
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url, "h1", proxies=proxies, timeout=10):
        if "Process Explorer" in bs_search.string:
            version = bs_search.string.replace("Process Explorer v", "")
            break

    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL is: %s" % download_url)

    # Downloading latest binaries
    if isfile(latest_bin):
        remove_file(latest_bin)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)

        # Checking version from file
        unzip(latest_bin)
        dir_name = latest_bin.split(".")[0]
        version_from_file = get_version_from_binary(makepath(dir_name, "procexp.exe"))
        remove_tree(dir_name)

        # if not version_from_file.startswith(version) and version_from_file != '':
        if Version(version_from_file) != Version(version) and version_from_file != "":
            print("Changing version to the version number of the binary")
            version = version_from_file
        else:
            print("Binary file version corresponds to online version")

    # 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)))
        result = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
    # control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating update-package-sources
    return result

2af10753dbe57907811b62bc974571cfd45547bddccf3194bf7e0da7bfb59c58 : setup.py
7121cd004a14fe4a95ab63d9f17673c895e3534219cfbe1ac94f69871f895b5e : update_package.py
86c52b7eca7320ed582b630c65d2665b6adbc7e3b186e86612f2c115c1b439d8 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
135a0a981359e5120ba4c180a105a3015a59fd7dd7a0a1d14dcead11e9eb81ea : luti.json
54336cd4f4608903b1f89a43ca88f65c2f209f4512a5201cebd2b38ddc855f24 : ProcessExplorer.zip
fd999f74726a3399c86cdd8d9fa4f57f50680eb8e3cdfe2bb596ea89e9e3889c : WAPT/control