Re: Using plugins with PackageMaker
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