]> git.tdb.fi Git - ext/subsurface.git/blobdiff - packaging/windows/subsurface.nsi
win32/nsi: added confirmation to store registry settings
[ext/subsurface.git] / 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