06-08-2013 08:08 AM
Hi People,
I would like to get NI product installation directories (thinking about TestStand).
I think I got once a cmd command which shows (by typing TestStand+"something" on my cmd command prompt) TestStand installation directories.
such as (on windows seven):
- C:\Program Files (x86)\National Instruments
- C:\Users\Public\Documents\National Instruments
Note that those directories are different depending the OS you use !
But I cant remember this command.
Does anyone knows about it ? If not (may be I dreamt) does it exist ?
Thanks to all repliers...
Solved! Go to Solution.
06-09-2013 02:34 PM - edited 06-09-2013 02:39 PM
To LMartin -
1) The TestStand Version Selector will define/set the following environment variables for the active version of TestStand:
So if you had used %TestStand% on the command-line then this would have resolved to the appropriate directory.
2) The only way to determine the directory for a non-active version of TestStand is to access the registry based on the major/minor version number of the product.
For example on a 32-bit OS:
HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\TestStand\5.0\Path
or on a 64-bit OS:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\National Instruments\TestStand\5.0\Path
06-10-2013 05:02 AM
In case you want it programmatically ( run time) use the statement step with the following API - RunState.Engine.GetTestStandPath(variable_inputs)
Based on the variable_inputs selected different TestStand paths ( ex config path or program files path or public path etc) will be displayed.
Refer help document for this API.
06-11-2013 07:17 AM
Now that I know that it is an environment variable,
the command is set TestStand on cmd prompt which gives the directories paths I was looking for.
Thanks to you Scott_Richardson for this detailed explanations,
and to you SunRS for this tip.
Cheers !