site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Hello All, I have small problem and need your help. - If you're looking for the path of Installer.app: - If you're looking for the path of your .pkg: Depending at which step your plugin is displayed, you may: 2) Read this file from your plugin. _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... On Jul 10, 2008, at 2:50 PM, 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? NSLog(@"%@",[[NSBundle bundleWithIdentifier:@"com.apple.installer"] bundlePath]); // This solution may depend on the LaunchServices cache NSLog(@"%@",[[NSBundle bundleForClass:NSClassFromString (@"InstallerController")] bundlePath]); // This solution relies on implementation. Use at your own risk 1) Use an InstallationCheck script and save the $1 parameter into a tmp file. This solution may not work if the plugin is displayed before the Select Destination step. This email sent to site_archiver@lists.apple.com