Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Missing file. Use the command-line version of makensis (long string b…

…uild).
  • Loading branch information...
commit a78863eed35d463d7e2a69c8ef8a3f6368408103 1 parent cd5c230
Jonathan Protzenko authored
Showing with 28 additions and 1 deletion.
  1. +27 −0 IfKeyExists.nsh
  2. +1 −1  Makefile
27 IfKeyExists.nsh
View
@@ -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  Makefile
View
@@ -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/
Please sign in to comment.
Something went wrong with that request. Please try again.