summaryrefslogtreecommitdiff
path: root/build.nsi
diff options
context:
space:
mode:
authorlotus <lotus@6c8d7289-2bf4-0310-a012-ef5d649a1542>2011-01-21 18:09:24 +0000
committerlotus <lotus@6c8d7289-2bf4-0310-a012-ef5d649a1542>2011-01-21 18:09:24 +0000
commit79c5b35a6a1bc615c60e2e6aa5e95caa6ee17e3f (patch)
tree102188c513bc23425cb0f7baf44789de271d6976 /build.nsi
parentf1f03d8c908400ef6f0e1d353de9ca6d9c482c2e (diff)
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 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7439 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'build.nsi')
-rwxr-xr-xbuild.nsi3
1 files changed, 3 insertions, 0 deletions
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