Thanks Jens
Let me try the Applescript way.

On Sun, Nov 22, 2009 at 6:20 AM, Jens Alfke <j...@mooseyard.com> wrote:

>
> On Nov 21, 2009, at 12:21 AM, Parimal Das wrote:
>
> > My app needs to install a firefox addon to work.
> > This i am doing in a postinstall script in the packaged install, copying
> my xpi file to firefox designated place
>
> I'd call that a legitimate case for an uninstaller :)
>
> > Now sending my app to trash will not delete that xpi, and i need to do it
> from my app.
> > So either this can be done when my app is moved to trash. But did not
> find any event for that.
>
> No; your app's probably not even running at that point.
>
> > Or there is a second app(uninstaller) which will delete my main app and
> my firefox addon and then delete itself.
>
> 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.
>
> —Jens




-- 
--
Warm Regards,

Parimal Das
Webyog Softworks
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to