ICOMAdminCatalog::InstallApplication method (comadmin.h)
Installs a COM+ application or application proxy from the specified file.
Syntax
HRESULT InstallApplication(
[in] BSTR bstrApplicationFile,
[in, optional] BSTR bstrDestinationDirectory,
[in, optional] long lOptions,
[in, optional] BSTR bstrUserId,
[in, optional] BSTR bstrPassword,
[in, optional] BSTR bstrRSN
);
Parameters
[in] bstrApplicationFile
The name of the file containing the application to be installed.
[in, optional] bstrDestinationDirectory
Where to install the components. If this parameter is blank, the default directory is used.
[in, optional] lOptions
The option flags. This parameter can be one of the following values.
[in, optional] bstrUserId
The user ID under which to run the application.
[in, optional] bstrPassword
The password under which to run the application.
[in, optional] bstrRSN
A remote server name to use for an application proxy.
Return value
This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following values.
Return code | Description |
---|---|
|
The method completed successfully. |
|
A fatal error occurred during installation. |
|
The application does not exist. |
|
An error occurred accessing one or more objects. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | comadmin.h |