Nucleus handler tools › Docs › Context › EditRegKeyNoBackup
Context.EditRegKeyNoBackup
Open in the workbench (search, and try it in a handler)
Context.EditRegKeyNoBackup(
baseKey: string | number | boolean,
sKey: string | number | boolean,
subKey: string | number | boolean,
value: any,
regType: Nucleus.RegType | number | boolean
): 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.
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).
✎ Parameters: AI-written from the Nucleus source.
Category: Files
Is this right?
Tell us what's wrong