3 ms·
You sure? Code like this is all over the place, at least on GitHub [1] so it still seems plausible from a dev's perspective. The account on reddit that comment
by cookiengineer 4y ago
You sure?
Code like this is all over the place, at least on GitHub [1] so it still seems plausible from a dev's perspective. The account on reddit that commented it (claiming to be a Microsoft dev) is deleted meanwhile, though :-/
While I agree that the underlying GetVersion() [2] and GetVersionEx() [3] and VerifyVersionInfo() [4] functions were returning "4.xx.yy" as a specific version number, most platforms and runtimes (including NSIS, and even python at the time) were using the platform string to compare whether or not they were on a supported Windows environment.
[1] https://github.com/search?q=startsWith("windows+9")&type=Code https://github.com/search?q=startsWith("windows+9")&type=Cod...
[2] https://web.archive.org/web/20001020025217/http://msdn.microsoft.com/library/psdk/sysmgmt/sysinfo_41bi.htm https://web.archive.org/web/20001020025217/http://msdn.micro...
[3] https://web.archive.org/web/20001020032031/http://msdn.microsoft.com/library/psdk/sysmgmt/sysinfo_49iw.htm https://web.archive.org/web/20001020032031/http://msdn.micro...
[4] https://web.archive.org/web/20010112015900/http://msdn.microsoft.com/library/psdk/sysmgmt/sysinfo_92jy.htm https://web.archive.org/web/20010112015900/http://msdn.micro...
- Dylan16807 4y agoBasically all of the results it's giving me are looking for "windows", not "windows 9". Is there a way to make this search work better? Can you be more specific about "the platform string"? Where is that being loaded from? The java code I saw back when this story first came out was looking at a string that the runtime itself generates, and the string it would have generated at the time was something like "NT (unknown version)".
- celdon25 4y agoGitHub code search is in closed beta right now. You have to request an invite to get access to actual text search.