X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=packaging%2Fwindows%2Fsubsurface.nsi;h=17b734f1747637df59e36c79b981d77814a01195;hb=904f1ad4c56b8987d2efd9f2efdd9951bf9e8eab;hp=c4fd48f2783033f701b72f5d7c13a5d41f36ed33;hpb=667f07d281399414ff683536a848dda71e04d561;p=ext%2Fsubsurface.git diff --git a/packaging/windows/subsurface.nsi b/packaging/windows/subsurface.nsi index c4fd48f..17b734f 100644 --- a/packaging/windows/subsurface.nsi +++ b/packaging/windows/subsurface.nsi @@ -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