• 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
Installer Plugins - how to run as root?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Installer Plugins - how to run as root?


  • Subject: Installer Plugins - how to run as root?
  • From: Andy Kim <email@hidden>
  • Date: Fri, 11 May 2007 12:14:54 -0700

Hi all,

My question is as follow:

* How can I get the Installer Plugins to run as root?

I've mostly finished creating an installer, but I'm running into the following problem, because I believe the Installer Plugin panels appear to run as non-root (non-admin in particular). My scenario is as follows:

At the end of the install, I have a panel to enter some user data, and another panel to download a file into the application's bundle. I have this implemented as two Installer Plugins (EmailPlugin and DownloadPlugin). Using the excellent Iceberg tool, I placed the EmailPlugin and DownloadPlugin right after the Install panel (right before the Finish Up panel). I have "Root Authorization" required for the package. EmailPlugin creates a file in /Library/Application Data/<app>. DownloadPlugin creates a file in /Application/<app>.app

If I run the installer as an admin user, everything works okay. If I run the installer as a non-admin user, both plugins fail because they cannot write their files (this occurs even though "Root Authoriization" is required).

My understanding of what's happening is that the intaller scripts that run during the install phase (preflight, postflight, etc.) are running as root, but the Installer Plugins are not (which seems somewhat of a bug to me).

In the worst case I'd have to discard using Installer Plugins and instead launch custom apps from the postflight script. I'd love to avoid that with the help of someone else's insight.

Thanks!
-Andy

Targeting 10.4.x Universal
_______________________________________________
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: Installer Plugins - how to run as root?
      • From: Bill Coderre <email@hidden>
    • Re: Installer Plugins - how to run as root?
      • From: Peter Bierman <email@hidden>
  • Prev by Date: Re: How to disable package maker "locate" when a user picks an install location ?
  • Next by Date: Re: Installer Plugins - how to run as root?
  • Previous by thread: Re: How to disable package maker "locate" when a user picks an install location ?
  • Next by thread: Re: Installer Plugins - how to run as root?
  • Index(es):
    • Date
    • Thread