Click or drag to resize

Distributing Driver Source Code

By default, Nimbus-generated driver installers include a Source Code feature that the end-user can use to optionally install the driver's source code in addition to the standard IVI driver components. When the end user runs the driver installer, a feature selection dialog like the one shown in Figure 1 will be displayed.

Figure 1: The Default Driver Installer Feature Dialog
78142990-F 1 E 9-4040-8875-057DF 8 C 8 B 3DF

The end user may choose to include the source code feature at this time (opt in model), or they may choose to use the Windows Add/Remove Programs Change command to install the driver source at a later time.

Follow the instructions below to modify the driver installer so that the source code feature is enabled by default (opt out model), or remove the source code feature from the driver installer altogether.

Remove the source feature completely

  1. Open the General Page of the setup project's Project Properties.

  2. Uncheck the checkbox labeled Distribute driver source code with installer.

Caution note Caution

The steps below involve manual modification of the WiX source code for the driver installer. Before proceding, make sure your solution is checked into a source code control system, or make a backup copy of your solution.

Enable the source feature by default (opt out model)

  1. Expand the driver setup project node in the Solution Explorer.

  2. Right click on Setup.wxs and select View Code.

  3. Locate the <Feature> element that has an Id attribute equal to SourceFeature.

  4. Change the Level attribute of that <Feature> to 3 (the default value is 100).

  5. Save and close Setup.wxs.

  6. Verify that you can build the driver setup project, and open the driver setup designer (by double clicking on Setup.wxs) without error before making any further modifications to the driver setup project.

Download a complete CHM version of this documentation here.