NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Run script/exe after deployment build?

Solved!
Go to solution

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

0 Kudos
Message 1 of 6
(4,213 Views)

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.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 6
(4,210 Views)

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

0 Kudos
Message 3 of 6
(4,207 Views)

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?

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 4 of 6
(4,203 Views)
Solution
Accepted by topic author JoeDG
Message 5 of 6
(4,199 Views)

Yes!  PH, this is exactly what I need.  Thanks a lot, guys.

0 Kudos
Message 6 of 6
(4,189 Views)