Mario,
This message is displayed BEFORE the first line of the script is executed. You have to use a compiler variable here. Or disable "Requirements -> OS Version Checking" and handle it from your script (only four lines of code). See attached screenshot. Replace $WIN_8$ with your minimum operating system requirement.
Does this help?
Friedrich