How Can I Add Multiple Support Files and Reproduce Directory Structure with the LabVIEW Application Builder?
Primary Software Version: 8.5
Primary Software Fixed Version: N/A
Secondary Software: N/A
I am using LabVIEW Application Builder to create a program that will eventually be installed on multiple target machines. My application is very complex and requires a large number of external support files, all of which have to be installed in a directory structure that must be created on the target machine by the installer. I have previously used the Application Builder to add each file and set up the directories, but it is tedious to do so one file at a time. Do I have any other options for large installations?
LabVIEW 8.0 and Later
In LabVIEW 8.0 and later, the application builder utilizes the project explorer organization which allows any files or folders to be added to the project. Once these support files/folders are added to the project, to include them in the installer, go to the Installer Properties window and click on the Source Files category. On the right hand side, expand out My Computer in the project window and select the folder or file, then select the destination folder in which you would like it to be installed. Click the arrow to add this folder or file. Now when the installer is built, these support files will be included.
LabVIEW 7.1 and Earlier
The simplest solution when using LabVIEW 7.1 and earlier to recreate a multiple file directory structure involves the utilization of a ZIP file. ZIP files have the ability to not only compress large numbers of files into a single, more easily managed file, but they also maintain directory information and will recreate the original directory structure on the target machine. Therefore, by simply zipping all of your files in their current directory structure, you can add a single support file (the resulting ZIP file) and simplify the process of creating your installer as well.
For a more refined and silent installation, a command-line unzip utility can be easily combined with a batch file to extract the support files and directory structure from your included ZIP file with little to no input from your end user. WinZip offers a command-line support add-on that works with WinZip 8.0, and it will work with the evaluation version. Other free alternatives exist, such as 7-Zip.
The batch file that must be developed with this system can be relatively small depending upon your destination machine. If you decide to go with WinZip and its corresponding command-line utility, you must insure that both the main WinZip program and the utility are present on the target machine. If they are not, they will need to be included as individual support files. The application builder installer will then place the self-extracting executables in the locations you specify for use later.
Your batch file will have to perform the following operations:
KnowledgeBase 2A6ECPG4: How Can I Include Other Installers with the Installer for My LabVIEW Application?
KnowledgeBase 149BHCQH: How Do I Make My LabVIEW-built Installer Run an Executable after Installation?
LabVIEW 8.5 Help: Building an Installer (Windows)
Report Date: 05/13/2002
Last Updated: 01/23/2010
Document ID: 2LC9APNK