mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 22:35:27 +00:00
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>
This commit is contained in:
parent
b047f17c13
commit
41373e467a
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue