|
Re: How to programmatically remove all files during / after uninstall? [message #336813 is a reply to message #336802] |
Fri, 03 July 2009 18:30 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
kaprasi wrote:
>
> As ours is a proprietary s/w, we would like to remove all files
> associated with our plug-in once user decides to uninstall our eclipse
> plug-in.
> How can I clear all references made to our plug-in once customer decides
> to uninstall it?
> Like deleting the plug-in jar, removing plug-in's entry from
> bundles.list, artifacts.xml, indexed_contributions and all other similar
> files?
> In all we want to achieve a 'clean' uninstall which would leave no
> traces of the plug-in behind after the uninstall is over.
> How can I do that? Do I have to write an installer-uninstaller?
> What api is available and is there an online tutorial/example?
I'm pretty sure there is no API to do that kind of thing. Plug-in
management is pretty much a black box; p2 owns that work and needs to in
order to correctly manage things based on prerequisites and dependencies.
I've read that p2 does have a "garbage collection" component that will
remove unused things when they are no longer referenced; perhaps you can
find some documentation on that.
Also, you might want to ask your questions about this on the
eclipse.technology.equinox newsgroup where p2 experts hang out.
Hope this helps,
Eric
|
|
|
|
Powered by
FUDForum. Page generated in 0.03940 seconds