summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-05-14 20:25:08 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-14 13:32:06 -0400
commit41373e467abc6cffe45cafff4644e7b4185ef049 (patch)
tree7181ac11102fe39f7f11c223637e306cd04bd473 /packaging
parentb047f17c13d3fd7c8830ff2ce2eebf14a9e9940f (diff)
downloadsubsurface-41373e467abc6cffe45cafff4644e7b4185ef049.tar.gz
Windows installer: add an "Add/Remove Programs" entry
The NSIS script on installation will write a key to the registry that will be shown to the user as a "Subsurface" entry (with icon) in the list of installed programs that can be uninstalled (e.g. in the Control Panel). On uninstall, said registry key will be removed. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/windows/subsurface.nsi.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/packaging/windows/subsurface.nsi.in b/packaging/windows/subsurface.nsi.in
index 822f4c05c..1ac0753e6 100644
--- a/packaging/windows/subsurface.nsi.in
+++ b/packaging/windows/subsurface.nsi.in
@@ -161,6 +161,13 @@ Section
# Create the uninstaller
WriteUninstaller "$INSTDIR\Uninstall.exe"
+ WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Subsurface" \
+ "DisplayName" "Subsurface"
+ WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Subsurface" \
+ "DisplayIcon" "$INSTDIR\subsurface.ico"
+ WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Subsurface" \
+ "UninstallString" "$INSTDIR\Uninstall.exe"
+
SectionEnd
#--------------------------------
@@ -189,5 +196,6 @@ Section "Uninstall"
# Remove registry entries
DeleteRegKey /ifempty HKCU "Software\Subsurface"
+ DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Subsurface"
SectionEnd