I currently use a lookup csv file to cross-reference @PRODUCTTYPE to a more compact OSVersion we use for other purposes. However, in a new build of Windows 10, I noticed that we're no longer getting the expected result for @PRODUCTTYPE. According to the 4.67 documentation, Windows 10 OS should be reported as:
Windows 10 Home N
Windows 10 Pro N
Windows 10 Enterprise N
Windows 10 Home
Windows 10 Pro
Windows 10 Enterprise

My code is:
 Code:
  If Exist($LookUpFile)
    ;Load Lookup file into array and then filter array with only rcds with @ProductType+$Delim1
    $RcdArr=FilterArray(LoadArrFromFile($LookUpFile),Trim(@PRODUCTTYPE)+$Delim1)
    ;If we found a match
    If UBound($RcdArr) > -1
      ;Get $OS from 2nd field in first record that matches - Should only be one rcd
      $OS=Split($RcdArr[0],",")[1]

What I'm receiving back in my @PRODUCTTYPE is:
Windows 10.0 / 125

Since I can't find that OS in the lookup file, we're not getting a correct translation. Is there something that the newer versions of Win10 have that the 4.67 version of KiXtart doesn't interpret?

Thanks in advance!

EricM


Edited by Mart (2018-02-14 09:33 AM)
Edit Reason: Please use code tags when posting code.