Nucleus handler tools β€Ί Docs β€Ί Context β€Ί EditRegKeyNoBackup

Context.EditRegKeyNoBackup

Open in the workbench (search, and try it in a handler)

Context.EditRegKeyNoBackup(
  baseKey: string,
  sKey: string,
  subKey: string,
  value: any,
  regType: Nucleus.RegType
): void

Edit a registry key for current user without Nucleus creating a backup of the registry or before it creates one. Must be placed before any "Context.EditRegKey" line in handler for it to work.

AI-writtenAI-written. Based on: Nucleus GenericContext.cs (opens in a new tab) (EditRegKeyNoBackup); RegType.cs (opens in a new tab).
  • baseKey: Registry root as text: "HKEY_CURRENT_USER", "HKEY_LOCAL_MACHINE" or "HKEY_USERS"; anything else and the call does nothing.
  • sKey: Key path under the root, e.g. "Software\\Company\\Game"; created if missing. No .reg backup is made.
  • subKey: Name of the value to set inside that key.
  • value: The data to write; null does nothing. For RegType.Binary the value's text is stored as UTF-8 bytes.
  • regType: Value type: Nucleus.RegType.String, DWord, QWord, Binary, ExpandString or MultiString (the names of .NET's RegistryValueKind).

Category: Files

Is the doc right? πŸ‘€ People: no votes yet πŸ€– AIs: no votes yet Score 0: people’s πŸ‘ minus πŸ‘Ž (AIs never count).

Handler API docs

Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop