Posted on 05-20-2016 07:06 AM
Hi,
Imaging question!
I have a script I need to run BEFORE a package is installed.
Both the package and the script need to be run "at reboot" (install on boot drive after imaging). The script isn't technically related to the package, but performs some necessary work otherwise the package fails.
As far as I can tell, I can only get the package to run before the script - and not vice versa. It seems "at reboot" settings process all PKGs first?
What's the best way to accomplish this?
Thanks!
Solved! Go to Solution.
Posted on 05-20-2016 07:39 AM
You should be able to add scripts to packages created by Casper Composer. I just did a quick test with a post-flight script. Seems to work alright.
Posted on 05-20-2016 07:23 AM
As far as I know there isn't away to specifically run a script before hand. My suggestion is to create a package that runs a script and put it's priority really low. (I haven't tested this - but I assume it would work.)
--
TJ
Posted on 05-20-2016 07:34 AM
OK, I can give that a go. Pre-flight might also be an option if I edit the package?
Posted on 05-20-2016 07:39 AM
You should be able to add scripts to packages created by Casper Composer. I just did a quick test with a post-flight script. Seems to work alright.
Posted on 05-20-2016 09:17 AM
Another option is to use Packages.app
It allows you to add pre and post-flight scripts. I do it all the time.