Bonjour.

Voici le code que généré pour le logiciel Salsaj.
Le problème est que je n'arrive pas à supprimer la clé de la base de registre.

Merci de bien vouloir m'aider.

Cordialement Michel

Livet.

-----------------------------------------------------------------------------------------------------------

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

# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = []

# command(s) to launch to remove the application(s)
uninstallstring = []

# list of required parameters names (string) which can be used during install
required_params = []


def install():
    # if you want to modify the keys depending on environment (win32/win64... params..)
    global uninstallkey
    global uninstallstring

    print('installing liv-sasaj 2.0.3')
    run(r'"salsaj_with_macros_2_3_windows_installer.msi" /q /norestart')

# def create_user_desktop_shortcut(salsaj,target='C:\Windows\system32\javaw.exe -jar -Dfile.encoding=UTF-8 "C:\Program Files (x86)\SalsaJ\SalsaJ.jar"',icon='C:\Program Files (x86)\SalsaJ\SalsaJ.ico')

def uninstall():
    #Vérification du chemin
    print("%s" %os.path.join(programfiles32,'SalsaJ'))
    #Suppresion du répertoire
    salsaj_dir= os.path.join(programfiles32,'SalsaJ')
    remove_tree(salsaj_dir)
    #suppresion de la clé
    registry_delete("HKEY_LOCAL_MACHINE","SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall",SalsaJ)