PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV (earlier versions)
→
[WD17] Not reading key in registry win 8.1
[WD17] Not reading key in registry win 8.1
Started by Patrick Vandebroek, Nov., 15 2013 6:00 PM - No answer
Connect yourself…
Patrick Vandebroek
#1
Posted on November, 15 2013 - 6:00 PM
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
Report
0
0
→ Go back to WINDEV (earlier versions)
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text