Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Thunderbird x64, distribtution, junctions
Add dual mode 32-bit 64-bit support, distrubtion preservation, and junction detection to Thunderbird Portable
- Loading branch information
1 parent
db73224
commit a6428d1
Showing
9 changed files
with
2,191 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Oops, something went wrong.