mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 06:03:24 +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
|
# Create the uninstaller
|
||||||
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
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
|
SectionEnd
|
||||||
|
|
||||||
#--------------------------------
|
#--------------------------------
|
||||||
|
@ -189,5 +196,6 @@ Section "Uninstall"
|
||||||
|
|
||||||
# Remove registry entries
|
# Remove registry entries
|
||||||
DeleteRegKey /ifempty HKCU "Software\Subsurface"
|
DeleteRegKey /ifempty HKCU "Software\Subsurface"
|
||||||
|
DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\Subsurface"
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
Loading…
Add table
Reference in a new issue