SQL Native Client Custom Launch Condition - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jmace
Posts: 55
Joined: Thu Jul 01, 2010 4:46 pm

SQL Native Client Custom Launch Condition

What would be the best way to create a custom launch condition to check to see if version 9 of the SQL Native Client was installed? I'm thinking a registry check would work, but I don't know where to check in the registry and what the condition expression would look like. Any ideas?
CiprianComsa
Posts: 110
Joined: Thu Aug 19, 2010 10:11 am
Contact: Website

Re: SQL Native Client Custom Launch Condition

Hi,

You can create a Search to locate SQL Server Native Client (SNAC) version .
Go to Search Page and add a "New Search->Add Location->Registry" and browse for the registry key.
The installed version of SNAC can be found in the Registry:

Code: Select all

HKLM\SOFTWARE\Microsoft SQL Native Client\CurrentVersion\Version : [REG_SZ]
In case you don't find the key in this path you could try to search using regedit.
The existance of SNAC can be determined by either the existance of the file "sqlncli.dll" exists in the folder "%SYSTEM%" (e.i. "C:\WINDOWS\system32\").Create New File Search from Search Page. You can use the [ ... ] button to select "sqlncli.dll".
The name of the search (for example RESULT_PROPERTY) will be used in the "Launch Conditions->Custom Launch Condition".The condition will use the value of the search property to determine if the installation will run or not (for example you can use the condition: "RESULT_PROPERTY" which is true if the search was successful).

Best regards,
Ciprian
___________________________________________________________________________________________________________________________________________________________________________
Ciprian Comsa
Advanced Installer Team
http://www.advancedinstaller.com/
Last edited by CiprianComsa on Sat Aug 21, 2010 12:23 am, edited 1 time in total.
jmace
Posts: 55
Joined: Thu Jul 01, 2010 4:46 pm

Re: SQL Native Client Custom Launch Condition

I ended up doing a file search for the DLL which seems to work well. Thanks again

Return to “Common Problems”