tis-rufus icon

Rufus

Paquet d’installation silencieuse pour Rufus

4.12-11
Utilities
Utilities

Les paquets PREPROD sont des paquets construits via LUTI. Ils restent généralement 5 jours en PREPROD, après quoi un deuxième scan VirusTotal est effectué pour vérifier que le status n'a pas changé.
Si le paquet réussit ce dernier contrôle, il est promu en PROD et publié sur le store.

  • package: tis-rufus
  • name: Rufus
  • version: 4.12-11
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor: Pete Batard
  • licence: GPLv3+
  • locale: all
  • target_os: windows
  • impacted_process: rufus
  • architecture: all
  • signature_date:
  • size: 1.92 Mo
  • installed_size: 1.38 Mo
  • homepage : https://rufus.ie/

package           : tis-rufus
version           : 4.12-11
architecture      : all
section           : base
priority          : optional
name              : Rufus
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : Rufus is a utility that helps format and create bootable USB flash drives, such as USB keys/pendrives, memory sticks, etc.
depends           : 
conflicts         : 
maturity          : PREPROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://github.com/pbatard/rufus/releases
installed_size    : 1384448
impacted_process  : rufus
description_fr    : Rufus est un utilitaire permettant de formater et de créer des média USB démarrables, tels que clés USB, mémoire flash, etc.
description_pl    : Rufus to narzędzie, które pomaga formatować i tworzyć bootowalne dyski USB, takie jak klucze USB/pendrivy, karty pamięci itp.
description_de    : Rufus ist ein Werkzeug, welches dabei hilft, bootfähige USB-Laufwerke zu erstellen, wie beispielweise USB-Keys, Speichersticks usw.
description_es    : Rufus es una utilidad que le ayuda a formatear y crear soportes USB de arranque, como «pendrives», tarjetas de memoria, etcétera.
description_pt    : Rufus é um utilitário que ajuda a formatar e criar unidades flash USB de arranque, tais como chaves/pendrives USB, cartões de memória, etc
description_it    : Rufus è un'utility che aiuta a formattare e creare unità flash USB avviabili, come chiavi/pendrive USB, chiavette di memoria, ecc
description_nl    : Rufus is een hulpprogramma dat helpt bij het formatteren en maken van opstartbare USB flash drives, zoals USB sleutels/pendrives, memory sticks, enz
description_ru    : Rufus - это утилита, которая помогает форматировать и создавать загрузочные USB-накопители, такие как USB-носители, карты памяти и т.д
audit_schedule    : 
editor            : Pete Batard
keywords          : USB,boot,utility,create,flash,drives,drive
licence           : GPLv3+
homepage          : https://rufus.ie/
package_uuid      : 5fbb9620-5c9c-4514-966e-924fa8bc0d64
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/pbatard/rufus/blob/master/ChangeLog.txt
min_os_version    : 6.1
max_os_version    : 
icon_sha256sum    : 666751cd65f0e0345484cb7cc7cf5bbaf35bd6952c0ecbd25484c00c3c716efb
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2026-01-30T14:08:25.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         : KJb4zb1TQnTqotjXpA5aD/DRvnM57kBWSWnZevRDiT69t2/ZNvsEuW7pPy8/J0waRg94hQ21gTrn+04fs5DgcNejUa9TbUcydGMdswZcSqflNw6GKzPAztdyE28F8QlUe5bYvLgnNZmDMrDEa1YDIbKDiIRRbQvP1zqguWQ8gs9nUPTd8tTE4CjZkpUEwibyFvevjpP7DY3K+UBtqeci9+5BJ421p/C0x94Wx2vtrFFvXXX8NfyXKlXJOiaDzeMmIoLE3vzWZjRSSqbN/hujtv5mI0hmHGXOvbUNEFdB15p5YcW8QV62TR+z+1q6QsNzPZPbi+oGDO8oWfEs3kyFwA==

# -*- 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_name = "rufus.exe"
app_name = "Rufus"
app_dir = makepath(programfiles32, app_name)
app_path = makepath(app_dir, bin_name)


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    app_path = makepath(app_dir, bin_name)

    # 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())
        mkdirs(app_dir)
        if isfile(app_path):
            remove_file(app_path)
        print("Copying: %s to: %s" % (bin_name, app_dir))
        filecopyto(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 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 session_setup():
    print("Disabling: update-check on start-up")
    registry_set(HKEY_CURRENT_USER, r"SOFTWARE\Akeo Consulting\Rufus", "UpdateCheckInterval", 0xFFFFFFFF, type=REG_DWORD)


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 or installed_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 *
import json

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_name = "rufus.exe"


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    git_repo = "pbatard/rufus"
    api_url = "https://api.github.com/repos/%s/releases/latest" % git_repo
    bin_end = bin_name.split(".")[-1]
    avoid_bin_end = "p.exe"

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    for download in json_load["assets"]:
        if download["name"].endswith(bin_end) and download["name"] != avoid_bin_end:
            download_url = download["browser_download_url"]
            break

    version = json_load["tag_name"].replace("v", "")
    latest_bin = bin_name

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

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

        # Checking version from file
        version_from_file = get_version_from_binary(latest_bin)
        if not version_from_file.startswith(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

01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
fa994d5409dd037ef27df3e30696dc5e53fcd9608599f44be2e17c45bbea40cb : WAPT/control
666751cd65f0e0345484cb7cc7cf5bbaf35bd6952c0ecbd25484c00c3c716efb : WAPT/icon.png
2f1fbcbf3a839a85e71122d313c14a23739ed7e130d3cd253fb7b00aa5c8b1d5 : luti.json
c19e9aea0e944dcd36bcde3d5bebb60772de4afd844c6ae7cb7f5c5ad5742ae0 : rufus.exe
7316e8babde0c0640ed6060593ee405d0df102ab3ed84cf5bd0cb4c6c25a2b30 : setup.py
57e592a44a9a3bf92066479b60506617370ecc26d9a43d84f1215c9111f13cd2 : update_package.py