Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8554843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:58:34+00:00 2026-06-11T14:58:34+00:00

I am working in a Mac OS X project where the installer is built

  • 0

I am working in a Mac OS X project where the installer is built using the Packages tool. I see that this tool is less used than the one called Package Maker and that is why I find difficult to get any help, but well, here is the question:

I have successfully created Installer Plugins following the official guide (http://s.sudre.free.fr/Stuff/Installer/Installer_Plugins/index.html), but now the problem is that I need one of them running with root privileges, prompting for admin password if needed.

Each package is able to be copied with administrative privileges along with the run of a pre-install and post-install script, but this step is after the plugin execution while I needed to run it before.

I could do that writing some basic Authorization code (using the deprecated AuthorizationExecuteWithPrivileges because making the complex workarounds recommended by Apple in a plugin is really though) in the plugin itself.

Now everything works (my privileged code and the installation) but the installer ends asking for an admin password twice, one for the plugin, and the other before the actual (package) install, which is not too “user friendly”.

Does anyone know a workaround or possible solution?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T14:58:36+00:00Added an answer on June 11, 2026 at 2:58 pm

    Old question but I will put this up as an option.

    In a installer I made using packages I had one of the pre / post flight scripts take care of any thing that needed elevated privileges. You need to make that particular package ask for elevation but then the script runs with elevated privileges.

    So in this example I have a plugin to ask the user some questions and then I store that information at /tmp for the script to read and execute on.

    A little round the bend but works and much easier then trying not to use AuthorizationExecuteWithPrivileges

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a project that includes a Mac application and an iPad
I'm working on a project that i have to use ruby 1.8.7. I'm using
In my project i am working on AES encryption and Decryption.i have used this
This unix command I haven't got quite working on Mac yet - any ideas
I am working in a mac application with snowleopard.This application is created with leopard
I have a Core Data based mac application that is working perfectly well until
I am working on a java application that targets both mac and PC. Recently
I am working on a simple hobby project that checks when users connect/disconnect from
So I've been working on a python project and reached the point that I
I'm working on an i/o project where I have a microcontroller that communicates with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.