[Wapt] Supprimer une variable d'environnement

frédéric VOLPI frederic.volpi at ac-nantes.fr
Mon May 19 14:15:13 CEST 2014


Bonjour,
Nous avons créé un paquet  (code ci-dessous) avec la création d'une 
variable d'environnement. J'arrive à le déinstaller sans problème. 
Comment je supprime celle-ci ?
Merci
A+
frédéric VOLPI


# -*- coding: utf-8 -*-

from setuphelpers import *

# registry key(s) where WAPT will find how to remove the application(s)

uninstallkey = ["{8AD71275-DA4C-44ED-B43F-CE8593A5DB85}"]

# 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 tis-archiwizardv3.0.1')

     run(r'"ArchiWIZARD-V3.0.1.msi" /q /norestart')

     #Création de la variable system

     print('Création de la variable d\'environnent')

     set_environ_variable("hpc_LICENSE","5053 at srvarchiwizard")




More information about the WAPT mailing list