COMAdminCatalog.InstallApplication

The InstallApplication method installs a COM+ application or application proxy from a file.

Syntax

Sub InstallApplication( _  ByVal  bstrApplicationFile As String, _ByVal  bstrDestinationDirectory As String, _ByVal  lOptions As Long, _ByVal  bstrUserID As String, _ByVal  bstrPassword As String, _ByVal  bstrRSN As String_)

Parameters

  • bstrApplicationFile
    [in] The name of the file containing the application to install.
  • bstrDestinationDirectory
    [in] Optional. Where to install the components. If left blank, the default directory is used.
  • lOptions
    [in] Optional. See Remarks below for option flags.
  • bstrUserID
    [in] Optional. The User ID under which to run the application.
  • bstrPassword
    [in] Optional. The password under which to run the application.
  • bstrRSN
    [in] Optional. A remote server name to use for an application proxy.

Return Values

None.

Remarks

The option flags that can be used with InstallApplication are described in the following table.

Option Value Description

COMAdminInstallNoUsers

0

Don't install users saved in application file (default).

COMAdminInstallUsers

1

Do install users saved in application file.

COMAdminInstallForceOverwriteOfFiles

2

Overwrite files.

Requirements

For an explanation of the requirement values, see Requirements.

Platforms: Windows 2000, Windows XP, Windows Server 2003

Header: Declared in comadmin.h

Library: Included as a resource in comadmin.dll

See Also

Reference

ICOMAdminCatalog::InstallApplication

Send comments about this topic to Microsoft.