# 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
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