This documentation is archived and is not being maintained.
AssemblyInstaller Class
Visual Studio 2008
Loads an assembly, and runs all the installers in it.
Assembly: System.Configuration.Install (in System.Configuration.Install.dll)
In the following example, an AssemblyInstaller is created by invoking the AssemblyInstaller constructor. The properties of this object are set and the Install and Commit methods are called to install the MyAssembly.exe assembly.
Imports System Imports System.Configuration.Install Imports System.Collections Imports System.Collections.Specialized Class AssemblyInstaller_Example Shared Sub Main() Dim mySavedState = New Hashtable() Console.WriteLine("") Try ' Set the commandline argument array for 'logfile'. Dim commandLineOptions(0) As String commandLineOptions(0) = "/LogFile=example.log" ' Create an object of the 'AssemblyInstaller' class. Dim myAssemblyInstaller As _ New AssemblyInstaller("MyAssembly.exe", commandLineOptions) myAssemblyInstaller.UseNewContext = True ' Install the 'MyAssembly' assembly. myAssemblyInstaller.Install(mySavedState) ' Commit the 'MyAssembly' assembly. myAssemblyInstaller.Commit(mySavedState) Catch e As ArgumentException Catch e As Exception Console.WriteLine(e.Message) End Try End Sub 'Main End Class 'AssemblyInstaller_Example
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Configuration.Install.Installer
System.Configuration.Install.AssemblyInstaller
System.MarshalByRefObject
System.ComponentModel.Component
System.Configuration.Install.Installer
System.Configuration.Install.AssemblyInstaller
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: