IAppxFactory3::CreateAppInstallerReader method (appxpackaging.h)

Important

Some information relates to a prerelease product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Creates an instance of IAppInstallerReader, with an optional parameter for specifying the expected digest for the App Installer file.

Syntax

HRESULT CreateAppInstallerReader(
  [in]           IStream                 *inputStream,
  [in, optional] LPCWSTR                 expectedDigest,
  [out]          IAppxAppInstallerReader **appInstallerReader
);

Parameters

[in] inputStream

An IStream that provides the contents of an App Installer File.

[in, optional] expectedDigest

An LPCWSTR containing the expected digest, a hashed representation of the App Installer File.

[out] appInstallerReader

Receives the created IAppInstallerReader Instance.

Return value

If the method succeeds, it returns S_OK. Otherwise, it returns an error code that includes, but is not limited to, those in the following table.

Return code Description
APPX_E_DIGEST_MISMATCH The digest for the object doesn't match the digest provided in expectedDigest.

Remarks

Get the digest string for the expecteDigest parameter by calling IAppxDigestProvider::GetDigest.

Requirements

Requirement Value
Header appxpackaging.h

See also

App Installer File overview