Skip to content

Container functions

Container functions let you read and configure CapaInstaller container settings from a script, including the DLL version, schedules, database settings, management points, and the array-list splitter.

Most scripts start with the same steps:

  1. Create the SDK object with CreateObject("CapaInstaller.SDK").
  2. Optional: call Set splitter if you want another separator than |.
  3. Optional: call Set database settings. If you skip it, the SDK uses the database connection saved for the current Windows user, for example by the CapaInstaller Console.
  4. Call Set instance management point to select the Management Point that the other functions work on.

The SDK uses the CapaInstaller security rights of the Windows user who runs the script. Some functions, for example Delete group, fail if the user doesn’t have the required rights.

When a function fails, for example because a unit, group, or profile doesn’t exist, it raises a script error with a description of the problem. In VBScript, use On Error Resume Next and check Err.Number and Err.Description if your script must continue after an error.

The SDK also writes errors and other information to the log file SDK.log in the folder %ProgramFiles%\CapaInstaller\Logs\SDK on the computer that runs the script.