${Unless} ${Cmd} ... was not working.
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3293 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
4998ff6e18
commit
bbfd02e585
2 changed files with 18 additions and 9 deletions
|
@ -137,14 +137,16 @@ Section /o "Run tests" TESTS
|
|||
DetailPrint "FAILED IfThen test"
|
||||
${EndIf}
|
||||
|
||||
; ifcmd..||..|
|
||||
; ifcmd..||..| and if/unless cmd
|
||||
StrCpy $R2 ""
|
||||
${ifcmd} MessageBox MB_YESNO "Please press Yes" IDYES ${||} StrCpy $R2 $R2A ${|}
|
||||
${ifcmd} MessageBox MB_YESNO|MB_DEFBUTTON2 "Please press No" IDYES ${||} StrCpy $R2 $R2B ${|}
|
||||
${If} $R2 == "A"
|
||||
DetailPrint "PASSED IfCmd test"
|
||||
${Unless} ${Cmd} `MessageBox MB_YESNO|MB_DEFBUTTON2 "Please press No" IDYES`
|
||||
StrCpy $R2 $R2B
|
||||
${EndUnless}
|
||||
${If} $R2 == "AB"
|
||||
DetailPrint "PASSED IfCmd/If Cmd test"
|
||||
${Else}
|
||||
DetailPrint "FAILED IfCmd test"
|
||||
DetailPrint "FAILED IfCmd/If Cmd test"
|
||||
${EndIf}
|
||||
|
||||
; select..case..case2..case3..case4..case5..caseelse..endselect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue