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