[X2Go-Commits] [x2goclient] 01/01: x2goclient.nsi: Add setup.exe file properties

git-admin at x2go.org git-admin at x2go.org
Sun May 10 05:26:46 CEST 2015


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2goclient.

commit 16cf61787b004b673e6fa31a7f0ee1dc3eb8344e
Author: Mike DePaulo <mikedep333 at gmail.com>
Date:   Sat May 9 23:26:01 2015 -0400

    x2goclient.nsi: Add setup.exe file properties
---
 debian/changelog    |    3 +++
 nsis/x2goclient.nsi |   18 +++++++++++++++++-
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index fc2aa9d..6536b5c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,9 @@ x2goclient (4.0.4.0-0x2go1) UNRELEASED; urgency=low
       installed by default.
     - Windows: Add descriptions for the "components" in the installer
       (English language only at this time)
+    - Windows: You can now view the version and some other info by:
+      right-click on the installer -> Properties -> Details
+      (English language only at this time)
     - Windows: Upgrade bundled PulseAudio from 5.0-rev18 to 6.0-11.1
       (No known impacts to X2Go, except for the fact that many needed
        patches are now included in upstream PulseAudio.)
diff --git a/nsis/x2goclient.nsi b/nsis/x2goclient.nsi
index ff86447..f2f8d77 100644
--- a/nsis/x2goclient.nsi
+++ b/nsis/x2goclient.nsi
@@ -12,9 +12,10 @@
 
   RequestExecutionLevel admin
  !define VERSION "X2GOCLIENT_VERSION"
+ !define FILENAME "x2goclient-${VERSION}-setup.exe"
   Name "x2goclient ${VERSION}"
   Caption "x2goclient ${VERSION}"
-  OutFile "x2goclient-${VERSION}-setup.exe"
+  OutFile "${FILENAME}"
   !define MUI_ICON icons\win-install.ico
   !define MUI_UNICON icons\win-uninstall.ico
   ;Default installation folder
@@ -85,6 +86,21 @@ SectionEnd
   !insertmacro MUI_LANGUAGE "German"
   !insertmacro MUI_LANGUAGE "Russian"
 
+;------------------------------
+; File Properties
+
+  ; This gets truncated to a.b.c.d
+  VIProductVersion "${UNINSTALL_DISPLAYVERSION}"
+  VIAddVersionKey /LANG=${LANG_ENGLISH} "InternalName"     "x2goclient"
+  VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName"      "${UNINSTALL_DISPLAYNAME}"
+  VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription"  "Installer for ${UNINSTALL_DISPLAYNAME}"
+  VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName"      "${UNINSTALL_PUBLISHER}"
+  VIAddVersionKey /LANG=${LANG_ENGLISH} "OriginalFilename" "${FILENAME}"
+  ; Due to NSIS "Feature Request" #270, this gets overriden by VIProductVersion
+  VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion"      "${UNINSTALL_DISPLAYVERSION}"
+  VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductVersion"   "${UNINSTALL_DISPLAYVERSION}"
+  VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright"   "GPL-2+"
+
 ;--------------------------------
 ;Reserve Files
 

--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list