detect MSDE and install if not found

Got a problem you cannot solve? Try here.
linuxbox
Posts: 6
Joined: Tue Dec 27, 2005 11:42 pm

detect MSDE and install if not found

Postby linuxbox » Tue Dec 27, 2005 11:47 pm

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.

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Wed Dec 28, 2005 6:21 am

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.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

ArnoldKoay
Posts: 1
Joined: Tue Sep 25, 2007 10:51 pm

Postby ArnoldKoay » Tue Sep 25, 2007 11:07 pm

mind telling me how similar if detecting older MSDE?


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 95 guests