Re: Application that uninstalls itself
Re: Application that uninstalls itself
- Subject: Re: Application that uninstalls itself
- From: Jean-Daniel Dupas <email@hidden>
- Date: Mon, 3 Jan 2011 16:54:58 +0100
Le 3 janv. 2011 à 16:48, eveningnick eveningnick a écrit :
> Hello
> I am writing an application that for users convenience has a button "Uninstall".
> Inside, this "uninstaller" stops several launchd services,
> "kextunloads" a driver, deletes this driver and services and finally
> is supposed to delete itself.
> In any sane operating system it is impossible (at least, directly) for
> an application to remove a file that is running.
What make you think so ? The posix spec allows a file to be unlinked even if it is used by an application (deleting a running executable using rm works perfectly for example).
-- Jean-Daniel
_______________________________________________
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