tis-sysinternals-autoruns icon

Autoruns - Windows Sysinternals

Paquet d’installation silencieuse pour Autoruns - Windows Sysinternals

14.09-4

  • package: tis-sysinternals-autoruns
  • name: Autoruns - Windows Sysinternals
  • version: 14.09-4
  • categories: Utilities,System and network,Security
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Gaëtan SEGAT
  • editor: Microsoft Systernal
  • licence: freeware
  • locale: all
  • target_os: windows
  • impacted_process: Autoruns,Autoruns64,Autoruns64a,autorunsc,autorunsc64,autorunsc64a
  • architecture: all
  • signature_date:
  • size: 3.86 Mo
  • installed_size: 11.12 Mo
  • homepage : https://docs.microsoft.com/sysinternals/downloads/autoruns

package           : tis-sysinternals-autoruns
version           : 14.09-4
architecture      : all
section           : base
priority          : optional
name              : Autoruns - Windows Sysinternals
categories        : Utilities,System and network,Security
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Gaëtan SEGAT
description       : Autoruns is free software that is used to manage applications that start automatically when Windows starts up.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://docs.microsoft.com/sysinternals/downloads/autoruns
installed_size    : 11120640
impacted_process  : Autoruns,Autoruns64,Autoruns64a,autorunsc,autorunsc64,autorunsc64a
description_fr    : Autoruns est un logiciel gratuit qui sert à gérer les applications qui se lancent automatiquement au démarrage de Windows.
description_pl    : Autoruns to darmowe oprogramowanie, które służy do zarządzania aplikacjami uruchamianymi automatycznie podczas startu systemu Windows
description_de    : Autoruns ist eine kostenlose Software, mit der Sie Anwendungen verwalten können, die beim Start von Windows automatisch gestartet werden
description_es    : Autoruns es un software gratuito que se utiliza para gestionar las aplicaciones que se inician automáticamente al arrancar Windows
description_pt    : Autoruns é um software gratuito que é utilizado para gerir aplicações que se iniciam automaticamente quando o Windows arranca
description_it    : Autoruns è un software gratuito utilizzato per gestire le applicazioni che si avviano automaticamente all'avvio di Windows
description_nl    : Autoruns is gratis software die wordt gebruikt om toepassingen te beheren die automatisch starten wanneer Windows wordt opgestart
description_ru    : Autoruns - это бесплатное программное обеспечение, которое используется для управления приложениями, автоматически запускающимися при старте Windows
audit_schedule    : 
editor            : Microsoft Systernal
keywords          : System,bootup,login
licence           : freeware
homepage          : https://docs.microsoft.com/sysinternals/downloads/autoruns
package_uuid      : 10fbec4e-35f5-4dec-9fb0-42f8e31fdc9b
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://docs.microsoft.com/sysinternals/
min_os_version    : 
max_os_version    : 
icon_sha256sum    : a5196572c8f3680ec6166ef070c8d843ab8511ffdd2de859adb1f5eed7efb35d
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : xUhjAnLSA965CP59p+aM5nWD1S/2NS5i+Ur5uRX9R6O7XwIEyL9jdVVv567wHHPtlN1ToQE/lTXOaEdNnlIOXbthu/iJ8RwzDoIi72U1Ow29AGPcKRrL1f/JOx6Zcy7hYYtkE/CPh4nYXadQIPRiJcebl6byXsn2d9PY6KzvKHvb6z/0WENaQGWscJWBI7tYuEBmdcD+Amcx20VDAQ8IEctiyef5bM14M4C/XuQwfAC7MWK/bLw+49i7mlFNRnVPnSN4zNpbgYaWCpZC0+/tiPPt7DBYMuywqHHFgILNqtWSanX2khrGdOU04StpCjBMgi2gBaFK/bAX3+yoqV7wUA==
signature_date    : 2022-08-14T04:00:22.552261
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
bin_contains = "Autoruns"
app_name = "Autoruns - Windows Sysinternals"
app_dir = makepath(programfiles32, app_name)
app_path = makepath(app_dir, "Autoruns.exe")


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob("*%s*.zip" % bin_contains)[0]

    # 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 Version(installed_version) < 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"
        print("Registering: %s to Windows Registry" % app_name)
        register_windows_uninstall(control, win64app=False)
        register_uninstall(app_name, icon=app_path)
    else:
        print("%s is 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()

    # 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:
        print("%s is not installed" % (app_name, installed_version))
        return "ERROR"
    elif Version(installed_version) < Version(package_version):
        print("%s version is incorrect (%s)" % (app_name, installed_version))
        return "WARNING"
    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
bin_contains = "Autoruns"


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/en-us/sysinternals/downloads/autoruns"
    download_url = "https://download.sysinternals.com/files/Autoruns.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 "Autoruns" in bs_search.string:
            version = bs_search.string.split(" v")[-1]
            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, "Autoruns.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

04ca12d83f2e1f8daae1ae76a14f0a374ddfe372a04c928f3f6c896a05cbc391 : setup.py
caf5df09edb7533362265fdc079f0ae2d10177a4e43fed1f426820a5d6384ba0 : update_package.py
a5196572c8f3680ec6166ef070c8d843ab8511ffdd2de859adb1f5eed7efb35d : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
39219ca5de85a4ccbc73a6ae77f8e9065452ba3c0acbc2b7c707c90977957490 : luti.json
f82294355e98051aed850e567c676466c16beca333e1fe96fe7cab003e987764 : Autoruns.zip
a9c0706629d52b69111ce20d1a9a437631572f980bc029e00cbfd4665f097c5b : WAPT/control