From c295920696a38013ada8534d05ca9b7293791fad Mon Sep 17 00:00:00 2001 From: David Given Date: Wed, 20 Jul 2022 00:25:07 +0200 Subject: [PATCH] Make the Windows binaries actually run. --- Makefile | 2 +- etc/windows-installer.nsi | 15 ++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 7e04293f0..3f4a66716 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ ACK_TEMP_DIR ?= /tmp # (/tmp/ack-build/staging, by default), leave this as $(INSDIR). ifeq ($(OS),Windows_NT) -PREFIX ?= c:/Program Files (x86)/Amsterdam Compiler Kit +PREFIX ?= c:/ack else PREFIX ?= /usr/local #PREFIX = $(INSDIR) diff --git a/etc/windows-installer.nsi b/etc/windows-installer.nsi index 7a1abe9a0..ecd0b69f8 100644 --- a/etc/windows-installer.nsi +++ b/etc/windows-installer.nsi @@ -4,7 +4,7 @@ Name "The Amsterdam Compiler Kit" OutFile "${OUTFILE}" Unicode True -InstallDir "$PROGRAMFILES\Amsterdam Compiler Kit" +InstallDir "c:\ack" RequestExecutionLevel admin SetCompressor /solid lzma @@ -18,6 +18,11 @@ SetCompressor /solid lzma $\r$\n\ This wizard will install the ACK on your computer.$\r$\n\ $\r$\n\ + Please note that it doesn't support being installed into a path \ + with a space in it, and if you put it anywhere other than the default \ + then you'll need to set the ACKDIR environment variable to point to it \ + before use.$\r$\n\ + $\r$\n\ $_CLICK" !define MUI_HEADERIMAGE @@ -51,14 +56,6 @@ Section "The ACK (required)" SectionIn RO SetOutPath $INSTDIR File /r "${BUILDDIR}\*.*" - ;File /oname=wordgrinder.exe "bin\wordgrinder-builtin-sdl-release.exe" - ;File /oname=cwordgrinder.exe "bin\wordgrinder-builtin-wincon-release.exe" - ;File "README.wg" - ;File "licenses\COPYING.*" - - ;CreateDirectory $INSTDIR\Dictionaries - ;File /oname=Dictionaries\British.dictionary "extras\british.dictionary" - ;File /oname=Dictionaries\American-Canadian.dictionary "extras\american-canadian.dictionary" ; Write the uninstall keys for Windows WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\WordGrinder" "DisplayName" "WordGrinder for Windows"