Skip to content

Convert XAP to CAB

Repackage XAP contents as a CAB archive with 7-Zip and Windows makecab.

Popular online conversions: Archives

We don't have an online converter for XAP to CAB yet. Try one of the most used conversions in Archives:

All conversions in Archives →

How to convert xap to cab file

A legacy Windows deployment or archival workflow may require a CAB file when it cannot accept a Silverlight or Windows Phone XAP package. Repacking is useful only when the receiving tool needs the files as an archive; it does not make the application installable on a different platform.

What the XAP format is

XAP is a ZIP-based package used for Microsoft Silverlight applications and legacy Windows Phone apps. It typically contains assemblies, resources, and a manifest; Silverlight SDK and Visual Studio workflows produced these files for application deployment.

What the CAB format is

Microsoft Cabinet (CAB) is an archive format used by Windows software distribution and installers. It can store multiple files with compression such as MSZIP or LZX. A CAB archive is not itself a Silverlight or Windows Phone application package.

How to create a CAB archive

  1. Open the XAP in 7-Zip and extract its contents to a working folder. Include all files required by the receiving workflow, not just the manifest and main assembly.
  2. Create a Diamond Directive File (DDF) for Windows makecab. List each file to include, followed by its desired name inside the CAB. For example, save as C:\work\files.ddf and adjust the file list and paths:
    .Set CabinetNameTemplate=output.cab
    .Set DiskDirectoryTemplate=.
    .Set Cabinet=on
    .Set Compress=on
    .Set CompressionType=MSZIP
    "C:\work\unpacked\AppManifest.xaml" "AppManifest.xaml"
    "C:\work\unpacked\MyApp.dll" "MyApp.dll"
    This short example includes only two files; add every required file and use the internal names or paths expected by the receiving tool.
  3. Open Command Prompt in the folder where you want the CAB written and run makecab /F C:\work\files.ddf. The example writes output.cab to the current folder. Windows generally includes makecab; if it is missing, install Windows cabinet tools from a Windows SDK.
  4. Open the resulting CAB with 7-Zip or extract it with a cabinet utility to verify its contents and internal paths.

7-Zip extracts the XAP; makecab creates the CAB. Online conversion is unnecessary for this repackaging task and can expose proprietary application files.

Compatibility and limitations

Repacking preserves included file contents, but it does not preserve XAP deployment behavior or transfer a package signature. Software expecting a XAP will not accept the CAB. A Windows Mobile installer may require a specific CAB layout, installation metadata, or signing, so a generic archive made with makecab may not install on a device.

Simply put, it is impossible to convert XAP to CAB directly.
Thus, there is no so-called xap to cab converter or a free online .xap to .cab conversion tool.

XAP vs CAB: format comparison

How the XAP and CAB formats compare on the properties that matter most for this conversion.

Comparison of the XAP and CAB file formats
Property .XAP XAP package .CAB Cabinet archive
Open standard No No
Compression — Both
Typical file size Small Medium
Opens in a web browser No No
Further editing Limited Not directly editable
Metadata support Basic Basic
Plain-text readable No No
Best used for Embedding in applications Embedding in applications
Introduced 2010 1996
Developer Microsoft Microsoft
MIME type — application/vnd.ms-cab-compressed

Information about file extensions and file types is provided by File-Extensions.org

Additional formats for
xap file conversion

Reverse conversion

Convert to cab from
other formats

Share on social media:

Already downloaded

This file has already been downloaded. For your privacy it was deleted from our server right after the download, so it cannot be downloaded again. To get it once more, convert the file again.