开发者

How to detect through C# code whether Crystal Reports Basic is installed or not

My C# .NET application uses Crystal Report which relies on the presence of Crystal Reports Basics for Visual Studio 2008. How can I programmatically determine, if it's ins开发者_Python百科talled or not. My target is to show the User a Message to Install Crystal Report if it's not installed already.


Assuming it installs into the GAC (pretty sure it does, but it's worth checking), you can recursively check %windir%\assembly for the files that you are interested in. If they aren't there, throw the message.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜