Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2007
    Posts
    5

    Windows Registry and Windows Vista

    I try to use this code:
    IISFeature1=Registry.DoesKeyExist(HKEY_LOCAL_MACHI NE, "Software\\Microsoft\\InetStp\\Components\\Default Document").
    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\\StaticC ontent",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

  2. #2
    Join Date
    Sep 2007
    Posts
    5

    Correction

    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

  3. #3
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,862
    Quote Originally Posted by pchris View Post
    IISFeature1=Registry.DoesKeyExist(HKEY_LOCAL_MACHI NE, "Software\\Microsoft\\InetStp\\Components\\Default Document").
    lIsAccess=Registry.GetAccess(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\InetStp\\Components\\StaticC ontent",ACCES_READ);
    On 1st examination, you're looking at two different things....


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  4. #4
    Join Date
    Sep 2007
    Posts
    5

    Some explanation

    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.

  5. #5
    Join Date
    Sep 2007
    Posts
    5

    Smile Re: Vista Registry

    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.

Similar Threads

  1. Press Release: Setup Factory for Windows Installer
    By Ted Sullivan in forum Announcements & News
    Replies: 0
    Last Post: 06-04-2007, 02:21 PM
  2. Windows Vista - How is IR planning ahead?
    By eric_darling in forum AutoPlay Media Studio 6.0
    Replies: 6
    Last Post: 02-23-2006, 10:31 PM
  3. Problem reading PATH value in Windows Registry
    By fhernandez in forum Setup Factory 6.0
    Replies: 5
    Last Post: 03-27-2003, 12:57 PM
  4. INFO: Finding Shell Folders in the Registry
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-10-2002, 03:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts