[X2Go-Commits] [pyhoca-gui] 01/01: Specify "Size" in add/remove programs

git-admin at x2go.org git-admin at x2go.org
Tue Jul 8 06:40:00 CEST 2014


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

x2go pushed a commit to branch master
in repository pyhoca-gui.

commit a72be8d500d0f2d6b34e1a13042e01ab870d6030
Author: Mike DePaulo <mikedep333 at gmail.com>
Date:   Tue Jul 8 00:39:44 2014 -0400

    Specify "Size" in add/remove programs
---
 debian/changelog |    2 +-
 nsis_template.py |    8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 8214a88..7367478 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -87,7 +87,7 @@ pyhoca-gui (0.5.0.0-0x2go1) UNRELEASED; urgency=low
       See x2goclient bug #528 for reasoning.
     - Windows: Reduce size of NSIS installer by switching to lzma solid compression
     - Windows: Numerous other improvements to NSIS installer.
-      add version string, add icon, etc.
+      For example, in add/remove programs, add version string, icon, size, etc.
 
  -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Wed, 08 Jan 2014 21:28:37 +0100
 
diff --git a/nsis_template.py b/nsis_template.py
index cfcf2e0..2b37d93 100644
--- a/nsis_template.py
+++ b/nsis_template.py
@@ -297,6 +297,14 @@ Section "$DESKTOP_LINKS"
 
 SectionEnd
 
+; Hidden section, always enabled
+Section -EstimatedSize
+  SectionIn RO
+  ${{GetSize}} "$INSTDIR" "/S=0K" $0 $1 $2
+  IntFmt $0 "0x%08X" $0
+  WriteRegDWORD HKLM ${{UNINSTALL_REGKEY}} "EstimatedSize" "$0"
+SectionEnd
+
 ;--------------------------------
 
 ; Uninstaller

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


More information about the x2go-commits mailing list