From: Lubomir I. Ivanov Date: Mon, 31 Oct 2011 01:53:37 +0000 (+0200) Subject: win32/nsi: added confirmation to store registry settings X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=904f1ad4c56b8987d2efd9f2efdd9951bf9e8eab;p=ext%2Fsubsurface.git 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 Signed-off-by: Dirk Hohndel --- diff --git a/packaging/windows/subsurface.nsi b/packaging/windows/subsurface.nsi index 8595c41..17b734f 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