<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>FSX SDK Overview</title>
<style>
<!--
 /* Style Definitions */

p,div
	{mso-style-name:Text;
	margin-top:0pt;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
li
	{mso-style-name:Text;
	margin-top:2pt;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
p.Link, div.link
	{mso-style-name:Link;
	margin-top:0pt;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";
	color:#3366FF;}
li.Link
	{mso-style-name:Link;
	margin-top:0pt;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";
	color:#3366FF;}
h1
	{mso-style-next:Normal;
	margin-top:12.0pt;
	margin-right:0pt;
	margin-bottom:12.0pt;
	margin-left:0pt;
	text-align:left;
	line-height:150%;
	mso-pagination:widow-orphan;
	page-break-after:avoid;
	mso-outline-level:2;
	font-size:20.0pt;
	font-family:Arial;
	color:black;
	mso-bidi-font-style:italic;}
h2
	{mso-style-next:Normal;
	margin-top:12.0pt;
	margin-right:0pt;
	margin-bottom:12.0pt;
	margin-left:0pt;
	text-align:left;
	line-height:150%;
	mso-pagination:widow-orphan;
	page-break-after:avoid;
	mso-outline-level:2;
	font-size:18.0pt;
	font-family:Arial;
	color:#000033;
	mso-bidi-font-style:italic;}
h3
	{mso-style-next:Normal;
	margin-top:12.0pt;
	margin-right:0pt;
	margin-bottom:9.0pt;
	margin-left:0pt;
	text-align:left;
	mso-pagination:widow-orphan;
	page-break-after:avoid;
	mso-outline-level:3;
	font-size:16.0pt;
	mso-bidi-font-size:13.0pt;
	font-family:Arial;
	color:#0000cc;}
h4
	{mso-style-next:Normal;
	margin-top:12.0pt;
	margin-right:0pt;
	margin-bottom:5.0pt;
	margin-left:0pt;
	text-align:left;
	mso-pagination:widow-orphan;
	page-break-after:avoid;
	mso-outline-level:3;
	font-size:13.0pt;
	mso-bidi-font-size:13.0pt;
	font-family:Arial;
	color:#00aa00;}
h5
	{mso-style-next:Normal;
	margin-top:3.0pt;
	margin-right:0pt;
	margin-bottom:3.0pt;
	margin-left:0pt;
	text-align:left;
	mso-pagination:widow-orphan;
	page-break-after:avoid;
	mso-outline-level:3;
	font-size:12.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:Arial;
	color:#000000;}
h6
	{mso-style-next:Normal;
	margin-top:3.0pt;
	margin-right:0pt;
	margin-bottom:3.0pt;
	margin-left:0pt;
	text-align:left;
	mso-pagination:widow-orphan;
	page-break-after:avoid;
	mso-outline-level:3;
	font-size:12.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:Arial;
	color:#aa0000;}
CODE
	{mso-style-name:Code;
	margin:0pt;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Courier New";
	mso-fareast-font-family:"Courier New";
	color:#000000;}
A:Hover
	{color:#00aa00;}
BODY
	{margin-left:30pt;
	background:#f5f5f5;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:36.0pt;
	mso-footer-margin:36.0pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}

table
	{class:T1;
	style:border:medium none;
	border-collapse:collapse;
	border:5;
	background-color:#FFFF99;
	border-color:#CC0000;
	border-style:inset;
	width:670;
	text-align:left;}

tr	{vertical-align:top;}

-->
</style>
</head>
<body>
<h1><img src="../Panels and Gauges SDK/Images/fsx-bannercontrol.jpg" width="800" height="200" /></h1>
<h1>Creating Cabinet Files</h1>
<h2><strong>Introduction</strong></h2>
<p>  If you create add-ons for Microsoft &reg; Flight Simulator, you can use the  Cabdir utility (cabdir.exe) to combine all the folders and files in a directory  into a single cabinet (.cab) file, simplifying the process of  distributing files to end-users, whether they download the file from a Web site  or install it from a DVD or CD. You can use a setup utility to extract  and install the files for end users or explain that they can manually view and  copy files in the .cab file.</p>
<p>&nbsp;</p>
<p>Creating cab files is particularly useful when building gauges, see the <a href="../Panels and Gauges SDK/Creating XML Gauges.html">Creating XML Gauges</a> document. </p>
<p>&nbsp;</p>
<h4><strong>To create a .cab file</strong></h4>
<ol>
  <li>Open a Command  Prompt.</li>
  <li>Type <strong>cabdir</strong> [<em>switches</em>] <em>source_dir </em>[<em>dest_cab</em>].</li>
</ol>
<h5><strong>Notes</strong></h5>
<ol>
  <li><em>source_dir</em> is the name of the directory containing the source  files.&nbsp; </li>
  <li><em>dest_cab </em>is the destination cab file that will be built.&nbsp; If <em>dest_cab </em>is not specified, a cab  will be created in the parent directory of <em>source_dir </em>with the same name  as <em>source_dir</em>.&nbsp; </li>
</ol>
<h2><strong><em>Switches</em></strong></h2>
<p>You can use the following  switches with Cabdir.exe.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p>&nbsp;</p>
<table width="800" border="1" cellspacing="2" cellpadding="4">
  <tr>
    <td><h5>Switch</h5></td>
    <td><h5>Description</h5></td>
  </tr>
  <tr>
    <td><strong>/?</strong>&nbsp;&nbsp;&nbsp;&nbsp;</td>
    <td>Displays  help information for cabdir.exe.</td>
  </tr>
  <tr>
    <td><strong>/R</strong>&nbsp;</td>
    <td>Recurse  into sub directories. This is the default.</td>
  </tr>
  <tr>
    <td><strong>/R-</strong></td>
    <td>Does  not recurse into sub directories.</td>
  </tr>
  <tr>
    <td><strong>/F&nbsp;&nbsp;</strong></td>
    <td>Flattens the directory  stucture. No subdirectory pathnames will be stored.</td>
  </tr>
  <tr>
    <td><strong>/COMPRESS&nbsp;</strong></td>
    <td>Compress all files. This is the  default.</td>
  </tr>
  <tr>
    <td><strong>/NOCOMPRESS</strong>&nbsp;&nbsp;&nbsp;</td>
    <td>Do not  compress any files.</td>
  </tr>
  <tr>
    <td><strong>/NOCOMPRESSBGL</strong></td>
    <td>Compress  all files except .bgl files.</td>
  </tr>
  <tr>
    <td><strong>/AUTOCOMPRESS</strong>&nbsp;</td>
    <td>Compress only  those files more than 10% compressible.</td>
  </tr>
  <tr>
    <td><strong>/BATCH</strong>&nbsp;</td>
    <td>Allow  cabdir to run with no user interface.</td>
  </tr>
  <tr>
    <td><strong>/D</strong>&nbsp;&nbsp;&nbsp;&nbsp;</td>
    <td> Deletes  non write protected files after CAB is created.</td>
  </tr>
  <tr>
    <td><strong>/V</strong>&nbsp;&nbsp;</td>
    <td>Verbose  output into MS-DOS window.</td>
  </tr>
  <tr>
    <td><strong>/X</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    <td>Maximal  compression at the expense of random-access. Not <br />
recommended for normal use.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
  </tr>
</table>
<h3>&nbsp;</h3>
<div align="center">
  <p>&nbsp;</p>
  <p>&copy; 2006 Microsoft Corporation. All rights reserved. </p>
  <p align="center">~~@~~ </p>
</div>
</body>
</html>
