PDA

View Full Version : Windows 10 question



NewsArchive
02-28-2015, 04:39 AM
Hi, Friedrich,

In the past, I've had some installer logic that does "if %WINVER% Greater
Then or Equal $WIN_VISTA$ then"...

This fails with Windows 10 because it seems %WINVER% is being evaluated as a
string and it returns "1"

I guess it's safest to replace all of those with Get System Info / Windows
Major Version.

Or do you have another suggestion?

Thanks!

Jane

NewsArchive
02-28-2015, 04:39 AM
What a coincidence, since this is happening with templates and C10.

There's a "Compare Version Strings" function in SB. Maybe that would
work?

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve
I'll search help files & Google for you.

NewsArchive
02-28-2015, 04:39 AM
Hi Jane,

WOW!!!! Unbelievable!!!

The return value of "1" is the fallback code in SetupBuilder to detect
"undefined" Windows versions. For example, to test for a future Windows 11
and let the installer handle this scenario.

In Windows 10 build 9841 it all works as expected. But in build 9926
Microsoft changed the return values. What the H! They never did this
before.

Very good finding, Jane. I did not notice this :-( I'll have to change it
in the runtime.

Thank you so much.

Friedrich