• 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: Preflight Prevent Installation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preflight Prevent Installation


  • Subject: Re: Preflight Prevent Installation
  • From: Erik Benoist <email@hidden>
  • Date: Mon, 12 Jan 2009 22:02:59 -0500

You're absolutely right-- I'll make sure to implement a full suite of testing in InstallationCheck and VolumeCheck.

It was simply for testing purposes though-- a client wanted to see what the error looked like. I figured it out though. An exit of anything greater than 0 seems to do the trick.

-Erik

On Jan 12, 2009, at 9:51 PM, Bill Coderre wrote:


On Jan 12, 2009, at 6:03 PM, Erik Benoist wrote:
How can I get a preflight script to cause the installation to be canceled? I want to make sure a few things happen in the preflight script and I would rather have the installation error out then to continue with installation.

It is considered Bad and Wrong to error during preflight, especially if your installer might be part of a bigger metapackage.


I am not sure what Installer does when you return an error. I have always made sure not to.

I realize this is not so helpful, but gosh, would you like to come back from lunch and see that your install stopped 2 minutes into its 45 minute run? There must be some kind of way to check for errors during InstallationCheck or VolumeCheck instead.



_______________________________________________ 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
References: 
 >Preflight Prevent Installation (From: Erik Benoist <email@hidden>)
 >Re: Preflight Prevent Installation (From: Bill Coderre <email@hidden>)

  • Prev by Date: Re: Preflight Prevent Installation
  • Next by Date: Re: NSAlert Sheets
  • Previous by thread: Re: Preflight Prevent Installation
  • Next by thread: NSAlert Sheets
  • Index(es):
    • Date
    • Thread