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?