tis-rufus

4.9-10
Rufus is a utility that helps format and create bootable USB flash drives, such as USB keys/pendrives, memory sticks, etc.
5647 downloads
Download
See build result See VirusTotal scan
tis-rufus icon
  • package : tis-rufus
  • name : Rufus
  • version : 4.9-10
  • 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 : 2025-06-21 10:00
  • size : 2.08 Mo
  • installed_size : 1.38 Mo
  • homepage : https://rufus.ie/
package           : tis-rufus
version           : 4.9-10
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          : PROD
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      : 27e68aa2-2dae-4508-8041-feea161f3fa1
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            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-06-21T10:00:43.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         : EWFYihH0hUY5UXS36wB4vvwsRM3nxeO0K9QnSEEYGVVO90ntsqzUIZLUV3s3W/SVtmDDlaJEkzovfpXv8+qtFEgXGBeO4MThURSYjl5ptuOfx1YbfQlC1RCVo7JI15ScC7YYI76DhOejhDPmfiGhJDvWBDDQhQSysf2OSMndZ9MhB7ANxueH5vZyK8vp4oRvS62SlMZ1MTndDjSxe6TVHCzWCn7V8rMikfKx9693nk+dV6o9mTB+kYE5nZkB1uEf1t6x1aK0Arq52oNtbvBb3Z7JMHOl48XT8Cp7Igt4sGGopGj2cbhYKlOBXXJ6Kymvg70dI+zYbDRKT5opmg4hiQ==
# -*- 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 installed_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
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
ff05a09ea53dde8763aae43bffe5eea62becf6eca9a6d02236ac2e113fad1c0b : WAPT/control
666751cd65f0e0345484cb7cc7cf5bbaf35bd6952c0ecbd25484c00c3c716efb : WAPT/icon.png
3b6211ec76d68e9764aa0f29293ef8734de567cd0e5c1ca6752995343a7db2b0 : luti.json
497f796e6d076d4855d697965c04626e6d3624658fce3eca82ab14f7414eede2 : rufus.exe
75f1059e6c32cfc7e7b4c03b82ba783be2772fe258bef592374de4a424b5742a : setup.py
57e592a44a9a3bf92066479b60506617370ecc26d9a43d84f1215c9111f13cd2 : update_package.py