• 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: Parimal Das <email@hidden>
  • Date: Wed, 25 Nov 2009 18:01:28 +0530

Okay

How i will perform these two operations in my uninstall.app
1. Removal of app icon from dock if "Keep in dock" is selected
2. Removal of app from user launch services if "Open at login" is selected


On Tue, Nov 24, 2009 at 10:02 PM, Jens Alfke <email@hidden> wrote:

>
> On Nov 24, 2009, at 6:30 AM, Parimal Das wrote:
>
> > 4. This script copies DeleteAll.app to /private/tmp/  AND then runs
> DeleteAll.app from Temp location.
>
> Why do you need two different apps? Just have Uninstall.app delete itself
> when it finishes.
>
> >     do shell script "sudo cp -R '" & ourPath & "' '" & tempPath & "'"
> with administrator privileges
>
> Remember how I said to be careful about quoting? The command above will
> fail if ourPath contains any single quotes.
>
> Also, this task really shouldn't require admin privileges. You're making it
> impossible for a non-admin to uninstall the app (even from their own home
> directory), and greatly increasing the potential danger of your quoting
> error, since that cp command is capable of copying anything anywhere.
>
> —Jens




--
--
Warm Regards,

Parimal Das
Webyog Softworks
_______________________________________________

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

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>)
 >Re: Best approach to write an uninstaller for osx (From: Kyle Sluder <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: Cant Access Properties of NSManagedObject from a NSArrayController...
  • Next by Date: GC, variable optimized away wrongly?
  • Previous by thread: Re: Best approach to write an uninstaller for osx
  • Next by thread: NSFetchedResultsController with fetch predicate
  • Index(es):
    • Date
    • Thread