Hi

I shifted from dmg install to packaged one for the following reasons-

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

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.
Or there is a second app(uninstaller) which will delete my main app and my
firefox addon and then delete itself.

How to do this. Any insights??

Thanks
-Parimal


@Jens: That itune example is really scary man.

On Sat, Nov 21, 2009 at 12:56 PM, Jens Alfke <j...@mooseyard.com> wrote:

>
> On Nov 20, 2009, at 11:03 PM, Parimal Das wrote:
>
> > I want to write a uninstaller for my app.
>
> Are you sure it needs one? Most Mac apps don't have or need uninstallers.
> If you want to remove an app, you just drag its icon to the Trash. (There
> might be some preference files left behind, but they're not usually big
> enough to worry about.)
>
> > What this un-installer need to do is- delete some files an the main app,
> and
> > then delete itself.
> > Steps what i found are
> > 1. Un-install app will run a shell script to delete all.
> > 2. It will use launchd to delete itself.
>
> I don't think you need anything fancy to delete yourself. In Unix it's
> legal to delete an open file; the file contents don't actually get deleted
> until the last open file handle is closed.
>
> Please be really, really careful about quoting paths in the shell script —
> the application may be installed in a location that has spaces or quotes in
> its name, so test those cases. The horrible example is an early iTunes
> installer script that would accidentally delete your home directory (or was
> it the entire disk?) if the name of the startup disk had a space in it.
>
> —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