I'm trying to access node's version number in a NSIS Script in order to know if i need to upgrade node.js' or not. To do that, I noticed that the key HKLM\SOFTWARE\Node.js\ServerType contains the number I need.
I tried to access it via :
ReadRegStr $0 HKLM "SOFTWARE\Node.js" ServerType
ReadRegStr $0 HKLM "SOFTWARE\JavaSoft\Java Runtime Environment" CurrentVersion
On 64-bit versions of Windows 32-bit apps see a special 32-bit view of the registry and this is not the same as what you see in Regedit. In Regedit the basis for these keys are under Wow6432Node. Some keys are also shared by both views.
To access the 64-bit view in NSIS you can use the