Skip to content

Set instance management point

Sets an instance Management Point to use with other SDK functions that require a Management Point within the instance of the SDK.

The setting applies only to the SDK object you call it on, and only while your script runs. It isn’t saved. Call it once, right after you create the SDK object and before you call other functions. If you don’t call it, functions that need a Management Point use the default Management Point configured on the computer that runs the script.

SetInstanceManagementPoint(Byval ManagementPointID as String) as Boolean

ManagementPointID (String)

The numeric Id of the Management Point to set, for example "1".

Boolean. Returns true if the management point is set. If the Id isn’t numeric, the function raises an error.

The function doesn’t check that a Management Point with the Id exists. If it doesn’t, the functions you call afterwards fail.

Dim bStatus
Dim oCMS
Set oCMS = CreateObject("CapaInstaller.SDK")
bStatus = oCMS.SetInstanceManagementPoint("1")

The management point Id can be retrieved with the function Get management points.