This fixes the UAC detection that is causing a crash on Windows 10. Specifically the crash detailed in Issue #46. You can test for Vista or later by simply looking at Environment.OSVersion. Note, that since FOMM isn't manifested for Windows 8.1 or Windows 10, Environment.OSVersion will return the Windows 8 version value and not Windows 10 (as covered in Targeting your application for Windows). This doesn't matter for this test.
This fixes the UAC detection that is causing a crash on Windows 10. Specifically the crash detailed in Issue #46. You can test for Vista or later by simply looking at
Environment.OSVersion
. Note, that since FOMM isn't manifested for Windows 8.1 or Windows 10,Environment.OSVersion
will return the Windows 8 version value and not Windows 10 (as covered in Targeting your application for Windows). This doesn't matter for this test.