I want to disable the "Change installation location ..." button (screenshot below) in the installer. I am trying to create an installer using pkgbuild and productbuild on macOSX 10.8. First, I create two .pkg files using pkgbuild.
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
In the above plists, I use BundleIsRelocatable as false .
And then I use productbuild to create the final installer package.
productbuild --distribution dist.xml --resources res inst.pkg
In dist.xml, I tried all combinations with domains , as well as rootVolumeOnly , but I still can’t disable the "Change installation location ..." button.
Can anyone help? Many thanks.

dDarkLORD
source share