• 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: Never upgrade. Always install
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Never upgrade. Always install


  • Subject: Re: Never upgrade. Always install
  • From: Howard Moon <email@hidden>
  • Date: Wed, 2 Sep 2009 08:38:56 -0700

Unfortunately, the whole Installer.app design sucks in this regard, as far as I'm concerned. The "pkgutil --forget" command looks like that's a way to clear the entries from the installed packages database, but the man page for it explicitly says to NOT use it in an installer script. (Just a guess, but perhaps it isn't actually updated until *after* your postinstall script runs?)

I have not yet been able to create an installer (using either PackageMaker or Iceberg) that meets our needs, so I'm using VISE-X, which has much greater flexibility and control. Unfortunately, it has a license fee that might make it out of reach for many smaller developers.

One possible solution might be to have the user drag a folder containing your software to the Applications folder in order to install, instead of running an installer at all. Then, when run, your software might use some method to detect that it's the first time it's being run, and copy support files from a (possibly hidden) sub-folder to where they need to reside. Just a thought...

-Howard

On Sep 2, 2009, at 7:33 AM, Justin Williams wrote:

Hi,

I am running into an issue with my Installer where many times it will determine that the user should be upgrading their package rather than installing fresh. When this happens, files that are missing (usually the application bundle that should go to / Applications) is not installed.

I'd prefer to set my package to never have the option to upgrade and to just always install/overwrite the existing file on the user's Mac. I thought I could do this by adding the "pkgutil -- forget net.secondgear.mybinary" command to my postinstall script to remove it from the receipts database, but it doesn't seem to make a difference.

What's the preferred method to handle something like this? I was hoping there would be a magic button I could click in PackageMaker, but sadly, it didn't seem to exist.

Any help would be appreciated.

-
Justin Williams
http://secondgearsoftware.com/
-
Check out Today: snapshot view of your daily iCal agenda <http:// secondgearsoftware.com/today/>
-
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40antarestech.com


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
References: 
 >Never upgrade. Always install (From: Justin Williams <email@hidden>)

  • Prev by Date: Never upgrade. Always install
  • Next by Date: Re: Never upgrade. Always install
  • Previous by thread: Never upgrade. Always install
  • Next by thread: Re: Never upgrade. Always install
  • Index(es):
    • Date
    • Thread