• 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: easy uninstaller solution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: easy uninstaller solution


  • Subject: Re: easy uninstaller solution
  • From: Iceberg-Dev <email@hidden>
  • Date: Thu, 23 Oct 2008 19:15:48 +0200


On Oct 23, 2008, at 2:54 AM, Adam Fisk wrote:

Hi Everyone-  I just posted a really great (I think) uninstaller
solution on my blog I think people here may find useful.  Basically,
you just perform your entire uninstall in a bash script that's called
from an AppleScript application bundle (so the user can double click
it).  Once you've got the application bundle set up, you just need to
update and maintain the bash script and never worry about building the
bundle or editing the AppleScript (a bit of a pain) again since the
AppleScript will always just call whatever's in your bash file.

The post is here:

http://adamfisk.wordpress.com/2008/10/22/osx-uninstallers-the-easy- way/

Any feedback in the comments is most welcome.  There may very well be
a better way of doing this I'm unaware of.

That's a nice tutorial.

There might be 2 things to take into account here that are related to security:

- it's better to use absolute path for tools to avoid calling an alias. For instance, use /bin/rm instead of just rm

- Since the script will be executed with administration privileges, there's always the issue that someone can change the script to do bad things.

My $0.2


_______________________________________________ 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
  • Follow-Ups:
    • Re: easy uninstaller solution
      • From: "Adam Fisk" <email@hidden>
    • Re: easy uninstaller solution
      • From: Bill Janssen <email@hidden>
References: 
 >easy uninstaller solution (From: "Adam Fisk" <email@hidden>)

  • Prev by Date: how to change folder attributes from postinstall (missing SetFile?)
  • Next by Date: Re: how to change folder attributes from postinstall (missing SetFile?)
  • Previous by thread: Re: easy uninstaller solution
  • Next by thread: Re: easy uninstaller solution
  • Index(es):
    • Date
    • Thread