Manual extraction of the XDK is an option available to advanced users, enabling specific files to be integrated into a build system without installing the full XDK. After you download and extract the XDK, you can use Windows Installer (msiexec.exe) to extract the installer package to access its individual files.
Note
This process does not replace the need to install the XDK for most scenarios. The process enables the following scenarios:
- Extracting headers and libraries for use in your build process
- Extracting the Sideload folder so that xbprovision can be run from a given XDK without installing that full XDK
It may or may not be possible to run other XDK tools, but doing so isn’t officially supported so you may run into problems.
Tip The following procedure shows a specific use of Windows Installer (msiexec.exe); for more information about msiexec.exe, see Windows Installer on Dev Center.
for /F "delims=" %G in ('dir /b /s "installation_folder\*.msi"') DO (
start /wait msiexec.exe /a "%G" TARGETDIR="msi_extraction_path" /qb
)
where installation_folder is the path to the extracted files of the XDK download, and msi_extraction_path specifies the folder where you want the files of the Windows Installer (.msi) files to be extracted. For example:
for /F "delims=" %G in ('dir /b /s "c:\downloads\XDK\*.msi"') DO (
start /wait msiexec.exe /a "%G" TARGETDIR="c:\XDK" /qb
)
Note If this snippet is used in a script instead of directly from the command line, the %G needs to be replaced with %%G.