• 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: installation with system restart in 10.4, but not in 10.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: installation with system restart in 10.4, but not in 10.5


  • Subject: Re: installation with system restart in 10.4, but not in 10.5
  • From: Peelman Nick <email@hidden>
  • Date: Wed, 30 Jul 2008 19:38:45 -0400

I did something similar when repackaging Adobe Reader 8, since it was not universal. Built a package for PPC and one for Intel, each with an InstallationCheck (i can't remember now if i used the script or just a package requirement from the GUI) and then put them into a Meta. The proper one got installed, the spare got ignored, everything was peachy.

-nick

--
Nick Peelman
email@hidden

"Duct tape is like the force. It has a light side, a dark side, and it holds the universe together...."



On Jul 30, 2008, at 18:46, Stéphane Sudre wrote:


On Jul 30, 2008, at 8:48 AM, Guoliang Li wrote:

hi, my package need to be installed with system restart in 10.4, but not in 10.5, can someone give me a solution for this kind of issue? Thanks.
Best wishes. AndrewLi

I have a stupid solution for this one if you can use a metapackage instead of just a package.


Create a metapackage with 2 packages:

- Package A: your package that does not require restart.

- Package B: another package that requires restart and installs nothing.

In Package B, use an InstallationCheck script that will return 64 if the OS is Mac OS X 10.5 or later, 0 otherwise. It might be useful to also add a postflight script to delete this package receipt after installation (or remove it from the sqlite3 receipts data base on Leopard using the tool and option mentioned in a recent post (this will prevent this package from being discarded because it's already installed ).

Depending on whether you use a distribution script or a good old metapackage, you might be able to hide the fact that it's a metapackage to the user or you can set Package B to be required.

My $0.02


_______________________________________________ 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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >installation with system restart in 10.4, but not in 10.5 (From: Guoliang Li <email@hidden>)
 >Re: installation with system restart in 10.4, but not in 10.5 (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: installation with system restart in 10.4, but not in 10.5
  • Next by Date: Odd question relating to preinstall scripts and administrator access
  • Previous by thread: Re: installation with system restart in 10.4, but not in 10.5
  • Next by thread: Re: Installing new beta of VServer failed.
  • Index(es):
    • Date
    • Thread