• 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: Deleting old application files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deleting old application files


  • Subject: Re: Deleting old application files
  • From: Beatrix Willius <email@hidden>
  • Date: Mon, 26 Nov 2012 20:37:36 +0100

Hi guys,

this is for non-MAS.

Got the problem solved for now by rm-ing the old app.

On 24.11.2012, at 21:30, Don Montalvo <email@hidden> wrote:

Exception...drag install apps and Apple App Store don't leave receipts.

Our PackageMaker packages check HW/SW requirements, if OK it then finds/kills the process in case it's running, and deletes the old application (and maybe some other files if necessary) before installing.

We have a lot of Mac Packagers who don't always follow our guidelines (tough enough finding people who care to learn; some never learn and make a big mess out of things), and Help Desk and Desktop Support who sometimes delete old receipts (hard to break old habits when there is a rotating door).

In our case if we relied on PackageIdentifier or the presence of receipts we would be building a house of cards. :(

YMMV
Don


Sent from my iPhone

Greg Neagle wrote:

This is automatic behavior with Apple's Installer.

As long as you use the same PackageIdentifier for all versions of your package, any files that exist in a previous version of your package that do not exist in the current version of the package are removed.

Again, this requires that you use a consistent PackageIdentifier, and also that the receipt(s) for the prior install(s) are present (without this, Installer has no way to determine which files are now obsolete).

If this behavior is not sufficient for your needs, you'll need to write a preinstall script that removes obsolete files.

Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals

 _______________________________________________
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: 
 >Re: Deleting old application files (From: Don Montalvo <email@hidden>)

  • Prev by Date: Re: Deleting old application files
  • Next by Date: help required : effect of changing HOME to secondary partion on installer
  • Previous by thread: Re: Deleting old application files
  • Next by thread: help required : effect of changing HOME to secondary partion on installer
  • Index(es):
    • Date
    • Thread