Imaging on reboot run Script before PKG

CCNapier
Contributor

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!

1 ACCEPTED SOLUTION

tthurman
Contributor III

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.

View solution in original post

4 REPLIES 4

tthurman
Contributor III

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

CCNapier
Contributor

OK, I can give that a go. Pre-flight might also be an option if I edit the package?

tthurman
Contributor III

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.

rqomsiya
Contributor III

Another option is to use Packages.app

It allows you to add pre and post-flight scripts. I do it all the time.