I think you're a tad confused. Windows 8 is only available in Beta and not intended for the public yet. So far, only the early version ( Milestone 1) has been leaked. Windows 9 doesn't exist.
Perhaps you mean Internet Explorer 9 which you can only install if you have Windows 7, not XP or Vista?