]> git.tdb.fi Git - ext/subsurface.git/commitdiff
win32/nsi: added confirmation to store registry settings
authorLubomir I. Ivanov <neolit123@gmail.com>
Mon, 31 Oct 2011 01:53:37 +0000 (03:53 +0200)
committerDirk Hohndel <dirk@hohndel.org>
Tue, 1 Nov 2011 03:43:33 +0000 (20:43 -0700)
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>
packaging/windows/subsurface.nsi

index 8595c419bf29361cf48e32c85d24f8fd8f92b748..17b734f1747637df59e36c79b981d77814a01195 100644 (file)
@@ -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