• 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 home directrory installers for pre 10.5 systems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PackageMaker home directrory installers for pre 10.5 systems


  • Subject: Re: PackageMaker home directrory installers for pre 10.5 systems
  • From: patrick machielse <email@hidden>
  • Date: Sun, 25 Nov 2007 16:38:28 +0100

Op 25 nov 2007, om 10:24 heeft Stéphane Sudre het volgende geschreven:

On dimanche, novembre 25, 2007, at 01:28  AM, patrick machielse wrote:

I'm developing a plugin (exporter) for iPhoto 08 that should be installed in ~/Library/Application Support/iPhoto/Plugins. Since installers are encouraged now, and I certainly don't want the user to have to dig around in ~/Libarary/ (using the Finder, on paths that Spotlight won't search) I thought I'd turn to PackageMaker.

For deployments on 10.5 I can specify that the product only be installed into the user's Home Directory domain, and all is well. However, this PackageMaker domain is not supported on 10.4 and the (very light) documentation of PackageMaker doesn't explain how to achieve the same result on earlier versions of the OS.

I've searched for a solution on the internet and it was suggested some years ago that you could install the product in a temporary directory and then have a post-install script move the installed component to its final destination. Alternatively, a symlink to a location in the home directory could be created in /tmp/ using a pre-flight script, and the installer would install through that. Is this still the way to do it in 2007?

If you need to support 10.4 or earlier, yes.

The flat package format which includes the new domain feature is 10.5 or later only.

Apple _could_ have supplied a more intelligent installer as part of 10.4.11 :-(


I'm trying to install into the plugin folder by using the following scripts:

preinstall.sh
-------------
#!/usr/bin/env sh

# install location for iPhoto exporters
PluginDir="$HOME/Library/Application Support/iPhoto/Plugins"

# create the plugin folder if needed
mkdir -p "$PluginDir"

# create a soft link in /var/tmp/
ln -shf "$PluginDir" /var/tmp/com.mycompany.myproduct


postinstall.sh -------------- #!/usr/bin/env sh

# clean up the install symlink (OS X won't)
rm -f /var/tmp/com.mycompany.myproduct


The problm I'm having now (only tested on 10.5.1) is that the Installer doesn't run my scripts. I can see that they are included in the package, they just never seem to be executed. The same seems to be true for the distribution action (get iPhoto and quit it); it never seems to run.


What am I missing?

patrick

_______________________________________________
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


  • Follow-Ups:
    • Re: PackageMaker home directrory installers for pre 10.5 systems
      • From: Stéphane Sudre <email@hidden>
References: 
 >Re: PackageMaker home directrory installers for pre 10.5 systems (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: PackageMaker home directrory installers for pre 10.5 systems
  • Next by Date: Re: PackageMaker home directrory installers for pre 10.5 systems
  • Previous by thread: Re: PackageMaker home directrory installers for pre 10.5 systems
  • Next by thread: Re: PackageMaker home directrory installers for pre 10.5 systems
  • Index(es):
    • Date
    • Thread