Some applications change property in the registry durning installation, based on the culture settings (DisplayName, PSChildName) and the detection method script fails.
I suggest adding a switch to the detection method script, that will only check DisplayVersion and InstallLocation property in the registry for some applications (e.g. Remote Destkop Client).