Write a registry value. The registry type is inferred from the JS type:
string
REG_SZ
number
REG_DWORD
Uint8Array
REG_BINARY
The key must already exist; this does not create subkeys.
writeRegistry(HKCU, 'Software\\MyApp', 'LastRun', Date.now().toString()); Copy
writeRegistry(HKCU, 'Software\\MyApp', 'LastRun', Date.now().toString());
Write a registry value. The registry type is inferred from the JS type:
string→REG_SZnumber→REG_DWORDUint8Array→REG_BINARYThe key must already exist; this does not create subkeys.