|How to validate an upgrade before installation [message #933748]
||Fri, 05 October 2012 09:56
| Martin Wiklander
Registered: October 2012
We have an eclipse feature that is licensed and the license is handled by our own code. The user can go in on our update-site and upgrade his feature. The problem we face is when the user's license needs to be updated before he can use the new upgrade.|
What I want to do is to validate the feature version against the users license and warn the user that his license needs to be updated before he install.
I thought I would do this using a custom eclipse p2 touchPoint action validateLicense
My code is called, where I validate the version against the user's license. If it fails I warn the user and he can then cancel the installation.
So my first question is:
Do I get this right, or is it some other way to do this?
My second question is pretty basic:
Where do I tell eclipse to run my code? I have looked at the help But I don't understan where to pu the code or config so that my code get executed. Is it in the feature.xml?
Is there an example how to create and use p2 touchPonts?
[Updated on: Fri, 05 October 2012 12:28]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01643 seconds