Differences

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

Link to this comparison view

Both sides previous revision Previous revision
swdev:noah:building_a_noah_4_fitting_module [2012/04/12 14:17]
smayr
swdev:noah:building_a_noah_4_fitting_module [2012/04/12 14:19] (current)
smayr
Line 5: Line 5:
     * ModuleAPI: <code>C:\windows\Microsoft.Net\assembly\GAC_32\ModuleAPI\v4.0_2.0.0.0__53d06f3c4ff49355\ModuleAPI.dll</code>     * ModuleAPI: <code>C:\windows\Microsoft.Net\assembly\GAC_32\ModuleAPI\v4.0_2.0.0.0__53d06f3c4ff49355\ModuleAPI.dll</code>
     * NoahDataInterfaces: <code>C:\windows\Microsoft.Net\assembly\GAC_MSIL\NoahDataInterfaces\v4.0_2.0.0.0__53d06f3c4ff49355\NoahDataInterfaces.dll</code>     * 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>