Need SQL RegKey for Launch Condition

Last post 12-25-2006 9:47 AM by Caddre. 3 replies.

Sort Posts:

  • Need SQL RegKey for Launch Condition

    12-23-2006, 8:02 AM
    • Loading...
    • antoniooi
    • Joined on 05-27-2006, 7:31 PM
    • Posts 6

    Hi,

    I'm doing a Web Deployment Project that need to detect if the target machine has SQL Server 2000 (or any 2000 hotfixes) installed. It seems hard to figure out which RegKey is meant for this value through the use of RegEdt32.exe. I couldn't find any solution from google too. Any helps would be appreciated.

    Thank you.

    Regards,
    Antonio

    Regards,
    Antonio
  • Re: Need SQL RegKey for Launch Condition

    12-23-2006, 1:20 PM
    • Loading...
    • Caddre
    • Joined on 06-23-2003, 9:53 AM
    • Indy
    • Posts 5,308

    I would not call RegEdt32.exe in my .NET application because that will restrict where you can run your code, and SQL Server seldom comes with hot fixes however it comes with service packs, some appended like 3a.  The service packs are nothing but .sql files in an installer, I usually open and look at most before I install them.  You can even watch Windows use the .sql files usually based on Network, OS version, hardware and other factors.  I have found a simple T-SQL code that you can modify to meet your needs.  Hope this helps.

    http://blog.devstone.com/aaron/archive/2006/12/15/2100.aspx

    Kind regards,
    Gift Peddie
  • Re: Need SQL RegKey for Launch Condition

    12-25-2006, 7:42 AM
    • Loading...
    • antoniooi
    • Joined on 05-27-2006, 7:31 PM
    • Posts 6

    Hi,

    Thank you for your feedback. However, I have found the key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\CurrentVersion

    In my Search Registry Condition, I will place this under RegKey property and set the Property property to SQLVERSION. Then in my Launch Condition, I will set the Condition property to SQLVERSION >= 8.0.0 AND SQLVERSION < 9.0.0. As long as the user has SQL Server 2000 installed, my app will be running fine.

    Thanks again!

    Regards,
    Antonio
    http://blog.360.yahoo.com/antoniooi

    Regards,
    Antonio
  • Re: Need SQL RegKey for Launch Condition

    12-25-2006, 9:47 AM
    • Loading...
    • Caddre
    • Joined on 06-23-2003, 9:53 AM
    • Indy
    • Posts 5,308
    antoniooi:

    Hi,

    Thank you for your feedback. However, I have found the key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\CurrentVersion

    In my Search Registry Condition, I will place this under RegKey property and set the Property property to SQLVERSION. Then in my Launch Condition, I will set the Condition property to SQLVERSION >= 8.0.0 AND SQLVERSION < 9.0.0. As long as the user has SQL Server 2000 installed, my app will be running fine.

    Thanks again!

    Regards,
    Antonio
    http://blog.360.yahoo.com/antoniooi

    I will not try to access any registry key during installation because there is a reason all SQL Server service packs are simple .sql files in an installer.

    Kind regards,
    Gift Peddie
Page 1 of 1 (4 items)
Microsoft Communities
Page view counter