From a35aaca9764ac05db00a0b1dca605ceb6c85b2da Mon Sep 17 00:00:00 2001 From: "rob_strong%exchangecode.com" Date: Thu, 23 Aug 2007 19:39:50 +0000 Subject: [PATCH] Bug 392303 - Simplify installer changes (fix includes for older versions of NSIS). r=sspitzer git-svn-id: svn://10.0.0.236/trunk@232958 18797224-902f-48f8-a5cc-f745e15eee43 --- .../mozapps/installer/windows/nsis/common.nsh | 14 +++++++++----- .../mozapps/installer/windows/nsis/overrides.nsh | 14 +++++++++----- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/mozilla/toolkit/mozapps/installer/windows/nsis/common.nsh b/mozilla/toolkit/mozapps/installer/windows/nsis/common.nsh index 1a6a3721372..009b42f4eaf 100755 --- a/mozilla/toolkit/mozapps/installer/windows/nsis/common.nsh +++ b/mozilla/toolkit/mozapps/installer/windows/nsis/common.nsh @@ -67,11 +67,15 @@ Exch 1 ; exchange the top of the stack with 2 below the top of the stack Exch $R9 ; exchange the new $R9 value with the top of the stack */ -# Commented out until the Thunderbird, Seamonkey, and Calendar Tinderboxes -# have been updated to MozillaBuild which includes an updated version of -# NSIS -# !include TextFunc.nsh -# !include FileFunc.nsh +; When including a file provided by NSIS check if its verbose macro is defined +; to prevent loading the file a second time. +!ifmacrondef TEXTFUNC_VERBOSE +!include TextFunc.nsh +!endif + +!ifmacrondef FILEFUNC_VERBOSE +!include FileFunc.nsh +!endif ; NSIS provided macros that we have overridden. !include overrides.nsh diff --git a/mozilla/toolkit/mozapps/installer/windows/nsis/overrides.nsh b/mozilla/toolkit/mozapps/installer/windows/nsis/overrides.nsh index a3bf09006d5..899e71dae61 100755 --- a/mozilla/toolkit/mozapps/installer/windows/nsis/overrides.nsh +++ b/mozilla/toolkit/mozapps/installer/windows/nsis/overrides.nsh @@ -4,11 +4,15 @@ !ifndef OVERRIDES_INCLUDED !define OVERRIDES_INCLUDED -# Commented out until the Thunderbird, Seamonkey, and Calendar Tinderboxes -# have been updated to MozillaBuild which includes an updated version of -# NSIS -# !include TextFunc.nsh -# !include FileFunc.nsh +; When including a file check if its verbose macro is defined to prevent +; loading the file a second time. +!ifmacrondef TEXTFUNC_VERBOSE +!include TextFunc.nsh +!endif + +!ifmacrondef FILEFUNC_VERBOSE +!include FileFunc.nsh +!endif ; Modified version of Locate from the NSIS File Functions Header v3.2 ; This version has the calls to SetDetailsPrint and DetailsPrint commented out.