Re: Deleting old application files
Re: Deleting old application files
- Subject: Re: Deleting old application files
- From: Don Montalvo <email@hidden>
- Date: Mon, 26 Nov 2012 12:44:41 -0600
Interesting, Apple doesn't mention this in their very vague instructions...
http://www.apple.com/mac/volume-licensing/
or
http://support.apple.com/kb/HT4781
In any case, doesn't solve the problem...distributing the "Apple sanctioned way" (above) so we're forced to use a preflight script to remove the old application before installing the new application.
Don
On Nov 26, 2012, at 12:33 PM, Ben Gollmer <email@hidden> wrote:
> The Mac App Store does write package receipts:
>
> $ pkgutil --pkgs
> [snip]
> com.artissoftware.mac.xScope
> com.mactrackerapp.Mactracker
> com.oleganza.gitbox
> com.omnigroup.OmniFocus.MacAppStore
> com.omnigroup.OmniPlan.MacAppStore
> com.panic.Transmit
> com.pixelmatorteam.pixelmator
> com.reederapp.mac
> cx.c3.theunarchiver
> nu.tod.HTTPClient
>
> $ pkgutil --pkg-info com.pixelmatorteam.pixelmator
> package-id: com.pixelmatorteam.pixelmator
> version: 2.1.3
> volume: /
> location: Applications
> install-time: 1352393036
>
> $ pkgutil --files com.pixelmatorteam.pixelmator
> Pixelmator.app
> Pixelmator.app/Contents
> Pixelmator.app/Contents/Frameworks
> Pixelmator.app/Contents/Frameworks/MyPaint.framework
> Pixelmator.app/Contents/Frameworks/MyPaint.framework/Headers
> Pixelmator.app/Contents/Frameworks/MyPaint.framework/MyPaint
> Pixelmator.app/Contents/Frameworks/MyPaint.framework/Resources
> Pixelmator.app/Contents/Frameworks/MyPaint.framework/Versions
> [snip]
>
> --
> Ben
>
> On Nov 24, 2012, at 3:30 PM, 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.
>>>
>>> -Greg
>>>
>>> Beatrix Willius wrote:
>>>
>>>> Hi,
>>>>
>>>> how do I force the Iceberg installer to delete the old application files before installing the new app? My app has a lot of files in the Frameworks folder. When using the installer to install a new version over an old one not all old files are deleted. As a result the files don't fit together and there is a nice Runtime error when starting the app.
>>>>
>>>> Mit freundlichen Grüßen/Regards
>>>>
>>>> Trixi Willius
>> _______________________________________________
>> 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
>
>
_______________________________________________
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