IIS is a Windows component, not something that can be uninstalled via Add & Remove Programs. As such checking the registry isn't the correct way to do this. There is no uninstall option for IIS.
If you have PS then the preferred approach is to use Get-WindowsFeature
. This tells you whether a feature is installed. Unfortunately, I think it only works on Server OS.
The registry keys for IIS can change between versions so using the registry is iffy at best. However, at least on current Windows 10, you can look for HKLM\Software\Microsoft\InetStp\VersionString
. If IIS is installed then it'll contain a value there. But that can change in newer versions of IIS so be warned.