Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to programmatically remove all files during / after uninstall?
How to programmatically remove all files during / after uninstall? [message #336802] Fri, 03 July 2009 11:33 Go to next message
Prasanna K is currently offline Prasanna K
Messages: 78
Registered: July 2009
Member
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?

Any help is really appreciated.

Thanks.
Re: How to programmatically remove all files during / after uninstall? [message #336813 is a reply to message #336802] Fri, 03 July 2009 18:30 Go to previous messageGo to next message
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
Re: How to programmatically remove all files during / after uninstall? [message #336824 is a reply to message #336813] Mon, 06 July 2009 06:31 Go to previous message
Prasanna K is currently offline Prasanna K
Messages: 78
Registered: July 2009
Member
> Also, you might want to ask your questions about this on the
> eclipse.technology.equinox newsgroup where p2 experts hang out.

Eric,

As advised I have posted my question in equinox newsgroup and here is its
link :
http://www.eclipse.org/newsportal/article.php?id=6476&gr oup=eclipse.technology.equinox#6476

Thanks.
Previous Topic:Contextual/dynamic help behavior change?
Next Topic:Eclipse freezes after stopping at breakpoint in a static block
Goto Forum:
  


Current Time: Fri Sep 19 04:09:16 GMT 2014

Powered by FUDForum. Page generated in 0.10694 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software