[Wapt] Vérifier l'existence d'une clé de registre

informatique informatique at challans.fr
Wed Nov 13 21:53:25 CET 2013


Bonjour,

je souhaiterais vérifier en python l'existance d'une clé de registre.

Est-ce que la fonction du setuphelpers registry_readstring(root,path,keyname,default='') est la bonne ? Si oui comment l'utiliser ?

Pour la clé [HKEY_CURRENT_MACHINE\Software\Microsoft\Office\12.0] :

if registry_readstring('HKEY_CURRENT_ MACHINE','Software\\Microsoft\\Office\\12.0','','') <> '' :
	<command>

Merci.

Sébastien JOUSSEMET

-------------- section suivante --------------
Une pi�ce jointe HTML a �t� nettoy�e...
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20131113/2a54f4b6/attachment.html>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: 13112013_214538_0.png
Type: image/png
Taille: 17405 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20131113/2a54f4b6/attachment.png>


More information about the WAPT mailing list