Author |
Topic  |
|
winman
Starting Member
26 Posts |
Posted - 02/11/2013 : 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
Flowing Fount of Yak Knowledge
India
2242 Posts |
|
James K
Flowing Fount of Yak Knowledge
3873 Posts |
Posted - 02/11/2013 : 08:52:54
|
Another alternative would be to use the ServiceController class - http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicecontroller.aspx
It 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
Flowing Fount of Yak Knowledge
United Kingdom
2179 Posts |
|
|
Topic  |
|