【发布时间】:2013-05-03 17:52:33
【问题描述】:
我想禁用安装程序中的“更改安装位置...”按钮(如下截图)。我正在尝试在 macOSX 10.8 上使用 pkgbuild 和 productbuild 创建安装程序。 首先,我正在使用 pkgbuild 创建两个 .pkg 文件。
pkgbuild --root myApp --component-plist myApp.plist --scripts appScripts --identifier com.myapp.coreapp --version 1.0.00 --install-location /Applications --ownership preserve
pkgbuild --root myBr --component-plist myBr.plist --scripts brScripts --identifier com.myapp.browser --version 1.0.00 --install-location /Library/Internet\ Plug-Ins --ownership preserve
在上述 plists 中,我使用 BundleIsRelocatable 作为 false。
然后我正在使用 productbuild 创建最终的安装程序包。
productbuild --distribution dist.xml --resources res inst.pkg
在 dist.xml 中,我尝试了与 domains 和 rootVolumeOnly 的所有组合,但我仍然无法禁用 “更改安装位置...” 按钮。
有人可以帮忙吗?非常感谢。
【问题讨论】:
-
您是指“安装类型”屏幕上的按钮,它让您返回“目标选择”屏幕?
-
是的,我不想要目的地选择屏幕,也不想要更改安装位置按钮,因为我只想安装在 /Applications 中。
-
现在也附上截图。
标签: macos productbuild pkgbuild