Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
Missing file. Use the command-line version of makensis (long string b…
Browse files Browse the repository at this point in the history
…uild).
  • Loading branch information
protz committed Mar 28, 2012
1 parent cd5c230 commit a78863e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions IfKeyExists.nsh
@@ -0,0 +1,27 @@
!include LogicLib.nsh
!macro IfKeyExists ROOT MAIN_KEY KEY
Push $R0
Push $R1
Push $R2

# XXX bug if ${ROOT}, ${MAIN_KEY} or ${KEY} use $R0 or $R1

StrCpy $R1 "0" # loop index
StrCpy $R2 "0" # not found

${Do}
EnumRegKey $R0 ${ROOT} "${MAIN_KEY}" "$R1"
${If} $R0 == "${KEY}"
StrCpy $R2 "1" # found
${Break}
${EndIf}
IntOp $R1 $R1 + 1
${LoopWhile} $R0 != ""

ClearErrors

Exch 2
Pop $R0
Pop $R1
Exch $R2
!macroend
2 changes: 1 addition & 1 deletion Makefile
@@ -1,4 +1,4 @@
NSIS=/cygdrive/c/Program\ Files\ \(x86\)/NSIS/makensisw.exe
NSIS=/cygdrive/c/Program\ Files\ \(x86\)/NSIS/makensis.exe
SCRIPT=install.nsi
OCAMLROOT=/cygdrive/c/ocamlmgw/
OCAMLROOTW=c:/ocamlmgw/
Expand Down

0 comments on commit a78863e

Please sign in to comment.