Re: getting pkg path from installer plugin
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