IJavaPackageManager::InstallPackage Method

Installs a specified package.

Syntax

HRESULT InstallPackage(      
    LPCOLESTR pszFileName,
    LPCOLESTR pszNamespace,
    DWORD dwFileType,
    LPPACKAGEINSTALLINFO pPackageInfo,
    UINT cPackages,
    DWORD dwFlags,
    LPCPACKAGESECURITYINFO pSecurityInfo
);

Parameters

  • pszFileName
    [in] A pointer to a string that specifies the file name.
  • pszNamespace
    [in] A pointer to a string that specifies the namespace.
  • dwFileType
    [in] The JPMINST_FILETYPES flags.
  • pPackageInfo
    [in, out] A pointer to a PACKAGEINSTALLINFO structure.
  • cPackages
    [in] The package count.
  • dwFlags
    [in] The JPMINST_FLAGS flags.
  • pSecurityInfo
    [out] A pointer to a PACKAGESECURITYINFO structure.

Return Value

Returns S_OK if successful, or an error value otherwise.