Application work on windows 7 but it think to run on old XP

my user launch my application on windows 7 but the application return “The program requires Windows XP with at least Service Pack 3 installed,cannot continue”, what’s wrong?

my app is developed using v1.7


This means that the Windows API used to detect the OS version fails to work properly. Maybe the Windows of this user is corrupted.