Re: pkg/product-build packages not asking for admin password on 10.5.x
*sigh* of course the solution presents itself 5 minutes after you find THE list where to ask for help: I read somewhere on the list that spaces should not be used in packages used for a productbuild. Guess what: dashes neither! - Bram On Mon, Feb 18, 2013 at 2:38 PM, Bram de Jong <bram.dejong@samplesumo.com> wrote:
Hello all,
New on this list. Hello!
We are building packages on 10.7 which should at least be install-able on 10.5(.8). We create audio software and audio people are a very conservative crowd when it comes to upgrading - if it's not broken don't fix it is almost their life's manta!
So, we're using pkgbuild and productbuild to create the packages, but (--this is our first analysis but might not be the root cause--) none of the installers are asking for admin passwords. When trying to write things they just fail with this rather cryptic message:
Jan 8 15:41:55 mac-users-mac-pro-3 payloadExtractor[553]: BomFatalFileError 1: Operation not permitted - //. Jan 8 15:41:55 mac-users-mac-pro-3 payloadExtractor[553]: BomFileError 1: Operation not permitted - //. Jan 8 15:41:55 mac-users-mac-pro-3 Installer[550]: PackageExtraction tool errors being sent faster than they're being processed Jan 8 15:41:55 mac-users-mac-pro-3 payloadExtractor[553]: Error extracting archive. Jan 8 15:41:55 mac-users-mac-pro-3 payloadExtractor[553]: pkgExtractor exited with error 1 while processing package '/Users/macuser/Desktop/SaltyGrainInstaller_1.0_20121219.pkg' Jan 8 15:41:55 mac-users-mac-pro-3 Installer[550]: Install failed: The Installer could not install some files in “/”. Contact the software manufacturer for assistance. Jan 8 15:41:55 mac-users-mac-pro-3 Installer[550]: Displaying 'Install Failed' UI. Jan 8 15:41:55 mac-users-mac-pro-3 Installer[550]: 'Install Failed' UI displayed message:'The Installer could not install some files in “/”. Contact the software manufacturer for assistance.'.
We have a long script creating the packages, so there are plenty of variables in here all representing paths, but this is the gist of it:
pkgbuild --root $RootPath --scripts $ScriptsPath --identifier com.samplesumo.pkg.saltygrain --version 1.0 --install-location / --ownership recommended $PackageTmp
productbuild --distribution "distribution.xml" --package-path $PackagingDir --resources $ResourcesPath $Package
The distribution XML:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <installer-gui-script> <title>SampleSumo - SaltyGrain</title> <readme file="ReadMe.rtf" mime-type="text/plain" /> <license file="Copyright.rtf" mime-type="text/plain" /> <background file="logo.png" scaling="none" alignment="bottomleft" /> <domain enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="false"/> <pkg-ref id="com.samplesumo.pkg.saltygrain"/> <options customize="never" require-scripts="false"/> <choices-outline> <line choice="default"> <line choice="com.samplesumo.pkg.saltygrain"/> </line> </choices-outline> <choice id="default"/> <choice id="com.samplesumo.pkg.saltygrain" visible="false"> <pkg-ref id="com.samplesumo.pkg.saltygrain"/> </choice> <pkg-ref id="com.samplesumo.pkg.saltygrain" version="1.0" onConclusion="none">SaltyGrain-tmp.pkg</pkg-ref> </installer-gui-script>
If anyone has any idea why this would be failing that would be great... After a bit of messing about we now have 10.5.8 installed in vmware, so testing anything you might suggest is quite easy.
kindest,
- Bram
-- Bram de Jong - CTO SampleSumo BVBA, Wiedauwkaai 23 G, B-9000 Ghent, Belgium Web: http://www.samplesumo.com Twitter: http://twitter.com/SampleSumo Facebook: http://facebook.com/SampleSumo Phone: +32 9 3355925 - Mobile: +32 484 154730
-- Bram de Jong - CTO SampleSumo BVBA, Wiedauwkaai 23 G, B-9000 Ghent, Belgium Web: http://www.samplesumo.com Twitter: http://twitter.com/SampleSumo Facebook: http://facebook.com/SampleSumo Phone: +32 9 3355925 - Mobile: +32 484 154730 _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Bram de Jong