From f610f40558e4a7c019347a78d9cd6ed04532b39c Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Mon, 1 May 2017 14:57:36 +0000 Subject: [PATCH] Fix #1258: 64bit getting installed in C:\Program Files (x86). git-svn-id: file:///svn/unbound/trunk@4140 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 1 + makedist.sh | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/doc/Changelog b/doc/Changelog index 895aaf6b6..cdb395287 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -3,6 +3,7 @@ by "#ifdef SHA256_DIGEST_LENGTH@daemon/remote.c". - iana portlist update - Fix #1258: Windows 10 X64 unbound 1.6.2 service will not start. + and fix that 64bit getting installed in C:\Program Files (x86). 26 April 2017: Ralph - Implemented trust anchor signaling using key tag query. diff --git a/makedist.sh b/makedist.sh index 1b98d879b..53c5cec74 100755 --- a/makedist.sh +++ b/makedist.sh @@ -368,6 +368,10 @@ if [ "$DOWIN" = "yes" ]; then info "Creating installer" quadversion=`cat ../config.h | grep RSRC_PACKAGE_VERSION | sed -e 's/#define RSRC_PACKAGE_VERSION //' -e 's/,/\\./g'` cat ../winrc/setup.nsi | sed -e 's/define VERSION.*$/define VERSION "'$version'"/' -e 's/define QUADVERSION.*$/define QUADVERSION "'$quadversion'"/' > ../winrc/setup_ed.nsi + if test "$W64" = "yes"; then + mv ../winrc/setup_ed.nsi ../winrc/setup_ed_old.nsi + cat ../winrc/setup_ed_old.nsi | sed -e 's/PROGRAMFILES/PROGRAMFILES64/' > ../winrc/setup_ed.nsi + fi "$makensis" ../winrc/setup_ed.nsi info "Created installer" cd ..