Skip to content

Commit

Permalink
fix: Wrap the nsProcess include in a !ifndef (#6996)
Browse files Browse the repository at this point in the history
* Wrap the nsProcess include in a !ifndef

Conditionally include nsProcess only if it has not previously been included or defined. 

There is a use case where you include `nsProcess.nsh` in your own custom install script. If you do that this file throws an error indicating that `nsProcess` has already been defined. I suspect it is due to the invocation order and how your custom scripts logic runs before the logic in this file.
  • Loading branch information
titus-anromedonn committed Jul 15, 2022
1 parent d99da82 commit 5301525
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/gentle-singers-sip.md
@@ -0,0 +1,5 @@
---
"app-builder-lib": patch
---

fix: Wrap the nsProcess.nsh include in a !ifndef in case it has already been imported in a custom install script
@@ -1,4 +1,6 @@
!include "nsProcess.nsh"
!ifndef nsProcess::FindProcess
!include "nsProcess.nsh"
!endif

!ifmacrondef customCheckAppRunning
!include "getProcessInfo.nsh"
Expand Down

0 comments on commit 5301525

Please sign in to comment.