mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-20 06:45:27 +00:00
Minor improvements to the NSIS installer script
VIProductVersion requires to have the version number in x.x.x.x format so I added a separate constant SUBSURFACE_VIPRODUCTVERSION for that purpose. Also renamed VERSION to SUBSURFACE_VERSION for consistency. As Lubomir suggested on the mailing list, the installer will now delete any DLL files found in the target folder to prevent buildup of old versions of libraries when upgrading subsurface. Signed-Off-By: Ivan Habunek <ivan.habunek@gmail.com> Cleaned up whitespace issues Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
791edd78b4
commit
52e35b3aa8
1 changed files with 14 additions and 6 deletions
|
@ -17,12 +17,16 @@
|
|||
#--------------------------------
|
||||
# General
|
||||
|
||||
!define VERSION "1.2"
|
||||
# Program version
|
||||
!define SUBSURFACE_VERSION "1.2"
|
||||
|
||||
# VIProductVersion requires version in x.x.x.x format
|
||||
!define SUBSURFACE_VIPRODUCTVERSION "1.2.0.0"
|
||||
|
||||
# Installer name and filename
|
||||
Name "Subsurface"
|
||||
Caption "Subsurface ${VERSION} Setup"
|
||||
OutFile "subsurface-${VERSION}.exe"
|
||||
Caption "Subsurface ${SUBSURFACE_VERSION} Setup"
|
||||
OutFile "subsurface-${SUBSURFACE_VERSION}.exe"
|
||||
|
||||
# Icon to use for the installer
|
||||
!define MUI_ICON "subsurface.ico"
|
||||
|
@ -39,12 +43,12 @@
|
|||
#--------------------------------
|
||||
# Version information
|
||||
|
||||
VIProductVersion "${VERSION}"
|
||||
VIProductVersion "${SUBSURFACE_VIPRODUCTVERSION}"
|
||||
VIAddVersionKey "ProductName" "Subsurface"
|
||||
VIAddVersionKey "FileDescription" "Subsurface - an open source dive log program."
|
||||
VIAddVersionKey "FileVersion" "${VERSION}"
|
||||
VIAddVersionKey "FileVersion" "${SUBSURFACE_VERSION}"
|
||||
VIAddVersionKey "LegalCopyright" "GPL v.2"
|
||||
VIAddVersionKey "ProductVersion" "${VERSION}"
|
||||
VIAddVersionKey "ProductVersion" "${SUBSURFACE_VERSION}"
|
||||
|
||||
#--------------------------------
|
||||
# Settings
|
||||
|
@ -88,6 +92,10 @@ Section
|
|||
# Installation path
|
||||
SetOutPath "$INSTDIR"
|
||||
|
||||
# Delete any already installed DLLs to avoid buildup of various
|
||||
# versions of the same library when upgrading
|
||||
Delete "$INSTDIR\*.dll"
|
||||
|
||||
# Files to include in installer
|
||||
file /oname=subsurface.exe ..\..\subsurface.exe
|
||||
file /oname=subsurface.ico subsurface.ico
|
||||
|
|
Loading…
Add table
Reference in a new issue