Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
swdev:noah:building_a_noah_4_fitting_module [2012/04/12 14:16]
smayr created
swdev:noah:building_a_noah_4_fitting_module [2012/04/12 14:19] (current)
smayr
Line 3: Line 3:
 == Project == == Project ==
   * Reference dependencies:   * Reference dependencies:
-    * ModuleAPI: C:\windows\Microsoft.Net\assembly\GAC_32\ModuleAPI\v4.0_2.0.0.0__53d06f3c4ff49355\ModuleAPI.dll +    * ModuleAPI: <code>C:\windows\Microsoft.Net\assembly\GAC_32\ModuleAPI\v4.0_2.0.0.0__53d06f3c4ff49355\ModuleAPI.dll</code> 
-    * NoahDataInterfaces: C:\windows\Microsoft.Net\assembly\GAC_MSIL\NoahDataInterfaces\v4.0_2.0.0.0__53d06f3c4ff49355\NoahDataInterfaces.dll+    * NoahDataInterfaces: <code>C:\windows\Microsoft.Net\assembly\GAC_MSIL\NoahDataInterfaces\v4.0_2.0.0.0__53d06f3c4ff49355\NoahDataInterfaces.dll</code> 
 + 
 +== Operations == 
 +Check if Noah is installed: 
 +<code csharp> 
 +///---------------------------------------------------------------------------------------- 
 +/// <summary> 
 +/// Verify whether Noah 4 is installed. 
 +/// </summary> 
 +/// <returns>True if found, False if not</returns> 
 +///---------------------------------------------------------------------------------------- 
 +public static bool IsNoahInstalled() 
 +
 +    try  
 +    {  
 +        // This method tries to create an instance of ModuleAPI. If this fails, Noah is not installed. 
 +        Himsa.Noah.Modules.ModuleAPI api = new Himsa.Noah.Modules.ModuleAPI(); 
 +        return true; 
 +    } 
 +    catch (System.IO.FileNotFoundException exc) 
 +    { 
 +        MessageBox.Show("IsNoahInstalled(): Noah System is not installed!"); 
 +        return false; 
 +    }  
 +
 +</code>