I have one idea, a workaround is to check if majorversion = 1.0 or 1.1 and then do not install and show error otherwise install.
This will work, because there is currently only majorversion 1.0 and 1.1 and 1.2 and it will still work if version will become 1.3 or later.
So, I figured this workaround for you.