I have an application which uses SQL Server Management Objects which is installed onto client PCs. I need to know whether or not SMO is installed on the PC and if not to install it. I thought that code of
Server server = new Server(connection);
// SMO not installed so install
would work but the exception is not caught even if SMO is not installed - I only get an exception when I try and use the object which is a bit late really Is there a way in .NET 3.5 to determine whether or not the SMO Dlls are installed?
The most reliable way is probably going to be to check the registry.
The sample posted here should point you in the right direction:
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email
Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…