How can i check the sql server is installed? - 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!

kting
Posts: 8
Joined: Thu Sep 06, 2007 10:25 am

How can i check the sql server is installed?

I know that we can check this through register key, but how should i accomplish that via advanced installer? using js or something else? a detailed solution is highly appriciated! thanks in advance.
Adriana
Posts: 28
Joined: Tue Aug 14, 2007 9:32 am
Location: Craiova
Contact: Website

Hi,

If you want to install SQL Server 2005 (if is not already present) define a Prerequisite in the Prerequisites Page Software Tab. If you want just to detect the presence of SQL Server and abort the installation in case it is not installed use a Search and a Launch Condition.

1. In order to add SQL Server as a Prerequisite follow these steps:
- click the New Button in the Prerequisites Page Software Tab and select the SQL Server setup file from your disk
- in the Install Conditions tab double click the existing entry from the Searches list and specify the following detection criteria:
a) Criteria: "Registry Value"
b) Registry Value:

Code: Select all

HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\90\Tools\ClientSetup\CurrentVersion\CurrentVersion
c) Minimum: 9.0

For a list of SQL Server versions see the following page: http://www.krell-software.com/mssql-builds.asp

2. In order to add a Launch Condition that will abort the installation if SQL Server is not present follow these steps:
- create a search in the Search Page for the Registry Value specified above.
- in the Prerequisites Page->Launch Conditions tab define the following Launch Condition using the New button

Code: Select all

 Condition : RESULT_PROPERTY >= "9.0"                                 
 Description: SQL Server is not present or it is an older version
Hope this helps.

Regards,
Adriana

-----------------------
Adriana Simion
Advanced Installer Team
http://www.advancedinstaller.com/
kting
Posts: 8
Joined: Thu Sep 06, 2007 10:25 am

i have solved my case under your help. thank a lot.

Return to “Common Problems”