I have reviewed the MS SQL Server Connection Sample file and it works great. The only problem is I only want to return SQL Server 2005 Instanances and ignor all the SQL Server 2000 Instanances.
Is there any way to do this?
Detect SQL 2005 Instances Only
-
- Posts: 47
- Joined: Thu Mar 15, 2007 6:51 pm
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
You could do such filtering in MSIcode script using the string manipulation MSIcode commands (check under the Scripting category on the MSIcode palette).
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
-
- Posts: 47
- Joined: Thu Mar 15, 2007 6:51 pm
I do that already but it has a few drawbacks compared to this request:
1. Its slower. The MSICode is much slower than the code you would use to iterate and filter out specific instances.
2. Messier. You have to write more code that can distract from the intent of what you are trying to do. Also chance of introducing bugs.
3. It will give you guys a chance to fix the bugs that are already in the "Detect MS SQL Instances". For example on Windows 2003 it only returns the machine name if its MSDE OR SQL 2005, OR SQL 2005 Express etc. You can't determine which version is installed on a target machine.
Robert
1. Its slower. The MSICode is much slower than the code you would use to iterate and filter out specific instances.
2. Messier. You have to write more code that can distract from the intent of what you are trying to do. Also chance of introducing bugs.
3. It will give you guys a chance to fix the bugs that are already in the "Detect MS SQL Instances". For example on Windows 2003 it only returns the machine name if its MSDE OR SQL 2005, OR SQL 2005 Express etc. You can't determine which version is installed on a target machine.
Robert
Who is online
Users browsing this forum: No registered users and 78 guests