]> 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 c4fd48f2783033f701b72f5d7c13a5d41f36ed33..17b734f1747637df59e36c79b981d77814a01195 100644 (file)
@@ -21,7 +21,7 @@ FunctionEnd
  
 # define the directory to install to, the desktop in this case as specified  
 # by the predefined $DESKTOP variable
-installDir "$DESKTOP\subsurface"
+installDir "$PROGRAMFILES\subsurface"
 
 # default section
 Section
@@ -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