Step-by-Step Guide to Creating and Editing an Installer

LabWindows/CVI 2017 Help

Edition Date: May 2017

Part Number: 370051AG-01

»View Product Info

DOWNLOAD (Windows Only)
LabWindows/CVI 2010 Help
LabWindows/CVI 2012 Help
LabWindows/CVI 2013 Help
LabWindows/CVI 2015 Help
LabWindows/CVI 2017 Help

This topic provides a detailed guide to creating and editing an installer in LabWindows/CVI. It also provides troubleshooting information. However, this topic does not describe every option in each tab of the Edit Installer dialog box. Click Help in the Edit Installer dialog box for complete dialog box help. For more information about distributing LabWindows/CVI applications, refer to the Distribution Overview.

Complete the following steps to create and edit an installer:

  1. Open the LabWindows/CVI workspace that contains the projects you want to distribute. Then select Build»Distributions»Manage Distributions to open the Manage Distributions dialog box.
    Note  If projects in the current workspace include distribution kits from LabWindows/CVI 7.1 and earlier, LabWindows/CVI displays a dialog box that gives you the option to convert these distribution kits to .cds files. If you choose not to convert the distribution, LabWindows/CVI does not display this dialog box again unless the project is saved again in LabWindows/CVI 7.1 or earlier.
  2. In the Manage Distributions dialog box, you can create a new distribution or add an existing distribution to the current workspace. To add an existing distribution, click Add and select an existing .cds file. To create a new distribution, click New to open the New Distribution dialog box. Specify the Name, Type, and Settings file for the new installer. The Name you specify is used only to identify this distribution; it is not displayed in the installer you build.

    The settings (.cds) file contains the information LabWindows/CVI uses to build the installer. You can share .cds files between workspaces. By default, LabWindows/CVI saves the .cds file in the directory in which the workspace file is saved. You cannot specify an existing .cds file as the Settings file in the New Distribution dialog box. To copy the settings from an existing file, enable the Copy settings from existing file option and browse to the file.
  3. Click OK to exit the New Distribution dialog box. LabWindows/CVI launches the Edit Installer dialog box automatically. By default, LabWindows/CVI adds the project output, project DLL dependencies (if there are any), and any other project files (excluding .h, .c, .fp, and .lib files) to the installation. LabWindows/CVI also creates a shortcut for the installed application and installs the LabWindows/CVI Runtime by default. Use the Edit Installer dialog box to customize the installer.

    When you specify all the necessary options in the Edit Installer dialog box, click OK to return to the Manage Distributions dialog box. Use the Edit Installer dialog box to customize the installer. The following points highlight important options in the Edit Installer dialog box. For complete dialog box help, click Help in the dialog box.

      Versioning

      Including Files in the Installer

  Launching a File after Installation

  Creating Shortcuts

  Including Drivers and Components for NI Products

  Adding Registry Keys

  Including a Hardware Configuration

  Specifying Distribution Media Size

When you specify all the necessary options in the Edit Installer dialog box, click OK to return to the Manage Distributions dialog box.
  • In the Mange Distributions dialog box, right-click the installer and select Build. If the build fails, troubleshoot the installer using the instructions at the bottom of this page.
  • When LabWindows/CVI finishes building the installer, click Close. You now can install the application.
  • For more information about each of the tab options in the Edit Installer dialog box, refer to the following resources:
    General Tab
    Files Tab
    Shortcuts Tab
    Drivers & Components Tab
    Registry Keys Tab
    Advanced Tab

    Troubleshooting

    When you build a distribution, LabWindows/CVI displays the Building Distribution dialog box to show the build progress. This dialog box also displays diagnostic messages, allowing you to debug settings and fix any issues. For example, a build can fail if you include a file in the build that is not present on your computer. LabWindows/CVI marks missing files with red text, including missing files on the Files tab of the Edit Installer dialog box and in other locations, such as the Your readme file or Your license agreement file fields on the General tab of the Edit Installer dialog box. Refer to Distribution Errors and Warnings for more information about Building Distribution dialog box messages.

    WAS THIS ARTICLE HELPFUL?

    Not Helpful