Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix bug in installer in case there was a 32 bit jre installed on a 64 bit windows. now the necessary 64 bit jre gets installed. danke PCA42! http://forum.yacy-websuche.de/viewtopic.php?p=21631#p21631

lotus79c5b35a6a1b
diff --git a/build.nsi b/build.nsi
index 3e04aba8f..9a1f26c42 100755
--- a/build.nsi
+++ b/build.nsi
@@ -241,6 +241,9 @@ Function GetJRE
FunctionEnd
Function DetectJRE
+ ${If} ${RunningX64}
+ SetRegView 64
+ ${EndIf}
ReadRegStr $2 HKLM "SOFTWARE\JavaSoft\Java Runtime Environment" "CurrentVersion"
StrCmp $2 ${JRE_VERSION6} doneDetectJRE
Call GetJRE