• 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
Authorization in an Installer plugin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Authorization in an Installer plugin


  • Subject: Authorization in an Installer plugin
  • From: Erik Larsson <email@hidden>
  • Date: Fri, 04 Sep 2009 16:17:41 +0200

Hi,

I'm writing an Installer plugin which needs to perform a privileged
operation (writing to a system-wide preference file), and I'm wondering
how I can reuse the authorization already made when installing the files.
I have witnessed many installer plugins that execute after the file copy
stage that make changes to otherwise protected files without requiring
the user to re-authenticate, but I cannot understand how they do it.

Currently, I create a new Authorization reference and have the user
authenticate, which means the user will have to type its password in a
new authentication dialog, before calling a helper tool with
AuthorizationExecuteWithPrivileges to carry out the actual operation. I
would really like to avoid having the user type its credentials in two
dialogs in a row (first for copying files, second for writing to the
preference file).

Any hints would be welcome...

Regards,

- Erik

P.S. I sent the previous email from the wrong address. Blame Thunderbird.

_______________________________________________
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: Authorization in an Installer plugin
      • From: Greg Neagle <email@hidden>
  • Prev by Date: Re: How to include a distribution script flat package in another distribution script project?
  • Next by Date: Re: Authorization in an Installer plugin
  • Previous by thread: Re: How to get Choice Requirements to work when there is subchoices.
  • Next by thread: Re: Authorization in an Installer plugin
  • Index(es):
    • Date
    • Thread