I am having a Windows 10 Enterprise Evaluation VM and when I navigated the registry to find the Product name under Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
ProductName
, I found it was Windows 10 Enterprise Evaluation.
I used innosetup function to print the product name in my code using the below function.
RegQueryStringValue(HKLM64, 'SOFTWARE\Microsoft\Windows NT\CurrentVersion', 'ProductName', strProductName)
where strProductName
is a String variable I used in the function, but it prints Windows 8 Pro.
Any idea as to what was the problem.
Thanks in Advance.