Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
5 ratings:
 4.20 out of 5     Rate this Document

How Can I Include Additional Installers with My LabVIEW Applications' Installer?

Primary Software: LabVIEW Development Systems>>Full Development System
Primary Software Version: 8.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I have created an executable for my LabVIEW application and am now creating an installer.  I would like to include other installers (NI LabVIEW Run-Time Engine, NI-VISA, NI-DAQmx, etc.) with my LabVIEW application’s installer. How can I do this?

Solution:
LabVIEW 8.x
In LabVIEW 8.x, you can include other NI installers, such as NI-VISA, NI-DAQ, etc., with your LabVIEW application installer, as long as they are already installed on your development machine. Inside of your LabVIEW application’s installer, select the Additional Installers heading in the Category toolbar.



Select the desired installers to bundle with the LabVIEW application installer.

LabVIEW requires the additional installer’s source MSI and .id files that were used for installation on the development machine to be able to install the additional installer on other machines. These source files are not usually left on the development machine after installation. The Installer source location field tells LabVIEW where to find these needed source files. LabVIEW will, by default, set this field to the last location used to install the additional installer on the development machine. If you installed your additional installer from a CD, you will need to put that CD into your drive before building your installer. If you downloaded the additional installer from ni.com/support and deleted the source, you will need to download the same version and unzip it again before you build and point the Installer source location field to this new folder.

If LabVIEW cannot find the needed files, it will throw up a distribution error asking for the correct source distribution location. Refer to the linked KB, Why Do I Get A "Missing Distribution" Error When Trying to Build an Installer from LabVIEW 8.0? for more information.

You can also include other non-NI installers in LabVIEW 8.x. This requires using the executable method that is described below.

For more information on building LabVIEW application installers, see the “related links” section below.

LabVIEW 7.1 and earlier
In previous versions of LabVIEW, the LabVIEW installer options give you the ability to launch an executable after the installation (refer to the Knowledgebase - "How Do I Make My LabVIEW-built Installer Run an Executable After Installation?" linked below). The problem with launching an executable in this fashion (in LabVIEW 7.1 and below) is that you can only launch a single executable and that executable must be included as a support file in the installer. Another possibility is to have the application builder launch a batch (*.bat) file that launches the other installers.

This method is useful for developers who:
  1. Want the LabVIEW application installer to launch other installers from an installation disk or CD without actually having to copy all the installer files to the hard drive first or having to include the entire installer as support files.

  2. Want to have the LabVIEW application installer launch multiple other installers.

  3. Want to give the user install options, allowing them to choose whether they want to launch the other installers or not.


Related Links:

KnowledgeBase 3S88PJMY: Why Do I Get A "Missing Distribution" Error When Trying to Build an Installer from LabVIEW 8.0?
KnowledgeBase 49KA7143: Changing the Location of an Additional Installer in my LabVIEW Project
KnowledgeBase 149BHCQH: How Do I Make My LabVIEW-built Installer Run an Executable After Installation?
KnowledgeBase 2WCDS3DI: Creating a Batch File
LabVIEW Support: Application Builder Troubleshooting Wizard
KnowledgeBase DIRECT-44PNDL: Where Does My LabVIEW Application Builder Executable Look for the LabVIEW Run-Time Engine (LVRT.DLL)?
Developer Zone Tutorial: Distributing Applications with the LabVIEW Application Builder
Product Manuals: LabVIEW 8.2: Additional Installers Page (Windows, Professional System Only)
Product Manuals: LabVIEW 8: Building a Stand-Alone Application



Attachments:


Making Batch Files.htm - Making Batch Files.htm
Installer.jpeg - Installer.jpeg
AdditionalInstallers.bmp - AdditionalInstallers.bmp



Report Date: 06/07/2001
Last Updated: 01/28/2008
Document ID: 2A6ECPG4

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit