• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
postflight script not running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

postflight script not running


  • Subject: postflight script not running
  • From: John Nairn <email@hidden>
  • Date: Sun, 5 Apr 2009 12:42:11 -0700

I cannot get my app installation to run a postflight script.

1. The script runs fine in terminal app and exits with 0
2. I put it in my install package (at path Scripts/postflight) and choose that file in the Scripts panel in the postflight field
3. The script is in the built package (when I show its contents it is in the Resources folder)
4. The install proceeds without warning or error (and even displays a brief message on running installer script)
5. The script does not run (as judged by its function not getting done and by none of the "echo" lines appearing in console or installer.log)
6. I am using PackageMaker 3.0.3


For reference, the script is short and given below. It is just removing some preferences I want to change when people upgrade. The echo line never outputs anyplace and the defaults command never deletes anything.

#!/bin/bash

echo "GEDitCOM II - reset to default index column settings"
defaults delete com.geditcom.GEDitCOMII "Index Column Settings"
echo "GEDitCOM II - reset to default browser window toolbar"
defaults delete com.geditcom.GEDitCOMII "NSToolbar Configuration browserToolBar"
exit 0


------------
John Nairn
http://www.geditcom.com
Genealogy Software for the Mac

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: installation script stdout?
  • Next by Date: Re: Pre/Post-installation action documentation?
  • Previous by thread: installation script stdout?
  • Next by thread: language/country
  • Index(es):
    • Date
    • Thread