Re: Application that uninstalls itself
Re: Application that uninstalls itself
- Subject: Re: Application that uninstalls itself
- From: eveningnick eveningnick <email@hidden>
- Date: Tue, 4 Jan 2011 09:55:31 -0800
Thanks everyone for advices!
2011/1/4 James Bucanek <email@hidden>:
> 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 (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