tis-sysinternals-autoruns

14.07-3
Autoruns is free software that is used to manage applications that start automatically when Windows starts up.
38 downloads
Download
View on luti logo
tis-sysinternals-autoruns icon

  Description 

  • package : tis-sysinternals-autoruns
  • version : 14.07-3
  • architecture : all
  • 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.
  • 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 :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Microsoft Systernal
  • licence : freeware
  • signature_date : 2022-01-09T04:02:11.790159
  • Homepage : https://docs.microsoft.com/sysinternals/downloads/autoruns

  Setup.py 

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

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 = "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"


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

										

  Changelog 



Changelog software url : https://docs.microsoft.com/sysinternals/



No changelog.txt.
									
  manifest.sha256