- package: tis-delprof2
- name: Delprof2
- version: 1.6.0-0
- 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.36 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-0
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 : 5c5d7b46-ca70-4f0a-90cd-de7203e05b8b
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 : LgW4klhqK5amedNpXUYqZgMY/cvvGqcGlx0VkGP9vF+lzSwzTLvbdnBqADvP5vBLt99T1WtgMAS+3QsbftsXguagbDyMFoeF4b+5mwP4vkzLuXO+8YFPgdLmlyUTswiWzhDGmMsZz7geO5XwVgPr8fXVFVtGn7TISdohArXHWISNQTSgBK7a/fkcAAmAjCwutdptWBgh8yNp3v/1xX5wLEUvgIukJ8byYtmI/b4H/QUaN68lqgJEq3VPd5rLMEZ2n4SvlvjxCZASf/SOzSQzdIjRA0ZLtY0l3OGUdfidpdWU8sxXe/sXVjpi/PaXIW7fhlt+qGy6pRmi7dJCu4r4GA==
signature_date : 2023-08-02T19:00:14.778794
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 *
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",
attribute="class",
value="tbd_link",
proxies=proxies,
):
if (".zip" in bs_search["data-url"].lower()) and ("DelProf2" in bs_search.text):
latest_bin = bs_search["data-url"].split("/")[-1]
version = latest_bin.strip("Delprof2 ").strip(".zip")
download_url = bs_search["data-url"]
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
7036969c5e8768c8b78233519bdcd539763bbb30dde25ce9761de4f67a75df8a : setup.py
e4fd1fdec50dea08dbfb3374b74405b5791a19f4d95b42e6c9fa77e09a5ec548 : update_package.py
14ee8baf68ac5b015613ecdf23d1cc49a7045f791e2f7a1952f32aad5b4a606b : Delprof2 1.6.0.zip
e16a2893890341f1f7d5c3c5f45395924dbc3ecf66dc9daa5def5ce6ae9be609 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
5e3cd115a911e0026cae113361311b65f1cabc409da9a9813b6ae7869e2fb091 : luti.json
40e86f0919d54d4d05af07140d99eab5db01431de6cdba5eb8c47e45d52f5234 : WAPT/control