• 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: getting pkg path from installer plugin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting pkg path from installer plugin


  • Subject: Re: getting pkg path from installer plugin
  • From: Philip Aker <email@hidden>
  • Date: Thu, 10 Jul 2008 10:23:48 -0700

ls -la /Volumes/*/.VolumeIcon.icns

On 08-07-10, at 05:50, Nethan Aryan wrote:

In my installer plugIns, I want to know the installer path from where the installer got launched. Currently I am getting that using
[NSBundle bundleForClass:[self class]];

But the problem is: in case user runs the installer from .dmg file, the installer.app copies my plugins into a /tmp folder and then loads them, which means I am not getting the pkg path from which customer has actually launched the pkg installer. Can you suggest a way to get the actual installer pkg path within a Plugin?

I think you could iterate /Volumes/* for a known top-level filename. For instance this shell script shows all my volumes that have a custom icon:


ls -la /Volumes/*/.VolumeIcon.icns

Given that you know the name of your plugin and most likely, the name of the installer pkg…


Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

_______________________________________________
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


References: 
 >getting pkg path from installer plugin (From: Nethan Aryan <email@hidden>)

  • Prev by Date: Re: how to create the uninstaller on Mac Os
  • Next by Date: sending info to postinstall script from plugin?
  • Previous by thread: getting pkg path from installer plugin
  • Next by thread: Re: getting pkg path from installer plugin
  • Index(es):
    • Date
    • Thread