diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2011-10-31 03:53:37 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2011-10-31 20:43:33 -0700 |
commit | 904f1ad4c56b8987d2efd9f2efdd9951bf9e8eab (patch) | |
tree | 0d73651754fe1a5f8f8a87a721ee0205bedae634 /packaging | |
parent | 5076397df043fb51a776a677fc771fb1a72e6496 (diff) | |
download | subsurface-904f1ad4c56b8987d2efd9f2efdd9951bf9e8eab.tar.gz |
win32/nsi: added confirmation to store registry settings
a yes/no dialog to clear or store data in HKCU "SOFTWARE\subsurface"
"Do you wish to store subsurface's settings?"
fixed small whitespace issue
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 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packaging/windows/subsurface.nsi b/packaging/windows/subsurface.nsi index 8595c419b..17b734f17 100644 --- a/packaging/windows/subsurface.nsi +++ b/packaging/windows/subsurface.nsi @@ -85,5 +85,8 @@ section "uninstall" delete "$SMPROGRAMS\subsurface\uninstall-subsurface.lnk" delete "$SMPROGRAMS\subsurface\subsurface.lnk" RMDir "$SMPROGRAMS\subsurface" -sectionEnd + MessageBox MB_YESNO "Do you wish to store subsurface's settings?" IDYES end + DeleteRegKey HKCU "SOFTWARE\subsurface" + end: +sectionEnd |