• 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: Installer script requiring super-user access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Installer script requiring super-user access


  • Subject: Re: Installer script requiring super-user access
  • From: Jeremy Reichman <email@hidden>
  • Date: Wed, 23 Nov 2011 11:35:07 -0500
  • Thread-topic: Installer script requiring super-user access

Does the application really need the original installer, especially from the user's context? For what purposes?

What if the original installer placed there is no longer available (because a system administrator doesn't see a purpose for it) or, as is happening, the folder is not accessible to all users?

--
Jeremy

From: Ron Aldrich <email@hidden>
Date: Wed, 19 Oct 2011 10:44:43 -0700
To: <email@hidden>
Subject: Installer script requiring super-user access

Hello All,

I've run into an issue with the following installer postinstall script:

#!/bin/sh

# postinstall.sh

rm -f /Library/Application\ Support/Eternal/Eternal™\ Photo\ Drive.dmg
mkdir -p /Library/Application\ Support/Eternal
cp /Volumes/Eternal™\ Photo\ Drive/.Gozinta_support/Eternal™\ Photo\ Drive.dmg /Library/Application\ Support/Eternal/

The function of the script is to make a copy of the installer (and all of it's support files) and place it somewhere on the drive where it will be accessible to the application later.  The file needs to be installed in a manner that allows it to be read by all users.

The issue is that while the script used to work fine up until Lion, it now fails because /Library/Application Support/ is no longer user writable.

Any suggestions?

Thanks,

Ron Aldrich
Software Architects, Inc.

_______________________________________________ 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
 _______________________________________________
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

  • Prev by Date: RE: Installation error on 10.7 only: Install Failed: Error Domain=NSCocoaErrorDomain Code=4 "The file "Staging" doesn't exist."
  • Next by Date: Upgrade a LaunchDaemon and/or Agent
  • Previous by thread: Re: Installation error on 10.7 only: Install Failed: Error Domain=NSCocoaErrorDomain Code=4 "The file "Staging" doesn't exist."
  • Next by thread: Upgrade a LaunchDaemon and/or Agent
  • Index(es):
    • Date
    • Thread