Automating the Installation of National Instruments Software - NI Installers Version 2.4x and Previous Primary Software: NI Installers>>Installer FrameworkPrimary Software Version: 2.5.1 Primary Software Fixed Version: N/A Secondary Software: LabVIEW Development Systems>>Professional Development System
Problem: How can I create a silent installer for National Instruments software products with NI Installers version 2.4 and previous? Solution: Note: To find out how to determine your version of installers, as well as how to silently install newer NI software, please see the related links section below. There are two methods which you can use to install or uninstall National Instruments products silently. Silent Installation with Default Options Here are a set of steps for creating a silent installer/uninstaller for LabVIEW but the steps apply to most other National Instruments software products.
Figure 2: Command Prompt Window
Silent Installation with Configuration National Instruments installers use a configuration file called a spec file. Using a spec file, you can specify exactly which features in an installation should be enabled and disabled by default. This is a powerful feature that facilitates automated installation and testing. Most of the National Instruments installers have a default spec file that you can use as a template to modify how the installer behaves. This file is usually found in a support folder, such as
The valid feature states are Local, Absent, and NoChange feature states.
For each feature in the installer, you can specify where that feature will be installed in the [Directories] section of the spec file. For example, [Directories]For example, if you wanted to install LabVIEW into a folder named LV_82_full you would place the following command in the directories section: NILV.LV820.001 = C:\Program Files\National Instruments\LV_8.2_Full\There is an example spec file attached to this KnowledgeBase that demonstrates how you can use a spec file to set which components to install. If there is a particular feature that you need to add to your script file and you cannot find the feature name, please contact NI Technical Support. To run your installer with a spec file, pass the spec file as a command line argument. For example,
If you prefer to run the installation using your spec file silently, you can combine the /q silent installation and the spec file by using the following format:
Figure 3: Spec File
The command to call setup using a spec file named
install.txt was located on the C: drive.Related Links: KnowledgeBase 4CJDP38M: Automating the Installation of National Instruments Software KnowledgeBase 4CJDR18M: How Can I Determine the Type and Version of My National Instruments Installer? KnowledgeBase 2LNEFGO9: Silent Installation of the LabVIEW Run-Time Engine KnowledgeBase 368M270U: Creating a Silent Customized Installer for NI-DAQmx KnowledgeBase 2HPDNSLD: Installing a LabVIEW Executable and LabVIEW Run-Time Engine Quietly KnowledgeBase 4H38UPXU: Requesting Permissions from VLM during Mass Software Installations Attachments:
Report Date: 05/09/2006 Last Updated: 06/11/2008 Document ID: 3X8BAP96 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
