InstallPackage method
Installs a specified package.
Syntax
HRESULT retVal = object.InstallPackage(pszFileName, pszNamespace, dwFileType, pPackageInfo, cPackages, dwFlags, pSecurityInfo);
Parameters
pszFileName [in]
Type: LPCOLESTRA pointer to a string that specifies the file name.
pszNamespace [in]
Type: LPCOLESTRA pointer to a string that specifies the namespace.
dwFileType [in]
Type: DWORDThe JPMINST_FILETYPES flags.
pPackageInfo [in, out]
Type: LPPACKAGEINSTALLINFOA pointer to a PACKAGEINSTALLINFO structure.
cPackages [in]
Type: UINTThe package count.
dwFlags [in]
Type: DWORDThe JPMINST_FLAGS flags.
pSecurityInfo [out]
Type: LPCPACKAGESECURITYINFOA pointer to a PACKAGESECURITYINFO structure.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.