Next round in manual Win32 installer merge, this time 9f4b1de05f4b (Add option to remove user settings and cache files at uninstall, with message…)

master
Ansariel 2015-05-09 22:23:52 +02:00
parent be0c665247
commit 4deb90ec40
13 changed files with 2 additions and 16 deletions

View File

@ -435,7 +435,7 @@ Delete "$INSTDIR\Uninstall $INSTSHORTCUT.lnk"
Call un.ProgramFiles
# Clean up cache and log files, but leave them in-place for non AGNI installs.
Call un.DocumentsAndSettingsFolder
Call un.UserSettingsFiles
SectionEnd
@ -759,7 +759,7 @@ FunctionEnd
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Delete files in \Users\<User>\AppData\
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Function un.DocumentsAndSettingsFolder
Function un.UserSettingsFiles
# Ask if user wants to keep data files or not
MessageBox MB_YESNO|MB_ICONQUESTION $(RemoveDataFilesMB) IDYES Remove IDNO Keep
@ -817,20 +817,6 @@ Keep:
FunctionEnd
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Delete the stored password for the current Windows user
;; DEV-10821 -- Unauthorised user can gain access to an SL account after a real user has uninstalled
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Function un.RemovePassword
;
;DetailPrint "Removing Second Life password"
;
;SetShellVarContext current
;Delete "$APPDATA\SecondLife\user_settings\password.dat"
S;etShellVarContext all
;
;FunctionEnd
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Delete the installed files
;; This deletes the uninstall executable, but it works because it is copied to temp directory before running