implemented feature request #1124901 - Registry functions and ShellVarContext
all registry instructions now accept SHCTX which is replaced with HKLM or HKCU on runtime according to SetShellVarContext git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3907 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
023618b590
commit
d192713026
4 changed files with 32 additions and 18 deletions
|
@ -161,7 +161,7 @@ Write a string to the registry. See \R{writeregexpandstr}{WriteRegExpandStr} for
|
|||
|
||||
\c root_key subkey key_name value
|
||||
|
||||
Write a string to the registry. root_key must be one of:
|
||||
Write a string to the registry. \e{root_key} must be one of:
|
||||
|
||||
\b \e{HKCR} or \e{HKEY_CLASSES_ROOT}
|
||||
|
||||
|
@ -177,6 +177,10 @@ Write a string to the registry. root_key must be one of:
|
|||
|
||||
\b \e{HKPD} or \e{HKEY_PERFORMANCE_DATA}
|
||||
|
||||
\b \e{SHCTX} or \e{SHELL_CONTEXT}
|
||||
|
||||
If \e{root_key} is \e{SHCTX} or \e{SHELL_CONTEXT}, it will be replaced with \e{HKLM} if \R{setshellvarcontext}{SetShellVarContext} is set to \e{all} and with \e{HKCU} if \R{setshellvarcontext}{SetShellVarContext} is set to \e{current}.
|
||||
|
||||
The error flag is set if the string could not be written to the registry. The type of the string will be REG_SZ for WriteRegStr, or REG_EXPAND_STR for WriteRegExpandStr. If the registry key doesn't exist it will be created.
|
||||
|
||||
\c WriteRegExpandStr HKLM "Software\My Company\My Software" "Expand String Value" "%WINDIR%\notepad.exe"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue