From dcdd25085893034da5f211e5e6589a13a80e0d76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 5 May 2016 22:28:53 +0200 Subject: [PATCH] Improved packaging scripts --- pkg/gpxsee.nsi | 6 ++++-- pkg/gpxsee64.nsi | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pkg/gpxsee.nsi b/pkg/gpxsee.nsi index 523cffcd..6d1f2d01 100644 --- a/pkg/gpxsee.nsi +++ b/pkg/gpxsee.nsi @@ -3,9 +3,11 @@ ; The name of the installer Name "GPXSee" +; Program version +!define VERSION "2.13" ; The file to write -OutFile "install.exe" +OutFile "GPXSee-${VERSION}.exe" ; Required execution level RequestExecutionLevel admin @@ -67,7 +69,7 @@ Section "GPXSee (required)" SEC_APP ; Write the uninstall keys for Windows WriteRegStr HKLM "${REGENTRY}" "DisplayName" "GPXSee" WriteRegStr HKLM "${REGENTRY}" "Publisher" "Martin Tuma" - WriteRegStr HKLM "${REGENTRY}" "DisplayVersion" "2.13" + WriteRegStr HKLM "${REGENTRY}" "DisplayVersion" "${VERSION}" WriteRegStr HKLM "${REGENTRY}" "UninstallString" '"$INSTDIR\uninstall.exe"' WriteRegDWORD HKLM "${REGENTRY}" "NoModify" 1 WriteRegDWORD HKLM "${REGENTRY}" "NoRepair" 1 diff --git a/pkg/gpxsee64.nsi b/pkg/gpxsee64.nsi index 11f73547..1fe24409 100644 --- a/pkg/gpxsee64.nsi +++ b/pkg/gpxsee64.nsi @@ -3,9 +3,11 @@ ; The name of the installer Name "GPXSee" +; Program version +!define VERSION "2.13" ; The file to write -OutFile "install.exe" +OutFile "GPXSee-${VERSION}_x64.exe" ; Required execution level RequestExecutionLevel admin @@ -75,7 +77,7 @@ Section "GPXSee (required)" SEC_APP ; Write the uninstall keys for Windows WriteRegStr HKLM "${REGENTRY}" "DisplayName" "GPXSee" WriteRegStr HKLM "${REGENTRY}" "Publisher" "Martin Tuma" - WriteRegStr HKLM "${REGENTRY}" "DisplayVersion" "2.13" + WriteRegStr HKLM "${REGENTRY}" "DisplayVersion" "${VERSION}" WriteRegStr HKLM "${REGENTRY}" "UninstallString" '"$INSTDIR\uninstall.exe"' WriteRegDWORD HKLM "${REGENTRY}" "NoModify" 1 WriteRegDWORD HKLM "${REGENTRY}" "NoRepair" 1