This sample shows how to query info about a bundle package using the Packaging API.
The sample covers these tasks:
- Use IAppxBundleFactory::CreateBundleReader to create a bundle reader, and then IAppxBundleReader::GetManifest to get IAppxBundleManifestReader for the bundle manifest reader
- Use IAppxBundleManifestReader::GetPackageId to get an IAppxManifestPackageId to read package identity info
- Use IAppxBundleManifestReader::GetPackageInfoItems to get IAppxBundleManifestPackageInfoEnumerator to iterate through the list of payload packages that are described in a bundle package manifest. Then, use IAppxBundleManifestPackageInfo to get info about each package.
To get a copy of Windows, go to Downloads and tools.
To get a copy of Visual Studio, go to Visual Studio Downloads.
Reference
Client
Windows 8.1
Server
Windows Server 2012 R2
- Start Microsoft Visual Studio and select File > Open > Project/Solution.
- Go to the directory named for the sample, and double-click the Visual Studio Solution (.sln) file.
- Press F7 or use Build > Build Solution to build the sample.
To debug the app and then run it, press F5 or use Debug > Start Debugging. To run the app without debugging, press Ctrl+F5 or use Debug > Start Without Debugging.