I want to run a PKG file that was added as a component in my package based on some circumstances, How do I run a pkg file?
Thank you?
Edit: Now I am able to run the pkg file using
pkgFile. PKG As well as some other packages as components of this package. Where can I mention this script, this main application is executed before installation begins.
I tried to add the script as a pre-install script for the main app package, but it gives an exception Failure: run the preupgrade script
Any tips? Thank you.
I'm not an AppleScript programmer, so this is probably not the best way to do it, but it Should work:
do shell script "open file.pkg"
Comments
Post a Comment