Delprof2
Silent install package for Delprof2
1.6.0-1
Utilities
Utilities
- package: tis-delprof2
- name: Delprof2
- version: 1.6.0-1
- categories: Utilities
- maintainer: WAPT Team,Tranquil IT,Clément Baziret
- editor: Helge Klein
- licence: proprietary_free,wapt_public
- target_os: windows
- impacted_process: DelProf2
- architecture: all
- signature_date:
- size: 243.41 Ko
- installed_size: 617.77 Ko
- homepage : DelProf2 is a utility for cleaning local profiles on Windows systems
package : tis-delprof2
version : 1.6.0-1
architecture : all
section : base
priority : optional
name : Delprof2
categories : Utilities
maintainer : WAPT Team,Tranquil IT,Clément Baziret
description : DelProf2 is a utility for cleaning local profiles on Windows systems
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version : 2.3
sources : https://helgeklein.com/free-tools/delprof2-user-profile-deletion-tool/
installed_size : 617771
impacted_process : DelProf2
description_fr : DelProf2 est un utilitaire de nettoyage des profils locaux sur les systèmes Windows
description_pl : DelProf2 to narzędzie do czyszczenia profili lokalnych w systemach Windows
description_de : DelProf2 ist ein Dienstprogramm zum Bereinigen lokaler Profile auf Windows-Systemen
description_es : DelProf2 es una utilidad para limpiar perfiles locales en sistemas Windows
description_pt : DelProf2 é um utilitário para limpar perfis locais em sistemas Windows
description_it : DelProf2 è un'utility per la pulizia dei profili locali nei sistemi Windows
description_nl : DelProf2 is een hulpprogramma voor het opschonen van lokale profielen op Windows-systemen
description_ru : DelProf2 - утилита для очистки локальных профилей в системах Windows
audit_schedule :
editor : Helge Klein
keywords : delprof2,utility,cleaning,local,profiles,windows,systems
licence : proprietary_free,wapt_public
homepage : DelProf2 is a utility for cleaning local profiles on Windows systems
package_uuid : 0973ab59-2caa-4b28-8e73-61cca076727c
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version : 6.1
max_os_version :
icon_sha256sum : e16a2893890341f1f7d5c3c5f45395924dbc3ecf66dc9daa5def5ce6ae9be609
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2026-02-02T10:23:29.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 : dDIucadF5fm/4spLer64okzfrajkK3mmYCZJz6fv0yA1GofUUoGu4ZnBSdVScNH96HDL+FQWbr4suEevFJcld8i9qGq1X06loBkcefvIo8qleG/ZT7cMhTipAMsxMRUCQYZpK55YVxawE/ai1uK0XGNgIVr5oUSs4fXj6RDgcnJTR30dbvli3cwp3Rq+wCmvXEM4WOHYEzGhMmUIMV55F4YBT5DP9CPVEeetCG25HpxA5yoJTKmBJz+4MJZsMkvIE5bHcQThRy/8FkE+34qTtXFm+szXimyRedERORhFOef3EMdpbXexdEpBSD+jIKlaB2JtwZGdkHoaWWTP2ckK0g==
# -*- coding: utf-8 -*-
from setuphelpers import *
app_name = "Delprof2"
app_dir = makepath(programfiles, app_name)
audit_version_number = False
win64app = None
def get_installed_version(uninstallkey):
for soft in installed_softwares(uninstallkey):
return soft.get("version", None)
return None
def install():
# Declaring local variables
zip_name = glob.glob("Delprof2*.zip")[0]
app_path = makepath(app_dir, zip_name.strip(".zip"), "DelProf2.exe")
icon_path = makepath(app_dir, zip_name.strip(".zip"), "DelProf2.exe")
package_version = control.get_software_version()
installed_version = get_installed_version(app_name)
# Installing software
if installed_version is None or Version(installed_version) < Version(package_version) or force:
print("Installing: %s (%s)" % (app_name, control.get_software_version()))
killalltasks(ensure_list(control.impacted_process))
if isdir(app_dir):
remove_tree(app_dir)
mkdirs(app_dir)
print("Extracting: %s to: %s" % (zip_name, app_dir))
unzip(zip_name, app_name)
move_directory(app_name, app_dir)
# Adding software to regitry
print("Registering: %s to Windows Registry" % app_name)
register_windows_uninstall(control, win64app=win64app)
register_uninstall(app_name, win64app=win64app, install_location=app_dir, icon=icon_path)
else:
print("%s is already installed and up-to-date (%s)" % (app_name, package_version))
# Creating custom shortcuts
create_desktop_shortcut(app_name, app_path, icon=icon_path, wDir=r"%userprofile%", arguments=r"/c %appdata%\Cmder")
create_programs_menu_shortcut(app_name, app_path, icon=icon_path, wDir=r"%userprofile%", arguments=r"/c %appdata%\Cmder")
def uninstall():
# Uninstalling software
killalltasks(ensure_list(control.impacted_process))
if isdir(app_dir):
remove_tree(app_dir)
unregister_uninstall(app_name, win64app=win64app)
# Removing shortcuts
remove_desktop_shortcut(app_name)
remove_programs_menu_shortcut(app_name)
def audit():
# Declaring local variables
package_version = control.get_software_version()
installed_version = get_installed_version(app_name)
# Auditing software
if installed_version is None:
print("%s is not installed" % app_name)
return "ERROR"
elif Version(installed_version) != Version(package_version) and audit_version_number:
print("%s is installed in version (%s) instead of (%s)" % (app_name, installed_version, package_version))
return "WARNING"
else:
print("%s (%s) is installed" % (app_name, installed_version))
return "OK"
def move_directory(source, destination):
"""
Moves a directory safely, avoiding unnecessary subfolders.
Args:
source (str): The path of the directory to move.
destination (str): The destination path where the directory will be moved to.
Returns:
bool: True if the directory was successfully moved, False otherwise.
"""
try:
if not os.path.exists(destination):
os.makedirs(destination)
for item in os.listdir(source):
item_path = os.path.join(source, item)
if os.path.isfile(item_path):
shutil.move(item_path, destination)
elif os.path.isdir(item_path):
new_destination = os.path.join(destination, item)
move_directory(item_path, new_destination)
os.rmdir(source)
return True
except Exception as e:
print(f"ERROR: {e}")
return False
# -*- coding: utf-8 -*-
from setuphelpers import *
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://helgeklein.com/download/"
for bs_search in bs_find_all(url, "a", "href", proxies=proxies):
if "DelProf2" in bs_search["href"] and bs_search["href"].endswith(".zip"):
latest_bin = bs_search["href"].split("/")[-1].replace("%20", " ")
version = latest_bin.strip("Delprof2 ").strip(".zip")
download_url = "https://helgeklein.com" + bs_search["href"]
break
# Downloading latest binaries
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(download_url, latest_bin, proxies=proxies)
# 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
14ee8baf68ac5b015613ecdf23d1cc49a7045f791e2f7a1952f32aad5b4a606b : Delprof2 1.6.0.zip
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
2a51aa497f0f55c4c4d9dd320e1f26a1ec7faecd5af30e5342c24ef8a8e61df2 : WAPT/control
e16a2893890341f1f7d5c3c5f45395924dbc3ecf66dc9daa5def5ce6ae9be609 : WAPT/icon.png
34735a4d63512eceeed1a1f524348a5698b5490f998d3f29caa6909ec0c859ec : luti.json
7036969c5e8768c8b78233519bdcd539763bbb30dde25ce9761de4f67a75df8a : setup.py
ce16265108d0ff19264a794514278da64df9939d532e6dd5ec5bf0e3364eff9a : update_package.py