开发者

Is the .pkg installation order within an .mpkg deterministic?

开发者 https://www.devze.com 2023-04-01 17:26 出处:网络
I\'ve created an .mpkg package bundle for Mac OS X from a number of .pkg packages. In the post-flight script of one of the .pkg packages, I want to perform an action which depends on another one 开发者

I've created an .mpkg package bundle for Mac OS X from a number of .pkg packages. In the post-flight script of one of the .pkg packages, I want to perform an action which depends on another one 开发者_JAVA百科of the .pkg packages already being installed. Can I guarantee that the .pkg packages will be installed in the same order that I ordered them in PackageMaker?


Based on my own further investigation, it would seem that:

  • all pre-flight scripts are run, then all packages are extracted, then all post-flight scripts are run; and
  • the order in which the individual scripts are run is not deterministic.
0

精彩评论

暂无评论...
验证码 换一张
取 消