开发者

C# Applications Dependencies Check

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开发者_StackOverflow社区 continue.


Checking for prerequisites is usually the job of an installer.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜