Added IfRtlLanguage and GetRegView

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7153 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2020-03-10 18:16:39 +00:00
parent 5887d6c60d
commit 1f355d992c
8 changed files with 45 additions and 19 deletions

View file

@ -57,7 +57,8 @@
; size_t integer tests
; a Z= b; a Z<> b; a Z< b; a Z>= b; a Z> b; a Z<= b
; Built-in NSIS flag tests:
; ${Abort}; ${Errors}; ${RebootFlag}; ${Silent}
; ${Abort}; ${Errors}; ${RebootFlag}; ${Silent}; ${RtlLanguage};
; ${ShellVarContextAll}
; Built-in NSIS other tests:
; ${FileExists} a
; Any conditional NSIS instruction test:
@ -340,6 +341,16 @@
!macroend
!define ShellVarContextAll `"" ShellVarContextAll ""`
!macro _RtlLanguage _a _b _t _f
IfRtlLanguage `${_t}` `${_f}`
!macroend
!define RtlLanguage `"" RtlLanguage ""`
!macro _AltRegView _a _b _t _f
IfAltRegView `${_t}` `${_f}`
!macroend
!define AltRegView `"" AltRegView ""`
; "Any instruction" test
!macro _Cmd _a _b _t _f
!define _t=${_t}