Windows installer: Migrate to NSIS 3.x

Closes #1302.
master
Enrico Tröger 2019-06-10 14:39:50 +02:00
parent 770cda4064
commit c159d1ae6f
1 changed files with 8 additions and 5 deletions

View File

@ -26,6 +26,8 @@
; Do a Cyclic Redundancy Check to make sure the installer was not corrupted by the download ; Do a Cyclic Redundancy Check to make sure the installer was not corrupted by the download
CRCCheck force CRCCheck force
RequestExecutionLevel highest ; set execution level for Windows Vista RequestExecutionLevel highest ; set execution level for Windows Vista
; NSIS 3 Unicode support
Unicode true
;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;
; helper defines ; ; helper defines ;
@ -53,13 +55,14 @@ VIAddVersionKey "ProductVersion" "${PRODUCT_VERSION}"
VIAddVersionKey "LegalCopyright" "Copyright 2005 The Geany contributors" VIAddVersionKey "LegalCopyright" "Copyright 2005 The Geany contributors"
VIAddVersionKey "FileDescription" "${PRODUCT_NAME} Installer" VIAddVersionKey "FileDescription" "${PRODUCT_NAME} Installer"
BrandingText "$(^NAME) installer (NSIS 2.51)" BrandingText "$(^NAME) installer (NSIS 3.04)"
InstallDir "$PROGRAMFILES\Geany" InstallDir "$PROGRAMFILES\Geany"
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
SetCompressor /SOLID lzma SetCompressor /SOLID lzma
ShowInstDetails hide ShowInstDetails hide
ShowUnInstDetails hide ShowUnInstDetails hide
XPStyle on XPStyle on
ManifestSupportedOS all
!ifdef INCLUDE_GTK !ifdef INCLUDE_GTK
OutFile "geany-${PRODUCT_VERSION}_setup.exe" OutFile "geany-${PRODUCT_VERSION}_setup.exe"
!else !else
@ -77,10 +80,10 @@ Var UNINSTDIR
!include "MUI2.nsh" !include "MUI2.nsh"
;Reserve files used in .onInit, for faster start-up ;Reserve files used in .onInit, for faster start-up
ReserveFile "${NSISDIR}\Plugins\System.dll" ReserveFile "${NSISDIR}\Plugins\x86-unicode\System.dll"
ReserveFile "${NSISDIR}\Plugins\UserInfo.dll" ReserveFile "${NSISDIR}\Plugins\x86-unicode\UserInfo.dll"
ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll" ReserveFile "${NSISDIR}\Plugins\x86-unicode\InstallOptions.dll"
ReserveFile "${NSISDIR}\Plugins\LangDLL.dll" ReserveFile "${NSISDIR}\Plugins\x86-unicode\LangDLL.dll"
!define MUI_ABORTWARNING !define MUI_ABORTWARNING
!define MUI_ICON "icons\geany.ico" !define MUI_ICON "icons\geany.ico"