OSD Scripting Event = "STREAM"

Hi everyone,

Trying to get clarification on this as all the material I have on OSD scripting is leaving me a little fuzzy on this point. We have an OSD file that runs a .vbs script with this as the header:


We were hoping that this would only run when the software is 'streamed' not everytime it was launched but from what we have found during testing is that the .vbs runs everytime the application in launched. If that is true then it seems to me that my header above is no different that having EVENT='LAUNCH' TIMING="PRE"...

Did we do something wrong or was our understanding just wrong?


0 Comments   [ + ] Show comments

Answers (3)

Posted by: bertman 12 years ago
Senior Yellow Belt
The location of the script has to be between <DEPENDENCY> </DEPENDENCY>.

I don't know where the VBS is, but when this script is also in the sequence, you need te use TIMING="POST" (after streaming).
And maybe you can try PROTECT="TRUE" (so he will stay in the bubble).

Normally I use a CMD.EXE instead of the VBS, to test if I can start and access the script.
Posted by: DannyC 12 years ago
Orange Belt
The EVENT tag dictates when the script runs but doesn't have any logic to say that it only runs once or only at FIRST stream. The only practical difference between EVENT="LAUNCH" TIMING="PRE" and EVENT="STREAM" TIMING="PRE" is that you could use the latter to test for some condition on the client to determine whether you even want to bother streaming the app or not. Once it's streamed then there's not a lot of difference really.

I'd suggest that you include some sort of 'flag' condition in your script (create/check for a log file for example) which could be used to make sure it only does whatever it is it needs to do once.
Posted by: kkaminsk 12 years ago
9th Degree Black Belt
As a FYI you might want to check out this PDF and read pages 23-24.


Also more specifically read this document for some abortresult and successresult examples on page 42.

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ