• 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: Using plugins with PackageMaker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using plugins with PackageMaker


  • Subject: Re: Using plugins with PackageMaker
  • From: Stephane Sudre <email@hidden>
  • Date: Sun, 28 Apr 2013 22:24:41 +0200

On Sat, Apr 27, 2013 at 11:22 PM, Scott Grosch <email@hidden> wrote:
> Have a few questions about the proper way to use a plugin with PackageMaker.  I have the plugin displaying correctly at this point where I want it.
>
> - After asking the user for the answers to questions, how do I pass those answers to the post install script that is run?

You can either write them on disk or spawn a process from the plugin
to answer the requests from the script.

> - Is there a way to get notified if the user cancels the install?  For example, if I take some actions right in the pane, how do I know to undo them?

There's no way to do this AFAIK. So it's good idea to only modify the
file system or the settings of an application with the payload and
with the pre/post installation scripts.

> - What is the proper way to cancel an install?  For example, if a required action my pane takes fails, how do I stop the install properly with a message to the user?

If it fails during an action launched when you move to the next pane,
what you could do is launch the action from:

 - (BOOL)shouldExitPane:(InstallerSectionDirection)dir;

So that you can display a standard alert and prevent the user from
moving to the next pas.

> Docs on PackageMaker seem pretty hard to come by.  Especially since hitting Help inside of PackageMaker itself doesn't do anything :(

--
Packaging Resources - http://s.sudre.free.fr/Packaging.html
 _______________________________________________
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

  • Follow-Ups:
    • Re: Using plugins with PackageMaker
      • From: Sanjay Rao <email@hidden>
References: 
 >Using plugins with PackageMaker (From: Scott Grosch <email@hidden>)

  • Prev by Date: Using plugins with PackageMaker
  • Next by Date: Re: Using plugins with PackageMaker
  • Previous by thread: Using plugins with PackageMaker
  • Next by thread: Re: Using plugins with PackageMaker
  • Index(es):
    • Date
    • Thread