This is not the supported detection for WiX. See https://github.com/wixtoolset/wix3/blob/develop/src/Setup/CoreMsi/CoreMsi.wxs for the correct registry locations.