diff --git a/indra/newview/installers/windows/installer_template.nsi b/indra/newview/installers/windows/installer_template.nsi index 22a73368584ac1137d59651447dacc50241e230f..49500ab80d743df4f886a358d23a15155ed1545c 100755 --- a/indra/newview/installers/windows/installer_template.nsi +++ b/indra/newview/installers/windows/installer_template.nsi @@ -363,14 +363,9 @@ Delete "$INSTDIR\$INSTSHORTCUT.lnk" Delete "$INSTDIR\Uninstall $INSTSHORTCUT.lnk" # Clean up cache and log files, but leave them in-place for non AGNI installs. +Call un.UserSettingsFiles -!ifdef UNINSTALL_SETTINGS -Call un.DocumentsAndSettingsFolder -!endif - -# Remove stored password on uninstall -Call un.RemovePassword - +# Remove the main instalation directory Call un.ProgramFiles SectionEnd @@ -691,14 +686,17 @@ FunctionEnd ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Delete files in \Users\<User>\AppData\ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -Function un.DocumentsAndSettingsFolder +Function un.UserSettingsFiles -# Delete files in \Users\<User>\AppData\Roaming\SecondLife +# Ask if user wants to keep data files or not +MessageBox MB_YESNO|MB_ICONQUESTION $(RemoveDataFilesMB) IDYES Remove IDNO Keep + +Remove: Push $0 Push $1 Push $2 - DetailPrint "Deleting Second Life files" + DetailPrint "Deleting Second Life data files" StrCpy $0 0 # Index number used to iterate via EnumRegKey @@ -712,15 +710,18 @@ Push $2 # Required since ProfileImagePath is of type REG_EXPAND_SZ ExpandEnvStrings $2 $2 +# Delete files in \Users\<User>\AppData\Roaming\SecondLife # Remove all settings files but leave any other .txt files to preserve the chat logs -; RMDir /r "$2\Application Data\SecondLife\logs" - RMDir /r "$2\Application Data\SecondLife\browser_profile" - RMDir /r "$2\Application Data\SecondLife\user_settings" - Delete "$2\Application Data\SecondLife\*.xml" - Delete "$2\Application Data\SecondLife\*.bmp" - Delete "$2\Application Data\SecondLife\search_history.txt" - Delete "$2\Application Data\SecondLife\plugin_cookies.txt" - Delete "$2\Application Data\SecondLife\typed_locations.txt" +; RMDir /r "$2\AppData\Roaming\SecondLife\logs" + RMDir /r "$2\AppData\Roaming\SecondLife\browser_profile" + RMDir /r "$2\AppData\Roaming\SecondLife\user_settings" + Delete "$2\AppData\Roaming\SecondLife\*.xml" + Delete "$2\AppData\Roaming\SecondLife\*.bmp" + Delete "$2\AppData\Roaming\SecondLife\search_history.txt" + Delete "$2\AppData\Roaming\SecondLife\plugin_cookies.txt" + Delete "$2\AppData\Roaming\SecondLife\typed_locations.txt" +# Delete files in \Users\<User>\AppData\Local\SecondLife + RmDir /r "$2\AppData\Local\SecondLife" #Delete the cache folder CONTINUE: IntOp $0 $0 + 1 @@ -731,26 +732,14 @@ Pop $2 Pop $1 Pop $0 -# Delete files in Program Data folder +# Delete files in ProgramData\Secondlife Push $0 ReadRegStr $0 HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "Common AppData" StrCmp $0 "" +2 RMDir /r "$0\SecondLife" Pop $0 -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" -SetShellVarContext all +Keep: FunctionEnd diff --git a/indra/newview/installers/windows/lang_da.nsi b/indra/newview/installers/windows/lang_da.nsi index 1080fd2e3d6c147301201480e406ab8df9b2f6b7..83e1a3ea9417bd1565c93b90b5c8070d66548415 100755 Binary files a/indra/newview/installers/windows/lang_da.nsi and b/indra/newview/installers/windows/lang_da.nsi differ diff --git a/indra/newview/installers/windows/lang_de.nsi b/indra/newview/installers/windows/lang_de.nsi index fd59bf8f71d372bbfa839e22e1c2384b5dd4f5c5..dbf4bc84bf0d421f288a3bab80df920d74c3a592 100755 Binary files a/indra/newview/installers/windows/lang_de.nsi and b/indra/newview/installers/windows/lang_de.nsi differ diff --git a/indra/newview/installers/windows/lang_en-us.nsi b/indra/newview/installers/windows/lang_en-us.nsi index 4cf605e398a96ae99d69a0b0d2bde3e4a8b2b844..c06e5ac00d7ae554e1631eb52a20051de40e69a1 100755 Binary files a/indra/newview/installers/windows/lang_en-us.nsi and b/indra/newview/installers/windows/lang_en-us.nsi differ diff --git a/indra/newview/installers/windows/lang_es.nsi b/indra/newview/installers/windows/lang_es.nsi index bfc1bf724835e5074e5aa23eefe4a37eb4ce06be..f4f07863320303096cfc7699f60d2b2c648454c5 100755 Binary files a/indra/newview/installers/windows/lang_es.nsi and b/indra/newview/installers/windows/lang_es.nsi differ diff --git a/indra/newview/installers/windows/lang_fr.nsi b/indra/newview/installers/windows/lang_fr.nsi index c2ee17fbd450bf95a8d648dd9b717e47d6b93acf..1b5dbfc975a95531ef1a5585b21e597b1a6528a2 100755 Binary files a/indra/newview/installers/windows/lang_fr.nsi and b/indra/newview/installers/windows/lang_fr.nsi differ diff --git a/indra/newview/installers/windows/lang_it.nsi b/indra/newview/installers/windows/lang_it.nsi index cb97335488b1d4c849a74ff79ac66a46849f4e17..a456e6e417245359990b607df0bea13ccedf4455 100755 Binary files a/indra/newview/installers/windows/lang_it.nsi and b/indra/newview/installers/windows/lang_it.nsi differ diff --git a/indra/newview/installers/windows/lang_ja.nsi b/indra/newview/installers/windows/lang_ja.nsi index 3fbf434b6a948599addc753fb6a78449a18acbaa..fc5f4fabcaa40200374c21f84ed3c599dc814a95 100755 Binary files a/indra/newview/installers/windows/lang_ja.nsi and b/indra/newview/installers/windows/lang_ja.nsi differ diff --git a/indra/newview/installers/windows/lang_pl.nsi b/indra/newview/installers/windows/lang_pl.nsi index 1564c2529357421c1684240a26327e6f71b7a6d4..a172f0cdeb4d23c48da7c6d29426696df1cd14fc 100755 Binary files a/indra/newview/installers/windows/lang_pl.nsi and b/indra/newview/installers/windows/lang_pl.nsi differ diff --git a/indra/newview/installers/windows/lang_pt-br.nsi b/indra/newview/installers/windows/lang_pt-br.nsi index 8e858c8742361246c852e75bd89bf8bda236695a..9ef252d2324343f40939e33574b079afc3a45d66 100755 Binary files a/indra/newview/installers/windows/lang_pt-br.nsi and b/indra/newview/installers/windows/lang_pt-br.nsi differ diff --git a/indra/newview/installers/windows/lang_ru.nsi b/indra/newview/installers/windows/lang_ru.nsi index 8b98ed50326b95f43e9c5ade4e87d9cfb8af2078..d7c728d3e2240dbe2c9804460d813a699deb2246 100755 Binary files a/indra/newview/installers/windows/lang_ru.nsi and b/indra/newview/installers/windows/lang_ru.nsi differ diff --git a/indra/newview/installers/windows/lang_tr.nsi b/indra/newview/installers/windows/lang_tr.nsi index 7c41811b30e09f0afe17687ebd612ab89450dbc8..97c602f4fca304170cb41c209e3583d9f290a323 100755 Binary files a/indra/newview/installers/windows/lang_tr.nsi and b/indra/newview/installers/windows/lang_tr.nsi differ diff --git a/indra/newview/installers/windows/lang_zh.nsi b/indra/newview/installers/windows/lang_zh.nsi index e89a1e7e5181b7a3940ae85bc96a68bdcaca636e..39c005a683ff6e99f85fead67ed79a4a30567f4c 100755 Binary files a/indra/newview/installers/windows/lang_zh.nsi and b/indra/newview/installers/windows/lang_zh.nsi differ