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

Command Line Argument Variables in LabVIEW 6.0.x Application Builder Do Not Expand Properly

Primary Software: LabVIEW Development Systems>>LabVIEW Professional Development System
Primary Software Version: 6.0.2
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Toolkits>>LabVIEW Application Builder

Problem: When building an application in LabVIEW, in the Advanced Installer Settings, it is stated that one can provide special variables %src, %dest, %group and %name for command line options. During installation these variables should be replaced with appropriate paths and passed to the executable as command line arguments. However, if these paths contain spaces, only the first tokens before the space are substituted for the variables.

Solution: To ensure the expanded paths are not truncated, include quotes for each variable, and quote the entire command line as well. For instance, if the first command line argument is the application installation directory chosen by the user, and the second argument is the directory which contains setup.exe, then enter ""%dest" "%src"" for the command like arguments option in Advanced Installer Settings.

Related Links:

Attachments:





Report Date: 01/15/2005
Last Updated: 01/20/2005
Document ID: 3HEJUQKF

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