reghelpers

gonto.reghelpers.set_winreg_value(root: str, path: str | None, name: str, type_: str, data: Any) None

Creates a Windows registry key and value and set it to the given data.

Parameters:
Raises:
  • ValueError – if an invalid root or type is provided.

  • WindowsError|OSError – if an error occurs when creating the key or the value.