Skip to content

Commit

Permalink
Thunderbird x64, distribtution, junctions
Browse files Browse the repository at this point in the history
Add dual mode 32-bit 64-bit support, distrubtion preservation, and junction detection to Thunderbird Portable
  • Loading branch information
JohnTHaller committed Sep 2, 2020
1 parent db73224 commit a6428d1
Show file tree
Hide file tree
Showing 9 changed files with 2,191 additions and 76 deletions.
55 changes: 55 additions & 0 deletions T/Thunderbird/CheckForPlatformSplashDisable.nsh
@@ -0,0 +1,55 @@
; CheckForPlatformSplashDisable 1.2 (2020-03-20)
;
; Checks if the platform wants the splash screen disabled
; Copyright 2008-2020 John T. Haller of PortableApps.com
; Released under the GPL
;
; Usage: ${CheckForPlatformSplashDisable} _v
;
; Example: ${CheckForPlatformSplashDisable} $DisableSplashScreen
; If the platform wants it disabled, $DisableSplashScreen will be true.
; Otherwise it will be whatever its previous value was
;
; Requires: ProcFunc.nsh 2.2 or higher from PortableApps.com

!ifndef CheckForPlatformSplashDisable
!include LogicLib.nsh
!include ProcFunc.nsh

!macro CheckForPlatformSplashDisable _v
${If} ${_v} != true
;Get parameter and prep stack
Push $0
Push $1
Push $R0

StrCpy $0 ${_v}

;Read the environment variable
ReadEnvStr $1 PortableApps.comDisableSplash
${If} $1 == true
${GetParent} $EXEDIR $1
${If} ${FileExists} "$1\PortableApps.com\PortableAppsPlatform.exe"
MoreInfo::GetProductName `$1\PortableApps.com\PortableAppsPlatform.exe`
Pop $R0
${If} $R0 == "PortableApps.com Platform"
MoreInfo::GetCompanyName `$1\PortableApps.com\PortableAppsPlatform.exe`
Pop $R0
${If} $R0 == "PortableApps.com"
${If} ${ProcessExists} "PortableAppsPlatform.exe"
StrCpy $0 true
${EndIf}
${EndIf}
${EndIf}
${EndIf}
${EndIf}

;Restore the stack and store the variable
Pop $R0
Pop $1
Exch $0
Pop ${_v}
${EndIf}
!macroend
!define CheckForPlatformSplashDisable '!insertmacro CheckForPlatformSplashDisable'
!endif

0 comments on commit a6428d1

Please sign in to comment.