Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
winman
Starting Member
26 Posts |
Posted - 2013-02-11 : 07:21:35
|
I am creating an application which requires installation of sql server express 2005 or 2008 to work. So my application should check whether sql server is already installed on my customer PC and if it is not installed then i have to install it through my application. So how can i check sql server is installed or not in their PC? |
|
bandi
Master Smack Fu Yak Hacker
2242 Posts |
|
James K
Master Smack Fu Yak Hacker
3873 Posts |
Posted - 2013-02-11 : 08:52:54
|
Another alternative would be to use the ServiceController class - http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicecontroller.aspxIt will let you check if the service is installed, and whether it is started, and if not started you will be able to start it using the methods in this class.As for installing the SQL Express, the user will need to respond to the SQL installer dialogs and accept the license agreement. So you would need to have the user interact with the installation - it cannot be an unattended install process. |
|
|
jackv
Master Smack Fu Yak Hacker
2179 Posts |
|
|
|
|