FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV (précédentes versions)
→
[WD17] Not reading key in registry win 8.1
[WD17] Not reading key in registry win 8.1
Débuté par Patrick Vandebroek, 15 nov. 2013 18:00 - Aucune réponse
Connectez-vous…
Patrick Vandebroek
#1
Posté le 15 novembre 2013 - 18:00
Hi All,
I want to read a key in the registry of win 8.1.
I have installed office 2013 and I want to read the path from the registry.
The path for office 2013 is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15\excel\installroot\
I can see the path there but the code is not giving back what I see.
This is my code
strPath is string
StrRoot is string
ExcelPath is string
strPath = RegistryFirstSubKey("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office")
StrRoot = strPath + "\Excel\InstallRoot\"
ExcelPath = RegistryQueryValue(StrRoot,"Path")
WHILE ExcelPath = ""
strPath = RegistryNextKey(strPath)
StrRoot = strPath + "\Excel\InstallRoot\"
ExcelPath = RegistreLit(StrRoot,"Path")
END
But the problem is that he always gives me an empty string back.
What am I doing wrong?
Kind regards,
Patrick
Signaler
0
0
→ Revenir à WINDEV (précédentes versions)
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte