Page 1 of 1

Registry key deletion

Published: October 10, 2023 - 09:08
by thomas789
Hello,

I wanted to know how to delete registry keys in Windows and I came across the `setuphelpers.registry_deletekey` function. It works correctly, but it says that if there are "subkeys" present, the function will fail. And indeed, that's the case. So how can I successfully delete "subkeys"?

Thank you in advance, sincerely.

Re: Deleting registry keys

Published: October 12, 2023 - 6:20 PM
by dcardon
Hi Thomas,

yes, it would be great to be able to pass a `recurse=True` attribute to the function to perform cascading deletion. But use it with caution. :-)

I'm creating an internal ticket about this.

Denis

Re: Deleting registry keys

Published: October 13, 2023 - 8:25 AM
by thomas789
Obviously, consume in moderation! Thank you for considering my request :).

Thomas.