KSC Open API  13.1
Kaspersky Security Center API description
wstring PackagesApi::CreateExecutablePkgAsync ( params  pData)

Create a standalone package (asynchronously).

Parameters:
pData(paramParams) Package attributes.
Mandatory params:
  • "KLTSK_RI_PACKAGES_IDS" - Packages IDs (paramArray <paramInt>)
    Optional params:
  • "KLPKG_evpExecPkgId" - Standalone package ID (paramInt)
  • "KLPKG_NAME" - Package name (paramString)
  • "KLPKG_VIRTUAL" - Is virtual package (paramBool)
  • "KLTSK_RI_GROUP_TO_MOVE_HOST" - ID of the group where to move the host when the RI task succeeds (paramInt)
  • "KLTSK_RI_RBT_USE_TSK_SETTINGS" - Ignore reboot control options from the task parameters (paramBool)
  • "KLTSK_RU_REBOOT_IMMEDIATELY" - Is reboot performed immediately without user confirmation (paramBool)
  • "KLTSK_RU_REBOOT_ASK_FOR_REBOOT" - Ask for reboot (paramBool)
  • "KLTSK_RU_REBOOT_ASK_FOR_REBOOT_PERIOD" - Period (in minutes) of display reboot message (paramInt)
  • "KLTSK_RU_REBOOT_FORCE_REBOOT_PERIOD" - Force reboot period (in minutes) (paramInt)
  • "KLTSK_RU_REBOOT_MESSAGE" - Reboot request text (paramString)
  • "KLTSK_RU_FORCE_APPS_CLOSED" - Force applications close (paramBool)
  • "KLPKG_EXT_LOC_STRINGS" - External localization strings (paramParams)
    • IDS_PKINST_KLNAGCHK_FAILED
    • IDS_PKINST_COMPLETED
    • IDS_PKINST_ERROR_OCCURED
    • IDS_PKINST_CAPTION
    • IDS_PKINST_EXTRACTION
    • IDS_PKINST_KLNAGCHK
    • IDS_PKINST_RUNNING
    • IDS_PKINST_OK
    • IDS_PKINST_CANCEL
    • IDS_PKINST_NAGENT
    • IDS_PKINST_INSTALLING
    • IDS_PKINST_ABORT_INSTALL
    • IDS_PKINST_CLOSE
    • IDS_PKINST_START
    • IDS_PKINST_CONTINUE
    • IDS_PKINST_MSG_CLOSE_APPS
    • IDS_PKINST_MSG_PKG1
    • IDS_PKINST_MSG_PKG2
    • IDS_PKINST_NEED_REBOOT
  • "UseProxy" - Use proxy (paramBool)
  • "ProxyServerAddress" - Proxy address, format: "<proxy_address>:<proxy_port>" (paramString)
  • "ProxyServerUser" - Proxy user (paramString)
  • "ProxyServerPassword" - Proxy password (paramBinary) encrypted as UTF16 string
Returns:
(wstring) Request ID used to subscribe to the event that is triggered when operation is complete.
Remarks:
Check the operation state by calling AsyncActionStateChecker::CheckActionState periodically until it's finalized or cancel it by calling PackagesApi::CancelGetExecutablePkgFile. If the operation succeeds then AsyncActionStateChecker::CheckActionState returns these attributes in pStateData container:
Exceptions:
Throwsexception in case of error.