I have an application that i wrote in C# and it does databases. So to run this app on any machine i need .NET 3.5 and SQL Server 2005 installed. Is there a way that when the application starts. It first checks whether SQL Server 2005 and .Net 3.5 exist on the machine or not. If not then it may exit and if they do they may continue.
+3
A:
Checking for prerequisites is usually the job of an installer.
klausbyskov
2010-01-30 08:03:26
+1
A:
SQL Server 2005 can be verified, as installed SQL Server instances can be found in Services panel (which is also accessible via .NET).
It is not possible for a .NET 3.5 C# program to check whether .NET Framework is installed.
You'd better write native applications (in VC or else) to check for prerequisites.
Lex Li
2010-01-30 08:07:03
:) i dont know VC.. can any body provide the code
Junaid Saeed
2010-01-30 08:11:23
cud this thing be written in C, i know C
Junaid Saeed
2010-01-30 08:12:29