Using Python’s winreg, how can I make changes to the Windows Registry that I can confirm worked in Regedit?
My python code is below. Online guides and Stack Overflow posts suggest this should work, but it doesn’t seem to. When I change the registry, it does a new get to confirm the change was made properly and, according to that result, it shows that the value IS changing. Additionally, if I kill the Flask server and restart it, the page shows the change as well
Getting “[WinError 2] The system cannot find the file specified” when trying to delete registry key using DeleteKey from winreg Python library
I’m trying to implement a simple interface the create, set , get and delete registry key with winreg in Python.
Here is my code: