07-01-2011 01:08 PM
Is it possible to automatically run a script or executable after a deployment build with the TestStand Deployment Utility? (I'm using TestStand 2010)
-Joe
Solved! Go to Solution.
07-01-2011 02:22 PM
In the TestStand Deployement Utility on the Installer Options tab you will see a button labeled: Custom Commands... Those get executed after the installer finishes. Click the Help button and read about it. If you still have questions let me know.
Not sure if this is still valid: http://digital.ni.com/public.nsf/allkb/1E54BA3152A6A2A586256D7C004F5A78
Hope this helps some.
07-01-2011 02:28 PM
Hey, jigg,
How about if I'm not building an installer? I want it to run after the deployment utility finishes, not after the installer.
-Joe
07-01-2011 03:01 PM
Ok this is totally racking my brain here.
So the TestStand Deployment Utility is an executable that gets called from Deployment Utility.seq. These are located in <TestStand>/Components/Tools/Deployment Utility. In fact if you are in the Sequence Editor and go to Tools>>Deploy TestStand System... it calls that sequence.
I'm assuming you want the script to kickoff once the build completes and not when the user clicks the Done button from the TestStand Deployment Utility? Correct? The later case would be simple. Just change the Wait Condition for the Call Deployment Utility step in that Deployment Utility sequence and then put some code after it that will kick off the exe. The harder one would be to detect when the build is complete. Because it would be something inside of DeploymentUtility.exe that you'd have to detect and I doubt there is anything you can probe to tell you when a build has completed. I don't see the source code for that executable either.
The only other thing I can think of is if you can detect when that little done window pops up through the OS somehow.
I'm wondering why you would even need something like that? Maybe there is a better way to do what you need?
07-01-2011 03:15 PM
Recent post, may help.....
http://forums.ni.com/t5/NI-TestStand/Advanced-usage-of-TestStand-Deployment-Utility/m-p/1547172
Thanks,
PH
07-02-2011 08:02 AM
Yes! PH, this is exactly what I need. Thanks a lot, guys.