From d919f20d46e729a559ffd786bad731f436065271 Mon Sep 17 00:00:00 2001 From: Ben Hearsum Date: Wed, 22 Jun 2022 14:19:51 +0000 Subject: [PATCH] Bug 1771951: Add UI to the installer for opting out of Taskbar shortcut creation r=nalexander,flod This includes some minor updates to the desktop and Start Menu strings from Content Design as well. I also removed the now-useless quicklaunch option (which was only used pre-Windows 7). Differential Revision: https://phabricator.services.mozilla.com/D148289 --- browser/installer/windows/nsis/installer.nsi | 31 ++++++------------- .../locales/en-US/installer/custom.properties | 6 ++-- 2 files changed, 12 insertions(+), 25 deletions(-) diff --git a/browser/installer/windows/nsis/installer.nsi b/browser/installer/windows/nsis/installer.nsi index b32ba6306ffd8..e5942041f91bc 100755 --- a/browser/installer/windows/nsis/installer.nsi +++ b/browser/installer/windows/nsis/installer.nsi @@ -1446,11 +1446,7 @@ Function leaveShortcuts ${EndIf} ${MUI_INSTALLOPTIONS_READ} $AddDesktopSC "shortcuts.ini" "Field 2" "State" ${MUI_INSTALLOPTIONS_READ} $AddStartMenuSC "shortcuts.ini" "Field 3" "State" - - ; Don't install the quick launch shortcut on Windows 7 - ${Unless} ${AtLeastWin7} - ${MUI_INSTALLOPTIONS_READ} $AddQuickLaunchSC "shortcuts.ini" "Field 4" "State" - ${EndUnless} + ${MUI_INSTALLOPTIONS_READ} $AddTaskbarSC "shortcuts.ini" "Field 4" "State" ${If} $InstallType == ${INSTALLTYPE_CUSTOM} Call CheckExistingInstall @@ -1898,13 +1894,7 @@ Function .onInit WriteINIStr "$PLUGINSDIR\options.ini" "Field 5" Top "67" WriteINIStr "$PLUGINSDIR\options.ini" "Field 5" Bottom "87" - ; Setup the shortcuts.ini file for the Custom Shortcuts Page - ; Don't offer to install the quick launch shortcut on Windows 7 - ${If} ${AtLeastWin7} - WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Settings" NumFields "3" - ${Else} - WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Settings" NumFields "4" - ${EndIf} + WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Settings" NumFields "4" WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 1" Type "label" WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 1" Text "$(CREATE_ICONS_DESC)" @@ -1930,16 +1920,13 @@ Function .onInit WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 3" Bottom "50" WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 3" State "1" - ; Don't offer to install the quick launch shortcut on Windows 7 - ${Unless} ${AtLeastWin7} - WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Type "checkbox" - WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Text "$(ICONS_QUICKLAUNCH)" - WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Left "0" - WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Right "-1" - WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Top "60" - WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Bottom "70" - WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" State "1" - ${EndUnless} + WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Type "checkbox" + WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Text "$(ICONS_TASKBAR)" + WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Left "0" + WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Right "-1" + WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Top "60" + WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" Bottom "70" + WriteINIStr "$PLUGINSDIR\shortcuts.ini" "Field 4" State "1" ; Setup the components.ini file for the Components Page WriteINIStr "$PLUGINSDIR\components.ini" "Settings" NumFields "2" diff --git a/browser/locales/en-US/installer/custom.properties b/browser/locales/en-US/installer/custom.properties index 179d13f7924b3..9127b87199717 100644 --- a/browser/locales/en-US/installer/custom.properties +++ b/browser/locales/en-US/installer/custom.properties @@ -40,9 +40,9 @@ SUMMARY_UPGRADE_CLICK=Click Upgrade to continue. SURVEY_TEXT=&Tell us what you thought of $BrandShortName LAUNCH_TEXT=&Launch $BrandShortName now CREATE_ICONS_DESC=Create icons for $BrandShortName: -ICONS_DESKTOP=On my &Desktop -ICONS_STARTMENU=In my &Start Menu Programs folder -ICONS_QUICKLAUNCH=In my &Quick Launch bar +ICONS_DESKTOP=On my &desktop +ICONS_STARTMENU=In my &Start menu Programs folder +ICONS_TASKBAR=On my &taskbar WARN_MANUALLY_CLOSE_APP_INSTALL=$BrandShortName must be closed to proceed with the installation.\n\nPlease close $BrandShortName to continue. WARN_MANUALLY_CLOSE_APP_UNINSTALL=$BrandShortName must be closed to proceed with the uninstall.\n\nPlease close $BrandShortName to continue. WARN_MANUALLY_CLOSE_APP_REFRESH=$BrandShortName must be closed to proceed with the refresh.\n\nPlease close $BrandShortName to continue.