Function EN Version 4.60

@NTRegistrySetValue

Misc System

Syntax

@NTRegistrySetValue(TEXTKEYPATH1;TEXTVALUENAME2;VALUE3);

Description

Sets the content of the value named TEXT TEXTVALUENAME2, under the key path TEXT TEXTKEYPATH1, to the content of the variable VALUE3.

The following data types are supported (for VALUE3):
TEXT
TEXTLIST
NUMBER
(set as DWORD)
FLOAT (set as DWORD)
RT (set as BINARY)
TD (set as BINARY)
TDLIST (set as BINARY)

Return value:
On success TRUE, otherwise @ERROR.

Example: @NTRegistrySetValue(TEXTKEYPATH1;TEXTVALUENAME2;VALUE3);

TEXTKEYPATH1:="HKEY_LOCAL_MACHINE\\SOFTWARE\\MyKey\\MyFirstSubKey";
TEXTVALUENAME2:="TestKeyValue";
VALUE3:="TestText";
Ret:=@NTRegistrySetValue(TEXTKEYPATH1;TEXTVALUENAME2;VALUE3);
@LogReport(Ret);

Sets the value named "TestKeyValue" under the key path "HKEY_LOCAL_MACHINE\\SOFTWARE\\MyKey\\MyFirstSubKey" to the content "TestText".

Note : This text was machine-translated and may contain inaccuracies.