Thanks everyone for advices!

2011/1/4 James Bucanek <subscri...@gloaming.com>:
> In my application, I have a special "Uninstall and Quit" menu item. I
> shutdown and delete launchd configuration files and them move the active
> components (plug-ins, helpers, ...) to the trash. I find this avoid the
> problem of deleting files that are part of a bundle (for the plug-ins) that
> is still in use, and my customers like the transparency of seeing what was
> removed and being given the control over when they're ultimately deleted.

James, how do you delete launchd conf files? Did you delegate all such
operations to a helper tool, and launch that tool using
AuthorizationExecuteWithPrivileges ?

I have written an uninstaller script, and now looking for a way to
"integrate" it in my non root application with "Quit and uninstall"
button. (This non root app is not writable by anyone but root).

What i have thought so far, is to create a helper tool, with a
system("here is the content of my uninstalling script file") call,
then i am going to launch it using AuthorizationExecuteWithPrivileges.
I don't know if it's the right way though.
_______________________________________________

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