01-14-2016 02:52 PM - edited 01-14-2016 03:06 PM
Hello,
I'm attempting to set up a step in my TestStand sequence that compares the deployment version that's running to a released software configuration, so when the configuration is updated, TestStand sequences exit out and request to be updated. To do this, I need to programmatically identify the version number of the installed TestStand sequence.
What I've come up with is that I can use a custom command in the deployment utility to copy the nidist.id file from <InstallerDir> to "<InstallationDir>\ProjectName\LabVIEW". Like another person who's had an issue here, I can run my command in a CMD window without issue, but the installer yields:
"Error code:2 occurred on command <InstallerDir>\copy nidist.id "<InstallationDir>\ProjectName\LabVIEW"
The system cannot find the file specified."
Similar to the other poster, I find that putting all commands into a batch file is a little ham-fisted, but I also suspect the batch file will not resolve <InstallationDir>, reducing its dynamic functionality.
01-15-2016 04:34 PM
Hello,
A sequence file is an object in TestStand and has properties, like the version, that you should be able to access through the API.
Have you tried following the steps outlined in the following KowledgeBase article: How Can I Programmatically Query the Sequence File Version of My TestStand Sequence?
01-17-2016 02:15 PM - edited 01-17-2016 02:34 PM
Thank you for getting back to me on this, Mena.
I have seen this article, and I'm trying to do something a little different, or think I am, at least. The version number I'm trying to determine is the deployment version, not the version of the sequence file. This is located in plaintext in the nidist.id file created when using the TestStand Deployment Tool. Does the TestStand Deployment Tool project the deployment version number onto the sequence file version while building a deployment?
The reason I think I want to use the deployment version is: What if I modify a VI but not the TestStand sequence, then re-deploy? The two sequences would be indistinguishable at first glance, it seems. One can potentially solve this by manually up-revving the sequence file any change is made, but this requires fallible memory and discipline, whereas the deployment tool is automatic.
01-18-2016 04:00 PM
Are you running the installer as an administrator?
Also, try the syntax copy "<InstallerDir>\nidist.id" "<InstallationDir>"
The general windows command syntax for the copy command is copy "source" "destination", so while your current syntax works in the command prompt, there may be something preventing it from working through the deployment utility. I will keep looking into this issue to see if there are any other suggestions I can give if changing the syntax doesn't resolve it.
01-20-2016 04:42 PM
Hi Archon,
I was able to copy the nidist file successfully in a simple installer using the configuration below:
A couple things to note:
I also investigated the possibility of using batch files as you mentioned. You can use batch parameters to pass NI directories into a batch file using the process below:
Please let me know if you have any problems with either of these two approaches.