Old 3rd August 2009, 10:15   #1
Vankov
Junior Member
 
Join Date: Jun 2009
Posts: 46
Problem with sql registry

I use "Function CheckMinSQLVersion" from wiki,but result was wrong!Please tell me how to determine is installed(sql server 2005) or not for sure!
Vankov is offline   Reply With Quote
Old 3rd August 2009, 12:35   #2
sgiusto
Member
 
Join Date: Mar 2007
Location: Italy
Posts: 99
If you need only to know if sql2005 is installed you can check HKLM\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\CurrentVersion\CurrentVersion value.
If it begins with '9' you have mssql2005 installed (sql2000 is version '8', sql2008 is version '10' and so on)
The function in the wiki looks for a specific service pack of sql2000
Hope this helps
Stefano
sgiusto is offline   Reply With Quote
Old 3rd August 2009, 12:48   #3
Vankov
Junior Member
 
Join Date: Jun 2009
Posts: 46
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\CurrentVersion" "CurrentVersion"

i try and ReadRegDWORD,and over ten ReadRegStr,sql is installed but the result is ""????????
Vankov is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump