The InstallApplication method installs a COM+ application or application proxy from a file.
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 _
)
- 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.
None.
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.
|
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
Reference
ICOMAdminCatalog::InstallApplication