LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 8.0 Command Line Parameters [SOURCEDIR]

I can use [INSTALLDIR] as a Command line parameter, this works fine.
I tried using [SOURCEDIR] as a command line parameter, it returns nothing.
I tried "[SOURCEDIR]",, it returns two double quotes ""
I was expecting it to return the directory where the files are coming from
during the installation process...
for example E:...path... or maybe D:....path..... when from a CD
Can someone help - I was able to return the Source directory for Labview
Version 6.1 and Version 7.1 installations.
0 Kudos
Message 1 of 7
(3,669 Views)
Hello,
 
Are you talking about installing LabVIEW 8.0, or an installer you created for an appliction built in LabVIEW 8.0?  If you can be more specific, I will play with this and try to get you a difinitive answer.  Also, is this important for your application, or just a curiosity?
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 2 of 7
(3,641 Views)
To clarify, I am creating an application that needs to run a small program just after installation of my main program.
In the Advanced part of the install definition, you can give a program name and define command line parameters. Some parameters are
pseudo parameters defined by Labview: Three are expressed in the Help definition; [INSTALLDIR], [ProductName], and [Product Version]...
Labview 6.1 and 7.0 allowed me to also pass the [Source Directory], which ending up giving the path of the setup.exe file
In prior Labviews, the parameter was defined as [NIMSIDISTKIT_SourceDir]...
(in my case it would be a CD: path). Then I could use this path in this small program that was called at installation (of my pgm) to access the CD for whatever other files I might want to take - without having to include these files in the build.
This is not just a curiosity factor - I'm actually using it in my program install...thankyou for responding...
 
 
0 Kudos
Message 3 of 7
(3,634 Views)
Hello,
 
I understand, and see how that can be a problem.  I have filed a corrective action request to R&D regarding the apparent removal of this option (it's at least a documentation problem if they simply changed the name again).  In the mean time, if the application you're passing this source directory to is on the CD, can you just use the "Current VI's Path" function to use ITS location as a reference, instead of passing it via the command line argument?
 
I look forward to hearing back from you, and sorry for the inconvenience!
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 4 of 7
(3,620 Views)

PS - For reference, the documented list of features and changes for LabVIEW 8 can be found here:

http://zone.ni.com/reference/en-XX/help/371361A-01/lvupgrade/labview_8_0_features/

Best Regards,

JLS

Best,
JLS
Sixclear
0 Kudos
Message 5 of 7
(3,620 Views)
Hello again,
 
Hopefully you get a notification for this post; please try using [DISTROOT] in place of [SOURCEDIR] - this was previously undocumented, and only after the appropriate call chain to R&D did this possibility surface.
 
I hope this helps!
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 6 of 7
(3,590 Views)
Hello,
 
This is just a bump to make sure you were able to use the replacement parameter - I think the plan is to allow both in a future version.
 
If you were successful doing so, I'd like to know, otherwise we can explore what else might be going wrong!
 
Best Regards,
 
JLS
 
 
Best,
JLS
Sixclear
0 Kudos
Message 7 of 7
(3,522 Views)