How do I get user input into a PackageMaker package?

时间秒杀一切 提交于 2019-12-05 17:53:06

You can create an Installer Plug-in, which is a Cocoa loadable bundle that can contain your own user interface and code. When you add a plug-in to the Installer package, the Installer app will display your plug-in's UI as an additional step in the installation process.

The Apple sample code and only available documentation is here. There is a great explanation of the process here.

Unfortunately, inserting the plug-in bundle into your installer package has become needlessly difficult as of PackageMaker 3.0 and its flat package format.

Once you've created your plug-in bundle, you first need to build your installer package as normal. Once it's built, you need to go to the Edit menu in PackageMaker and open the Flat Package Editor. Open your installer bundle, and insert the plug-in in the appropriate location as you would in the Finder with a 2.0 installer bundle. That is, you need to create a Plugins folder and inside that you must insert your bundle plus the InstallerSections.plist file (which the sample above explains).

Can you expand on this at all? I've copied those two "files" into a Plugins directory via the Flat Package Editor like you said. However, after saving, closing, and re-opening the package, the plugins directory is gone.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!