Install conditions for SQL Server 2005 prerequisite - 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!

Phobos
Posts: 85
Joined: Fri Sep 08, 2006 11:52 am
Location: Germany

Install conditions for SQL Server 2005 prerequisite

Hi,

for my current project I need to define SQL Server 2005 as a prerequisite. Unfortunately I was not able to find a solid way to determine if SQL Server 2005 (Standard, Enterprise or Express) is installed or not.

I could do this very easy by just checking the existance of a specific registry key, but AI does not allow me to do this as I need to specify a version number.

Any idea?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

SQL Server 2005 may be added as a prerequisite, specifying an URL from where it can be downloaded in case it is not already installed. To check if SQL Server is installed, visit this link:
http://www.mssqlcity.com/FAQ/General/ch ... talled.htm

For more information about prerequisites, please visit:
http://www.advancedinstaller.com/user-g ... sites.html

Hope this helps.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Phobos
Posts: 85
Joined: Fri Sep 08, 2006 11:52 am
Location: Germany

Hi gigi,

Thanks for the reply. Unfortunately this does not help me much. The link you provided includes a registry key which would work fine with SQL Server 2005 Enterprise Edition, however, on my SQL Server 2005 Express Edition this key is not existing.
What I need is a way to determine if SQL Server 2005 Express, Standard or Enterprise Edition is installed. My current project requires one of those editions as prerequisite and I need to make sure that the Database Server and the Reporting Services are installed.

Is there any way I can check if e.g. a specific service is installed/running and to use this as install condition for the prerequisite?

And how can I just check for the existance of a registry key to use it as install condition? So far I always had to specify a version number.

Thanks!
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
And how can I just check for the existance of a registry key to use it as install condition? So far I always had to specify a version number.
To look only for the existence of the registry key leave the "Minimum" and "Maximum" fields empty in the "Install Conditions" tab.

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Phobos
Posts: 85
Joined: Fri Sep 08, 2006 11:52 am
Location: Germany

Hi,

I just tested this but it does not seem to work for me. When I just specify the registry key and leave version fields empty the wizard always wants to install the prerequisite. It displays "Required: any. Found: nothing."

Is there any other posibility? What about checking if a specific service is installed?
It would be nice to see more flexibility in regards to the prerequisite wizard and install conditions in a future version of AI.

Thanks!
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
It displays "Required: any. Found: nothing."
The registry value must contain a value and this value must indicate to a valid version number (ex: 3.5).
What about checking if a specific service is installed?
AI does not support this yet, but we have it on our TODO list and will be available in a future release. Thank you for your suggestion.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”