<Chunk> Element

Defines a chunk, a collection of files that should be installed as a group.

Syntax

<Chunk
  Marker = string
  Id = string >
</Chunk>  

Attributes

Marker
Indicates that all chunks up to and including this chunk in the layout xml file are required before the title can launch. The only accepted value for the Marker attribute is Launch. Note that all chunks occurring before the marked chunk in the manifest are required for launch regardless of their IDs.

Id
Required. The identifier for a chunk. A title can use this ID to query for status about installation and to modify the order of installation at run time (by using the PackageTransferManager Methods.)

The order of chunks in the final image follows increasing sort order of all chunks in the layout. Consequently, this is also the default order of installation.

Remarks

MakePkg.exe will scan for certain files as part of your package, and move them to a special ‘registration’ chunk. This includes AppXManifest.xml, any images referenced within AppXManifest.xml, and Resources.pri, if present.

You can manually lay out these files in the layout.xml file by specifying “Registration” in the Id attribute for the chunk that contains these files.

Element information

Parent elements Package
Child elements FileGroup

Example

<Chunk Id="1234" Marker="Launch">
  <FileGroup DestinationPath="\" SourcePath="X:\bin" Include="*.*"/>
</Chunk>