RAD Studio VCL Reference
TCOMAdminCatalog.InstallComponent Method

Installs a component into a COM+ application, and provides default configuration in the COM+ class registration database (RegDB).

procedure InstallComponent(const bstrApplIdOrName: WideString; const bstrDLL: WideString; const bstrTLB: WideString; const bstrPSDLL: WideString);
__fastcall InstallComponent(const BSTR bstrApplIdOrName, const BSTR bstrDLL, const BSTR bstrTLB, const BSTR bstrPSDLL);

InstallComponent installs all components (COM classes) in a .dll file into a COM+ application, and registers the components in the COM+ class registration database (RegDB) as configured components, providing a default configuration. 

bstrApplIdOrName is the name or GUID that represents the application into which to install the components. 

bstrDLL is the name of the .dll file that implements the component or components. 

bstrTLB is the name of the external type library file for the .dll. If the type library is embedded in the .dll, the parameter should be an empty string. 

bstrPSDLL is the name of the proxy-stub .dll file. If there is no proxy-stub .dll associated with the component, set this parameter to an empty string. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!