Here you can download a Microsoft utility that could help to fix the broken installation. Contrary to what is stated on the page, it also works with Windows 11. I used it a couple of months ago to remove an orphaned program entry. It might be worth a try.