RAD Studio VCL Reference
TCOMAdminCatalog.InstallApplication Method

Installs a COM+ application or application proxy from a file.

procedure InstallApplication(const bstrApplicationFile: WideString; const bstrDestinationDirectory: WideString; lOptions: Integer; const bstrUserId: WideString; const bstrPassword: WideString; const bstrRSN: WideString);
__fastcall InstallApplication(const BSTR bstrApplicationFile, const BSTR bstrDestinationDirectory, int lOptions, const BSTR bstrUserId, const BSTR bstrPassword, const BSTR bstrRSN);

Use InstallApplication to install an application or application proxy that was previously saved by a call to the ExportApplication method. 

bstrApplicationFile is the name of the file created by ExportApplication

bstrDestinationDirectory is the directory where the components in the application should be installed. If this parameter is nil (Delphi) or NULL (C++), InstallApplication uses the default directory. 

lOptions is a set of flags that modify how the application is installed. It is a sum of 0 or more of the following flags:

Don't install any users saved in the application file.  
Install all users that are saved in the application file.  
Overwrite any files that already exist in the target directory.  

bstrUserId specifies the user ID under which to run the application. This value can be nil (Delphi) or NULL (C++). 

bstrPassword specifies the password under which to run the application. This value can be nil (Delphi) or NULL (C++). 

bstrRSN specifies the remote server name when bstrApplicationFile is an application proxy. 


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