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/
FOLLOW US
Get the latest news in Application Packaging