• 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: Can I close an Installer from within the Packagemaker Installer Plugin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I close an Installer from within the Packagemaker Installer Plugin


  • Subject: Re: Can I close an Installer from within the Packagemaker Installer Plugin
  • From: Vikram Singh <email@hidden>
  • Date: Thu, 28 Jun 2012 14:00:42 +0530

Hi Stephane,

You are great and you are always right. Thank you so much. The problem was exactly what you mentioned and it is fixed now. 
Thanks again :)

Thanks,
Vikram

On Thu, Jun 28, 2012 at 1:40 PM, Stephane Sudre <email@hidden> wrote:
On Thu, Jun 28, 2012 at 6:36 AM, Vikram Singh <email@hidden> wrote:
> Hi,
>
> I have written a Plugin for PackageMaker. Is there any way to exit the
> installer from within the plugin?
> I have tried the following ways-
> [NSApp terminate:nil]
> and
> exit 0;
>
> If we call any of the above from within the plugin, it closes the
> Installer.app but whenever I try to run any other installer right after
> this, it invokes the previously closed installer.
> So I am assuming, if I use the ways mentioned above, it just kills the
> Installer.app and circumvents the normal closing behavior of Installer.app
> (which might be cleaning some temporary directories before exiting).
> Is there any documented or undocumented but working way to close the
> Installer from my plugin (say on click of some button)?

If you are observing this on Mac OS X v10.7 and later, it's probably
the restoration at work since you're quitting an application without
closing the document. I would suggest closing the document and then
quitting.

Something like:

[myWindow performClose:nil];
[NSApp terminate:nil];

 _______________________________________________
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: 
 >Can I close an Installer from within the Packagemaker Installer Plugin (From: Vikram Singh <email@hidden>)
 >Re: Can I close an Installer from within the Packagemaker Installer Plugin (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: Can I close an Installer from within the Packagemaker Installer Plugin
  • Next by Date: Re: Getting Installation failure error while using Script along with custom requirements.
  • Previous by thread: Re: Can I close an Installer from within the Packagemaker Installer Plugin
  • Next by thread: permission/owner issues in package maker - osx 10.7
  • Index(es):
    • Date
    • Thread