[Wapt] Désinstallation clé

Druart Michel Michel.Druart at ac-nantes.fr
Mon Jun 23 13:08:33 CEST 2014


 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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20140623/9922807e/attachment.html>


More information about the WAPT mailing list