Skip to content

Commit

Permalink
Windows installer: Migrate to NSIS 3.x (#905)
Browse files Browse the repository at this point in the history
  • Loading branch information
eht16 authored Sep 28, 2019
1 parent 642ba85 commit 0a3b402
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions build/geany-plugins.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
; Do a Cyclic Redundancy Check to make sure the installer was not corrupted by the download
CRCCheck force
RequestExecutionLevel highest ; set execution level for Windows Vista
; NSIS 3 Unicode support
Unicode true

;;;;;;;;;;;;;;;;;;;
; helper defines ;
Expand All @@ -51,12 +53,13 @@ VIAddVersionKey "ProductVersion" "${PRODUCT_VERSION}"
VIAddVersionKey "LegalCopyright" "Copyright 2009-2019 by the Geany developer team"
VIAddVersionKey "FileDescription" "${PRODUCT_NAME} Installer"

BrandingText "$(^NAME) installer (NSIS 2.51)"
BrandingText "$(^NAME) installer (NSIS 3.04)"
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
SetCompressor /SOLID lzma
ShowInstDetails hide
ShowUnInstDetails hide
XPStyle on
ManifestSupportedOS all
OutFile "geany-plugins-${PRODUCT_VERSION}_setup.exe"

Var Answer
Expand All @@ -69,10 +72,10 @@ Var UNINSTDIR
!include "MUI2.nsh"

;Reserve files used in .onInit, for faster start-up
ReserveFile "${NSISDIR}\Plugins\System.dll"
ReserveFile "${NSISDIR}\Plugins\UserInfo.dll"
ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll"
ReserveFile "${NSISDIR}\Plugins\LangDLL.dll"
ReserveFile "${NSISDIR}\Plugins\x86-unicode\System.dll"
ReserveFile "${NSISDIR}\Plugins\x86-unicode\UserInfo.dll"
ReserveFile "${NSISDIR}\Plugins\x86-unicode\InstallOptions.dll"
ReserveFile "${NSISDIR}\Plugins\x86-unicode\LangDLL.dll"

!define MUI_ABORTWARNING
; FIXME hard-coded path...should we add geany.ico to the geany-plugins repo?
Expand Down

0 comments on commit 0a3b402

Please sign in to comment.