From b85394d135030bc0f5ee023b618e8ff5b81af2dc Mon Sep 17 00:00:00 2001 From: XenHat <commits@xenh.at> Date: Mon, 12 Jul 2021 12:30:47 -0400 Subject: [PATCH] Fix long-standing NSIS installer warnings --- .../installers/windows/installer_template.nsi | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/indra/newview/installers/windows/installer_template.nsi b/indra/newview/installers/windows/installer_template.nsi index e7d9a04d4f3..321ea61be3d 100644 --- a/indra/newview/installers/windows/installer_template.nsi +++ b/indra/newview/installers/windows/installer_template.nsi @@ -149,7 +149,6 @@ Var COMMANDLINE # Command line passed to this installer, set in .onInit Var SHORTCUT_LANG_PARAM # "--set InstallLanguage de", Passes language to viewer Var SKIP_DIALOGS # Set from command line in .onInit. autoinstall GUI and the defaults. Var SKIP_AUTORUN # Skip automatic launch of the viewer after install -Var DO_UNINSTALL_V2 # If non-null, path to a previous Viewer 2 installation that will be uninstalled. # Function definitions should go before file includes, because calls to # DLLs like LangDLL trigger an implicit file include, so if that call is at @@ -342,9 +341,6 @@ StrCpy $INSTSHORTCUT "${SHORTCUT}" Call CheckIfAdministrator # Make sure the user can install/uninstall Call CloseSecondLife # Make sure Second Life not currently running -StrCmp $DO_UNINSTALL_V2 "" PRESERVE_DONE -PRESERVE_DONE: - ClearErrors Call RemoveProgFilesOnInst # Remove existing files to prevent certain errors when running the new version of the viewer @@ -488,21 +484,6 @@ lbl_is_admin: FunctionEnd -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; Make sure the user can uninstall -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -Function un.CheckIfAdministrator - DetailPrint $(CheckAdministratorUnInstDP) - UserInfo::GetAccountType - Pop $R0 - StrCmp $R0 "Admin" lbl_is_admin - MessageBox MB_OK $(CheckAdministratorUnInstMB) - Quit -lbl_is_admin: - Return - -FunctionEnd - ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Close the program, if running. Modifies no variables. ;; Allows user to bail out of install process. @@ -589,8 +570,6 @@ FunctionEnd ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Function un.UserSettingsFiles -StrCmp $DO_UNINSTALL_V2 "true" Keep # Don't remove user's settings files on auto upgrade - # Ask if user wants to keep data files or not MessageBox MB_YESNO|MB_ICONQUESTION $(RemoveDataFilesMB) IDYES Remove IDNO Keep -- GitLab