Fix installer version comparison for 10.10+

Fixes #26018.
Closes #26040.