0
In order to reproduce a bug with the Voices (available through SAPI) in Windows, I exported a registry key from a customer's computer and imported it on my computer.
Namely it was
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\TTS_MS_EN-US_ZIRA_11.0
I tried to remove the registry key again, but Windows wouldn't let me as only TrustedInstaller can do that as it's a part of the English Windows system.
I tried remote-acessing the registry via PS, but that wouldn't work either. I installed the English language package for Windows 10, and that installed another TTS_MS_EN_US voice, so I think it tried to install ZIRA as well.
When I removed this language package, the other MS_EN_US was gone, but ZIRA was still there.
When I take ownership of the key, and I try to delete the key, it says "TTS_MS_EN-US_ZIRA_11.0 can't be deleted. Error trying to delete key." And ProcMon simply outputs "CANNOT DELETE" without any further information.
Does anybody have ANY other idea how I could remove this voice from the registry?
You should be able to just take ownership of the key and then delete it. – Ramhound – 2018-06-29T16:53:18.853
When I try to give permissions to "User", it says "Permission options for TTS_MS_EN-US ZIRA_11.0 were not saved. Access denied." – tmighty – 2018-06-29T16:55:01.840
@Ramhound And when I really take ownership, and I try to delete the key, it says "TTS_MS_EN-US_ZIRA_11.0 can't be deleted. Error trying to delete key." – tmighty – 2018-06-29T16:58:40.743
And ProcMon simply says: "CANNOT DELETE" – tmighty – 2018-06-29T17:01:36.470