• 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: Best approach to write an uninstaller for osx
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best approach to write an uninstaller for osx


  • Subject: Re: Best approach to write an uninstaller for osx
  • From: Uli Kusterer <email@hidden>
  • Date: Sun, 22 Nov 2009 19:44:56 +0100

On 22.11.2009, at 01:50, Jens Alfke wrote:
> Sure, you can do that. As I said, there's no particular trick for deleting the uninstaller. The filesystem won't stop you from deleting your own binary (or moving it to the trash.)
>
> I've seen uninstallers in the form of AppleScripts. They're easy to package up in double-clickable form and they can easily tell the Finder to move things to the trash.

 Well, you may want to quit your app before you delete it, though (and refuse to uninstall until the user has quit it). Files may only actually get deleted when they're closed, but all the resources in your file package will generally only be opened as needed, and will thus be deleted immediately. If a resource your app needs to save the currently open file or that's otherwise needed has already been deleted, you could corrupt user data.

-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.masters-of-the-void.com



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Best approach to write an uninstaller for osx
      • From: Jens Alfke <email@hidden>
References: 
 >Best approach to write an uninstaller for osx (From: Parimal Das <email@hidden>)
 >Re: Best approach to write an uninstaller for osx (From: Jens Alfke <email@hidden>)
 >Re: Best approach to write an uninstaller for osx (From: Parimal Das <email@hidden>)
 >Re: Best approach to write an uninstaller for osx (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: NSTableView retain count problem
  • Next by Date: Re: How to distribute an app: Installer or original file
  • Previous by thread: Re: Best approach to write an uninstaller for osx
  • Next by thread: Re: Best approach to write an uninstaller for osx
  • Index(es):
    • Date
    • Thread