Creating a Cabinet (.cab) File

See Also

There are two ways to create a cabinet file. You can create an in-place packaging configuration as a part of a Visual J++ project, or you can create a distribution unit project.

To create a .cab file as an in-place packaging configuration of a Visual J++ project

  1. Display the output format tab.

  2. Select Enable Packaging. From the Packaging type drop-down list, choose the Cab archive (.cab) packaging type.

  3. Pick the contents that you want in the cabinet file. See Setting the Outputs of a Visual J++ Project.

  4. Click Advanced and adjust any settings for Cabinet (CAB) Properties, Java Permissions, or External Dependencies. Click OK or Apply.

  5. In the Visual J++ project properties dialog box, click OK or Apply.

To create a .cab file using a cabinet distribution unit project

  1. On the File menu, click New Project.

  2. Expand the Visual Studio node. Choose Distribution Units.

  3. Choose the Cabinet (CAB) packaging type.

  4. Make any adjustments to the name and location, if needed. Select Close current solution or Add to current solution, as needed.

  5. Click Open.

  6. Add any files or projects to the distribution unit. See Adding or Removing Additional Files from Distribution Units and Adding or Removing Projects from Distribution Units.