开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜