From d7359c38b197c221c43def1e24cb48d4aee51bba Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Fri, 21 Jun 2019 15:47:12 +0200 Subject: Clean up the nsis installer script a litte. - remove stub installer leftovers - remove maintenance service leftovers - remove unused macros --- .../palemoon/installer/windows/nsis/shared.nsh | 27 ++++++++-------------- 1 file changed, 10 insertions(+), 17 deletions(-) (limited to 'application/palemoon/installer/windows/nsis/shared.nsh') diff --git a/application/palemoon/installer/windows/nsis/shared.nsh b/application/palemoon/installer/windows/nsis/shared.nsh index 815853ae7..49e9369f7 100644 --- a/application/palemoon/installer/windows/nsis/shared.nsh +++ b/application/palemoon/installer/windows/nsis/shared.nsh @@ -842,24 +842,17 @@ ClearErrors WriteIniStr "$0" "TASKBAR" "Migrated" "true" ${If} ${AtLeastWin7} - ; If we didn't run the stub installer, AddTaskbarSC will be empty. - ; We determine whether to pin based on whether we're the default - ; browser, or if we're on win8 or later, we always pin. - ${If} $AddTaskbarSC == "" - ; No need to check the default on Win8 and later - ${If} ${AtMostWin2008R2} - ; Check if the PaleMoon is the http handler for this user - SetShellVarContext current ; Set SHCTX to the current user - ${IsHandlerForInstallDir} "http" $R9 - ${If} $TmpVal == "HKLM" - SetShellVarContext all ; Set SHCTX to all users - ${EndIf} - ${EndIf} - ${If} "$R9" == "true" - ${OrIf} ${AtLeastWin8} - ${PinToTaskBar} + ; No need to check the default on Win8 and later + ${If} ${AtMostWin2008R2} + ; Check if the Pale Moon is the http handler for this user + SetShellVarContext current ; Set SHCTX to the current user + ${IsHandlerForInstallDir} "http" $R9 + ${If} $TmpVal == "HKLM" + SetShellVarContext all ; Set SHCTX to all users ${EndIf} - ${ElseIf} $AddTaskbarSC == "1" + ${EndIf} + ${If} "$R9" == "true" + ${OrIf} ${AtLeastWin8} ${PinToTaskBar} ${EndIf} ${EndIf} -- cgit v1.2.3 From e4b2fa17baea1d35d80de19ffb90d9ba2a1033f8 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sat, 29 Jun 2019 01:37:06 +0200 Subject: [Pale Moon] Remove *.pdf file association in the installer. --- application/palemoon/installer/windows/nsis/shared.nsh | 2 -- 1 file changed, 2 deletions(-) (limited to 'application/palemoon/installer/windows/nsis/shared.nsh') diff --git a/application/palemoon/installer/windows/nsis/shared.nsh b/application/palemoon/installer/windows/nsis/shared.nsh index 49e9369f7..385a411a3 100644 --- a/application/palemoon/installer/windows/nsis/shared.nsh +++ b/application/palemoon/installer/windows/nsis/shared.nsh @@ -322,11 +322,9 @@ WriteRegStr SHCTX "$0\.xhtml" "" "PaleMoonHTML" ${EndIf} - ${AddAssociationIfNoneExist} ".pdf" ${AddAssociationIfNoneExist} ".oga" ${AddAssociationIfNoneExist} ".ogg" ${AddAssociationIfNoneExist} ".ogv" - ${AddAssociationIfNoneExist} ".pdf" ${AddAssociationIfNoneExist} ".webm" ; An empty string is used for the 5th param because PaleMoonHTML is not a -- cgit v1.2.3