I tested the windows 11 compiled app in windows 10 and got the same error.

so the same source compiled on win7 works in 7,10 , and 11

the one compiled on win11 onyl works on win11 and not on 10 or 7