0
我正在寻找一种方法来卸载我的产品中的特定功能。现在安装的功能需要替换为具有相同名称的功能,但在更新期间与其关联的版本和插件不同 - 旧版产品正在使用新功能进行更新。以编程方式卸载功能
做了一些研究,我看到org.eclipse.equinox.p2.operations.UninstallOperation,看起来像我可以使用的东西。我还看到p2.inf中看起来相关的instructions.uninstall阶段。
哪些是做功能卸载的首选/更好的方法?
使用UninstallOperation的方法不起作用,因为我试图卸载的不是IU,而只是一个插件。有没有一种方法,我可以使用uninstallBundle这里描述http://stackoverflow.com/questions/7893022/uninstalling-an-obsolete-eclipse-fragment-during-upgrade? –