With BaseExtensions, we are able to change the value of a registry in the HKCU. If the type of value is boolean, the command should always set the reverse of what it was, and thereby it will be a switch button. For instance, this can be used as a switch case where Templafy is forced to go offline or online.
Module is located here:
...\ModuleLibrary\BaseExtensions\04_nocontext_MISC\08_WPE_changeRegistryValueHKCU.xml
CMD
<Cmd case="BaseExtensions:update-registry"/>
Parameters
path
Define path for the key in the registry (everything after HKEY_CURRENT_USER), e.g.: path="Software\Templafy\OfficeAddIns"
.
name
Define name of name/value pair.
type
Define type of name/value pair. These are the options: string
, dword
, stringBool
and dwordBool
. The last two types work as boolean.
valueDefault
Define the default value of the name/value pair. If the type is string
or dword
, this will always be set as the value. If the type is stringBool
or dwordBool
, this will be the default value.
valueSecondary
Define the secondary value of the name/value pair. This is only used if the type is either stringBool
or dwordBool
.
Note that the types dword
and dwordBool
can only have values which are 32-bit integers, e.g. type="dword" valueDefault="1234" valueSecondary=""
.
The types stringBool
and dwordBool
should work as boolean, where the values for stringBool
could be valueDefault="true" valueSecondary="false"
while the values for dwordBool
could be valueDefault="1" valueSecondary="0"
.
Comments
0 comments
Article is closed for comments.