Re: Selectively displaying Installerpane at runtime.
On Wed, Apr 25, 2012 at 12:47 PM, sanmukh k <i.sanmukh@gmail.com> wrote:
Hi,
I have written an installerplugin to show a custom pane in the pkg installer. I want to display the pane only during first install and hide it when upgrading. I know how to find out if the package has already been installed or not but I am not able to figure out the logic of showing/hiding the installerpane based on a runtime decision.
One method I could think of is that the installerplugin contains an Installersection outlet called parentSection. And installersection class has a function shouldload whose return value decides whether the section should be loaded or not. And this article: http://www.mactech.com/articles/mactech/Vol.25/25.06/InstallerPlugins/index.... mentions that the installersection methods can be overloaded. But I am unable to think of a way to overload the functions as parentSection is just an object inside the installerpane class.
I don't know of any official way to hide a plugin once it's there. But you can skip the step by moving to the next/previous step (in most cases) when you are supposed to continue or go back to your installer plugin step./pane. _______________________________________________ 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: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephane Sudre