• 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: need help on my first install script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: need help on my first install script


  • Subject: Re: need help on my first install script
  • From: Paul Miller <email@hidden>
  • Date: Fri, 04 May 2007 14:02:50 -0500

Peter Bierman wrote:
At 10:17 AM -0500 5/4/07, Paul Miller wrote:
I have a command-line program that needs admin privileges in my installer package's Resources folder. I want to run this program before an upgrade.

This particular package is a sub-package of a metapackage.

The program ("foo") is in the sub-package's Resources folder.

My preupgrade script (also in Resources) basically just does this:

[preflight]

    #!/bin/sh

    $1/Contents/Resources/foo

But when I run my installer, it exits with an error but doesn't tell me what went wrong.

What am I missing?

For one, double quotes around your path, in case there's a space in it.

Ah, good point. FWIW, I was basing my code on examples I found in the Apple documentation.


Another tip: you can log into the installer log using the command line tool 'logger -p install.debug'

I tried this, but it didn't print anything. Is it sending the output somewhere else (other than the terminal)?


Thanks for the tips!

--
Paul Miller | email@hidden | www.fxtech.com | Got Tivo?

_______________________________________________
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: need help on my first install script
      • From: Peter Bierman <email@hidden>
References: 
 >need help on my first install script (From: Paul Miller <email@hidden>)
 >Re: need help on my first install script (From: Peter Bierman <email@hidden>)

  • Prev by Date: Re: need help on my first install script
  • Next by Date: Re: need help on my first install script
  • Previous by thread: Re: need help on my first install script
  • Next by thread: Re: need help on my first install script
  • Index(es):
    • Date
    • Thread