Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Caveats and Recommendations for Building Installers

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

The following list describes some of the caveats and recommendations to consider when you build an installer.

  • When you select files to include in the installer build from the Source Files page of the Installer Properties dialog box, you cannot select part of a build specification. You must include build specifications as a whole. The entire specification appears in the Destination View tree.
  • If you want to include a project library in the installer build, make sure the project library does not include files on a network or other files with links that will break if moved. You cannot copy a project library from the Project Files View directory to the Destination View directory if any of the files are on different drives, or if the files do not share a common path with the LabVIEW project file (.lvproj).
  • Consider building a source distribution that contains the files you want to include in an installer build, to reduce the possibility of broken links for files on networks or different drives.
  • When you add a National Instruments product installer to the installer build, the drivers and components for NI products that you include in the installer contain only those features that are installed on the computer on which you build the installer. For example, if you have only 10 of a possible 20 features of an NI product installed on the build computer and then select to include the full version of that product in the installer, the installer will include only the 10 features installed on the build computer, not all 20 features available for that product.

    It is possible for an installer you create to uninstall components on the computer on which it is installed without reinstalling current versions of those components. This behavior depends on the NI products installed on the build computer and those installed on the computer on which you run the installer. If the computer on which you run the installer has an NI product installed that is not installed on the build computer, that product may be removed during the installation. The installer displays information to you that explains what features will be removed as part of the installation before uninstalling any components and gives you the option to stop the installation.
  • You can include custom error codes in the installer. The [LabVIEW x Run-Time] folder in the Destination View directory corresponds to the Shared\LabVIEW Run-Time\x.x directory, where xx is the LabVIEW version currently in use. If you place a checkmark in the Install custom error code files checkbox on the Advanced page, the installer build includes all error code files from labview\project\errors and labview\user.lib\errors and installs them in the Shared\LabVIEW Run-Time\x.x\errors directory.
Note Note  You must manually create an errors folder in the labview\user.lib directory to organize your error code files.
  • If you receive an out of memory error when building an application for an installer build, consider one of the following solutions:
    • Enable LabVIEW to use up to 3 GB of memory on 32-bit Windows.
    • If the application includes large or complex VIs, lower the complexity threshold at which LabVIEW prioritizes editor responsiveness over execution speed. This change allows LabVIEW to devote more memory to the build process.
    • Reduce the number of VIs in your application by dividing portions of the application into separate source distributions. The VIs in the application use the Call By Reference node to call separate portions.
  • When you test a stand-alone application, shared library, .NET assembly, or Web service for an installer build, if the load time takes longer than you expect, remove portions of the VIs that other VIs call dynamically once or occasionally. For example, if an application has a configuration dialog box that consists of many VIs and the user has to choose to load the dialog box, use the VI Call Configuration dialog box to configure when the subVI loads by selecting the Reload for each call option. When you create applications, shared libraries, and .NET assemblies, modify the build so that it has additional destinations. To reduce load time, configure the VIs that you call dynamically to go into those additional destinations, rather than the main application or shared library.
  • Use the [LabVIEW x] folder in the Destination View directory to add files to install in the directory of the latest version of LabVIEW that the user has installed.
    • If you include the build specification for any type of application within an installer, ensure that the build output of the build specification is relative to the primary destination of the build specification. The primary destination is specified on the Destination page of the Properties dialog box for the application. If the build output includes any files that are not relative to its primary destination, the installer will reorganize the original file hierarchy of the application. In particular, the installer will move any files that are not relative into the primary destination.
  • You do not need additional license files when using LabVIEW distribution components with LabVIEW-built applications.
  • When you add a build specification to a folder in the Destination View tree of the Source Files page of the Installer Properties dialog box, the name of the build appears in the Destination View tree, even though a folder with the name of the build does not exist.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit