我想在安裝程序中禁用「更改安裝位置...」按鈕(屏幕截圖如下)。我正嘗試在macOSX 10.8上使用pkgbuild和productbuild創建安裝程序。 首先,我使用pkgbuild創建兩個.pkg文件。在使用productbuild創建的安裝程序中禁用「更改安裝位置...」按鈕
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
在上面的Plist,我使用BundleIsRelocatable
作爲假。
然後我使用productbuild來創建最終的安裝程序包。
productbuild --distribution dist.xml --resources res inst.pkg
在dist.xml,我試圖與domains
也rootVolumeOnly
所有的組合,但我仍然不能夠禁用「更改安裝位置...」按鈕。
有人可以幫忙嗎?非常感謝。
你的意思上,爲您帶來「安裝類型」屏幕按鈕回到「目的地選擇」屏幕? – catlan 2013-05-10 12:20:21
是的,我不想要目標選擇屏幕,我也不想更改安裝位置按鈕,因爲我只想安裝在/ Applications中。 – dDarkLORD 2013-05-13 04:15:39
現在也附加了截圖。 – dDarkLORD 2013-05-13 04:32:56