I'm trying to figure out a way to detect if MSDE is installed and if not, install MSDE and enter my database with tables, fields and data. i think MS has updated MSDE to MS SQL 2005 server express edition. i have downloaded that and would like to include that in my install but i don't know how to detect if any of the free versions of SQL server from microsoft are already installed on the machine.
anyone have an example of this or tell me how to achieve this?
thanks.
detect MSDE and install if not found
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Hi!
The best way to do this is using the Check Service command. Please check the SQL Express 2005 check-box in the Application Runtimes visual view. Then, switch to the code view, and study the code in the include files that the IDE has added for you. The auto generated code is for SQL Express 2005, but detecting older MSDE versions will be very similar.
You can also use the MS SQL Server command to run your database scripts against an MSDE instance, to create your tables, etc. once MSDE has been installed.
The best way to do this is using the Check Service command. Please check the SQL Express 2005 check-box in the Application Runtimes visual view. Then, switch to the code view, and study the code in the include files that the IDE has added for you. The auto generated code is for SQL Express 2005, but detecting older MSDE versions will be very similar.
You can also use the MS SQL Server command to run your database scripts against an MSDE instance, to create your tables, etc. once MSDE has been installed.
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: 1
- Joined: Tue Sep 25, 2007 10:51 pm
Who is online
Users browsing this forum: No registered users and 95 guests