Combining a User-Created .ini File with LabVIEW.ini for Distribution

Updated May 3, 2018

Reported In

Software

  • LabVIEW Application Builder Module
  • LabVIEW Base
  • LabVIEW Full
  • LabVIEW Professional

Issue Details

I have a LabVIEW VI that I have built into an application. By default, LabVIEW creates a [Executable Name].ini file to store the LabVIEW environmental settings for distribution. I also have my own configuration file and I want to combine these two .ini files. Is there a method for combining the two files?

Solution

You can use Application Builder to combine your application's .ini file with the LabVIEW .ini file into a single .ini file.  You must have your .ini file saved in the project in order to add it. Follow the steps below to accomplish combining the .ini files.
 
  1. Right-click on your executable build specification and select Properties.
  2. In the properties window, select the Advanced category.
  3. LabVIEW 2010 and later: Check Use Custom Configuration file


Prior to LabVIEW 2010: Uncheck the box next to Use the default LabVIEW Configuration file (LabVIEW.ini)


4. In the Select Project File dialog, either select the .ini file if it is in your project or click Add... to browse for it.
5. Ensure that all of your configuration file accesses within your application point to the new location which is at the same level as the executable.
6. Rebuild the application.

Additional Information

On the deployed machine, the custom .ini file and the executable must be located at the same level in the directory structure because this is the default location where LabVIEW searches for the .ini. If LabVIEW cannot find it in this location it will auto-generate a new .ini file and your environmental settings will be lost.

WAS THIS ARTICLE HELPFUL?

Not Helpful