From 41373e467abc6cffe45cafff4644e7b4185ef049 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Tue, 14 May 2013 20:25:08 +0300 Subject: 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 Signed-off-by: Dirk Hohndel --- packaging/windows/subsurface.nsi.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'packaging') 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 -- cgit v1.2.3-70-g09d2