RegistrationHelper::InstallAssemblyFromConfig Method (RegistrationConfig^%)
.NET Framework (current version)
Installs the named assembly in a COM+ application.
Assembly: System.EnterpriseServices (in System.EnterpriseServices.dll)
Parameters
- regConfig
-
Type:
System.EnterpriseServices::RegistrationConfig^%
A RegistrationConfig identifying the assembly to install.
This method requires the caller to have administrative privileges on the local computer.
The following code example shows how to use the InstalAssemblyFromConfig method to install a named assembly in a COM+ application.
// Create a RegistrationConfig object and set its attributes // Create a RegistrationHelper object, and call the InstallAssemblyFromConfig // method by passing the RegistrationConfiguration object to it as a // reference object RegistrationConfig^ registrationConfiguration = gcnew RegistrationConfig; registrationConfiguration->AssemblyFile = "C:..\\..\\QueuedComponent.dll"; registrationConfiguration->Application = "MyApp"; registrationConfiguration->InstallationFlags = InstallationFlags::CreateTargetApplication; RegistrationHelper^ helperFromConfig = gcnew RegistrationHelper; helperFromConfig->InstallAssemblyFromConfig( registrationConfiguration );
.NET Framework
Available since 1.1
Available since 1.1
Show: