• 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
Re: PackageMaker and scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PackageMaker and scripts


  • Subject: Re: PackageMaker and scripts
  • From: Douglas Norton <email@hidden>
  • Date: Mon, 06 Aug 2012 21:20:20 -0700

Don,

IIRC the post install scripts are shell scripts. email@hidden would be a better place to ask this question. 

Would it be more friendly to your users to duplicate the file as an operation upon first launch of your app?

Two reasons why this might be preferable are

1: You may not have permissions to rename the current file,
2: If your user reverts to your previous version the old support file will now be missing if it has been renamed.

(1) is unlikely since I think post install scripts run as a root user, however (2) could result in a support call, especially if you user cannot perform the task he wants in the new version of your application.

What is this file you want to rename?
Does it have to be done prior to launching your app?
If it's a static file, could you just install the new one?

- Douglas


On Aug 6, 2012, at 1:49 PM, Donald Hall wrote:

The PackageMaker documentation doesn't state what kinds of scripts I can use as a post install script.

Does it have to be a shell script or can I use AppleScript? I need to change the name of a support file on the systems of my existing clients and I have an AppleScript script that does this. I'd like to automatically run it after my app is installed.

Could I use the "Open File" post install Action to do this if I made the script an application?

Thanks, Don

------------
Don Hall
Apps & More Software Design, Inc.
email@hidden

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

This email sent to email@hidden

  • Follow-Ups:
    • Re: PackageMaker and scripts
      • From: Stéphane Sudre <email@hidden>
References: 
 >PackageMaker and scripts (From: Donald Hall <email@hidden>)

  • Prev by Date: Re: Where is CGAffineTransformRotate?
  • Next by Date: Re: PackageMaker and scripts
  • Previous by thread: PackageMaker and scripts
  • Next by thread: Re: PackageMaker and scripts
  • Index(es):
    • Date
    • Thread