View Full Version : Windows Registry and Windows Vista
pchris
09-25-2007, 12:06 PM
I try to use this code:
IISFeature1=Registry.DoesKeyExist(HKEY_LOCAL_MACHI NE, "Software\\Microsoft\\InetStp\\Components\\DefaultD ocument").
The problem that I found on Windows Vista is that this line doesn't work.
I tried to use:
lIsAccess=Registry.GetAccess(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\InetStp\\Components\\StaticCo ntent",ACCES_READ); but lIsAccess return false. With regedit.exe I can see this key.
I am using Administrator Privileges and I don't understand why I cannot read data from Windows Registry.
I need to read this values from Registry because I want to see if it is possible to install Windows 2005 Server Express (Reporting Services).
Thanks in advance,
Cristy
pchris
09-25-2007, 03:09 PM
I ment to write "SQL Server 2005 Express Edition (with Advanced Services SP2 - Reporting Services Features)" instead of Windows 2005 ...
Sorry about this mistake,
Cristy
jassing
09-26-2007, 09:57 AM
IISFeature1=Registry.DoesKeyExist(HKEY_LOCAL_MACHI NE, "Software\\Microsoft\\InetStp\\Components\\DefaultD ocument").
lIsAccess=Registry.GetAccess(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\InetStp\\Components\\StaticCo ntent",ACCES_READ);
On 1st examination, you're looking at two different things....
pchris
09-26-2007, 01:30 PM
I need to install SQL Server 2005 Express Edition (with Reporting Services) - as prerequisite for our application. SQL Server 2005 Setup detect if IIS is installed. On Windows XP (IIS6) it's ok.
On Windows Vista, the setup applcation from Microsoft does not that detect that IIS is install until it check for this features of IIS7:
Static Content Common HTTP Features
Default Document Common HTTP Features
HTTP Redirection Common HTTP Features
Directory Browsing Common HTTP Features
ASP.Net Application Development
ISAPI Extension Application Development
ISAPI Filters Application Development
Windows Authentication Security
IIS Metabase Management Tools
IIS 6 WMI Management Tools
So, in order to run this install I need to read if this features are installed with the code writed in the first message of this post. If this features is not install I write Dialog.Message("Error",cFeature.."is not installed. Please install it from Control Panel\...").
Anyway, I want to read the Windows Registry to see if another components are installed or not, but I have problem reading Windows Registry on Vista.
Thanks in advance,
Cristy.
pchris
10-02-2007, 12:37 AM
Hello,
The problem that I found is not related by Windows Vista. It is related to reading registry keys instead of reading registry values. So I change the code and now it's working
IISFeature=Registry.DoesKeyExist(HKEY_LOCAL_MACHI NE, "Software\\Microsoft\\InetStp\\Components").
if IISFeature then
tbVal = Registry.GetValueNames(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\InetStp\\Components");
... then $I read this values with a For statement.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.