diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-06-21 15:47:12 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-06-21 15:47:12 +0200 |
commit | d7359c38b197c221c43def1e24cb48d4aee51bba (patch) | |
tree | 133fbe3ef3eb0f7ce6b151db1ed86bfd9c4abb60 /application/palemoon/installer/windows/nsis/shared.nsh | |
parent | 2a5466cfbaab490c9abd96ff166689ad8a6d2121 (diff) | |
download | UXP-d7359c38b197c221c43def1e24cb48d4aee51bba.tar UXP-d7359c38b197c221c43def1e24cb48d4aee51bba.tar.gz UXP-d7359c38b197c221c43def1e24cb48d4aee51bba.tar.lz UXP-d7359c38b197c221c43def1e24cb48d4aee51bba.tar.xz UXP-d7359c38b197c221c43def1e24cb48d4aee51bba.zip |
Clean up the nsis installer script a litte.
- remove stub installer leftovers
- remove maintenance service leftovers
- remove unused macros
Diffstat (limited to 'application/palemoon/installer/windows/nsis/shared.nsh')
-rw-r--r-- | application/palemoon/installer/windows/nsis/shared.nsh | 27 |
1 files changed, 10 insertions, 17 deletions
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} |