InstallPackage method

Installs a specified package.

Syntax

HRESULT retVal = object.InstallPackage(pszFileName, pszNamespace, dwFileType, pPackageInfo, cPackages, dwFlags, pSecurityInfo);

Parameters

  • pszFileName [in]
    Type: LPCOLESTR

    A pointer to a string that specifies the file name.

  • pszNamespace [in]
    Type: LPCOLESTR

    A pointer to a string that specifies the namespace.

  • dwFileType [in]
    Type: DWORD

    The JPMINST_FILETYPES flags.

  • pPackageInfo [in, out]
    Type: LPPACKAGEINSTALLINFO

    A pointer to a PACKAGEINSTALLINFO structure.

  • cPackages [in]
    Type: UINT

    The package count.

  • dwFlags [in]
    Type: DWORD

    The JPMINST_FLAGS flags.

  • pSecurityInfo [out]
    Type: LPCPACKAGESECURITYINFO

    A pointer to a PACKAGESECURITYINFO structure.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.