.. highlightlang:: us .. index:: RegSetValue .. _regsetvalue: RegSetValue =========== .. us.tag RegSetValue ENGLISH New300 Registry Changed560 :ref:`RegSetValue` sets a value for the key name. .. function:: bool = RegSetValue(ssKey, value) .. us.return **Return Value** *bool*. .. us.params **Parameters** .. uparam:: ssKey *ssKey*. .. uparam:: value *value*. .. us.example **Example** :: print RegConnect("HKEY_LOCAL_MACHINE"); print RegOpen("SYSTEM\\ControlSet001\\Control\\Session Manager\\Environment"); ssPath = RegGetValue("Path"); RegSetValue("Path", "%" + ssPath + ";" + GetRootDirectory() + "Program"); .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - 5.6.0 - If the string *value* contains 0x00 bytes, REG_BINARY is written. * - 3.0.0 - New. .. seealso:: :ref:`overview-application-object`, :ref:`RegGetValue` :sub:`id-254850`