NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

AssemblyInstaller.CheckIfInstallable

Finds the installers in the specified assembly, creates a new instance of AssemblyInstaller, and adds the installers to its installer collection.

[Visual Basic]
Public Shared Sub CheckIfInstallable( _
   ByVal assemblyName As String _
)
[C#]
public static void CheckIfInstallable(
   string assemblyName
);
[C++]
public: static void CheckIfInstallable(
   String* assemblyName
);
[JScript]
public static function CheckIfInstallable(
   assemblyName : String
);

Parameters

assemblyName
[To be supplied.]

Exceptions

Exception Type Condition
Exception This assembly can not be installed.

Remarks

This method determines whether the specified assembly can be installed. An exception will be thrown if it can not be installed. Checks to make sure the given assembly can be installed. If the file does not meet the following criteria, and exception will be thrown. 1. The file exists 2. The file is a NGWS runtime assembly 3. The public types can be read from the file 4. There is at least one public, non-abstract class extending Installer with the RunInstallerAttribute.Yes attrtibute. 5. All such installers can be instantiated Note that if the assembly is valid but contains no installers, an exception will be thrown. This is different from the behavior at install time, when it is not an error to install an empty assembly.

See Also

AssemblyInstaller Class | AssemblyInstaller Members | System.Configuration.Install Namespace