Big hassle to install java jdk in win7, i tried many versions starting with jdk-8u171, to jdk-10.01 it is either suspended in the following stage (see picture)

or similar stage using other versions.
then if you look to the programs & features list you will find it there !!!
checking through cmd it is not their !!!!!!!
trying the path-Environment story ... nothing changed and the Android Studio will display you the Android SDK in grey color.
replacing space in file name where the jdk will be installed by ~ is with no effect.
so any one has an idea how to solve it??