开发者

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

开发者 https://www.devze.com 2023-03-20 04:23 出处:网络
My C# .NET application uses Crystal Report which relies on the presence of Crystal Reports Basics for Visual Studio 2008.

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

精彩评论

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