{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/7687","labels_url":"https://api.github.com/repos/atom/atom/issues/7687/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/7687/comments","events_url":"https://api.github.com/repos/atom/atom/issues/7687/events","html_url":"https://github.com/atom/atom/issues/7687","id":92906707,"number":7687,"title":"Bundled Node/IO.js inconsistencies on Windows 8.1 and 10","user":{"login":"Cirex","id":1058,"avatar_url":"https://avatars.githubusercontent.com/u/1058?v=3","gravatar_id":"","url":"https://api.github.com/users/Cirex","html_url":"https://github.com/Cirex","followers_url":"https://api.github.com/users/Cirex/followers","following_url":"https://api.github.com/users/Cirex/following{/other_user}","gists_url":"https://api.github.com/users/Cirex/gists{/gist_id}","starred_url":"https://api.github.com/users/Cirex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cirex/subscriptions","organizations_url":"https://api.github.com/users/Cirex/orgs","repos_url":"https://api.github.com/users/Cirex/repos","events_url":"https://api.github.com/users/Cirex/events{/privacy}","received_events_url":"https://api.github.com/users/Cirex/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/atom/labels/bug","name":"bug","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-03T16:37:05Z","updated_at":"2015-07-03T20:45:36Z","closed_at":null,"body":"I'm trying access registry values in Windows that differ in location with each versions of Windows.\r\nExample: https://github.com/Cirex/atom-metro-ui/commit/cfc0ec218a807c7d1e820862940b9c03c121535e\r\n\r\nThe preferred way to detect the current operating system version seems to be the use of `os.release`, but it's return value differs greatly when used from inside of Atom/Electron.\r\n\r\nLocally installed IO.js:\r\n\r\n```\r\n> process.version\r\n'v1.5.1'\r\n> os.release()\r\n'6.3.9600'\r\n```\r\n\r\nThe same command run from the Atom developer console:\r\n\r\n```\r\n> process.version\r\n'v1.5.1'\r\n> os.release()\r\n'6.2.9200'\r\n```\r\n\r\nMy Windows release (8.1) as reported by running `ver` and `winver`:\r\n\r\n```\r\nMicrosoft Windows [Version 6.3.9600]\r\n```\r\n\r\nThis bug seems to be related to the embedded manifest file `node.exe.extra.manifest` in Node, and `os.release` use of `GetVersionEx` on Windows.\r\n\r\nCan this please be fixed or do I need to use another way of determining the current version of Windows?"},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/118422493","html_url":"https://github.com/atom/atom/issues/7687#issuecomment-118422493","issue_url":"https://api.github.com/repos/atom/atom/issues/7687","id":118422493,"user":{"login":"paulcbetts","id":1396,"avatar_url":"https://avatars.githubusercontent.com/u/1396?v=3","gravatar_id":"","url":"https://api.github.com/users/paulcbetts","html_url":"https://github.com/paulcbetts","followers_url":"https://api.github.com/users/paulcbetts/followers","following_url":"https://api.github.com/users/paulcbetts/following{/other_user}","gists_url":"https://api.github.com/users/paulcbetts/gists{/gist_id}","starred_url":"https://api.github.com/users/paulcbetts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulcbetts/subscriptions","organizations_url":"https://api.github.com/users/paulcbetts/orgs","repos_url":"https://api.github.com/users/paulcbetts/repos","events_url":"https://api.github.com/users/paulcbetts/events{/privacy}","received_events_url":"https://api.github.com/users/paulcbetts/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T20:45:36Z","updated_at":"2015-07-03T20:45:36Z","body":"This should be fixed in Electron, but Windows OS has decided that they never want to return the real OS version, only the version you _think_ it is via your manifest. The hack way to determine this is to check the File version of some DLL in System32 (kernel32.dll is a good candidate).\r\n\r\nHowever in your case, it seems like you could just try the Win10 Regkey location, oops it doesn't exist, check Win8, oops it doesn't exist, we're on Win7"}}