OnEvent Wizard for SVS Layers
In a stroke of pure laziness after a long day at work, I decided to make a wizard written in batch script for OnEvent actions in SVS Layers. The product turned out to be useful for myself so I decided to make it available to anyone suffering from the same fear of non-automated tasks that I do. So here it is. If you make any improvements please post it up again. I would like to see it.
This script uses the %VZ_LAYER_METADIR% variable to allow your selected script or executable to be packaged inside the VSA. This is probably the standard for most of you, but I wanted to make that clear since I wasn't very descriptive the first time.
Overview
- You will be asked for a layer name to add an OnEvent Action to.
- You will be asked what folder the script lies in that will be run.
- You will be asked the name of the script.
- Finally you will have to choose which event will run the script.
If all goes well everything else is done for you.
ENJOY!!
| License: | AJSL By clicking the download link below, you agree to the terms and conditions in the Altiris Juice Software License |
| Support: | User-contributed tools on the Juice are not supported by Altiris Technical Support. If you have questions about a tool, please communicate directly with the author by visiting their profile page and clicking the 'contact' tab. |
Editor's Note: For the corporate packaging guru, Wise Package Studio 7 Professional includes an events editor within the Virtual Package Editor. WPS Pro also includes WiseScript, an incredibly powerful and easy-to-use technology that allows you to build single executables for complex OnEvent actions. See this and this for examples.

Nice Script
I am aware of Wise's ability to add Wise Scripts to OnEvent actions as well as one off commands. This script allows me to add EXEs, Jars, Bats, VBS, and anything else you can think of to all the available OnEvents. Best part is, it does it for me. Nice Job.
PS Liked your animation too.
Part of my layer building
Part of my layer building script proactively adds the events to the layer via the Registry (my build machine is clean and so the layer I'm building always uses layer numbers 1 and 2). The reg file I import contains these lines:
[HKEY_LOCAL_MACHINE\SYSTEM\Altiris\FSL\1]
"OnPostActivate"=hex(7):00,00
"OnPostCapture"=hex(7):00,00
"OnPostCreate"=hex(7):00,00
"OnPostDeactivate"=hex(7):00,00
"OnPostExport"=hex(7):00,00
"OnPostImport"=hex(7):00,00
"OnPostReset"=hex(7):00,00
"OnPreActivate"=hex(7):00,00
"OnPreCapture"=hex(7):00,00
"OnPreCreate"=hex(7):00,00
"OnPreDeactivate"=hex(7):00,00
"OnPreDelete"=hex(7):00,00
"OnPreExport"=hex(7):00,00
"OnPreReset"=hex(7):00,00
Later, if I want to add a script to an event, I just have to edit the Registry to point to the file in the appropriate Registry value, usually OnPostActivate or OnPostImport.
The bad links hunter strike again !
OK just corrected links are
www-secure.symantec.com/connect/articles/using-wisescript-manage-delivery-time-logic-svs-applications-part-1
www-secure.symantec.com/connect/articles/using-wisescript-manage-delivery-time-logic-svs-applications-part-2
~~PaKo @ www.BeMore.ch (Sorry for the Bad English, did you speak French ? Join us https://www-secure.symantec.com/connect/groups/gro... )
Thanks Pascal! I've fixed the
Thanks Pascal! I've fixed the links within the download post - they work now!
Cheryl
Endpoint Management & Virtualization
Community Manager
www.twitter.com/EMnV_symc
Would you like to reply?
Login or Register to post your comment.