From 7e6db0aa399e42b5f7d9096cd38bd63e6bfb6628 Mon Sep 17 00:00:00 2001 From: anders_k Date: Thu, 14 Mar 2013 22:14:23 +0000 Subject: [PATCH] Warn if MUI_PAGE_* is inserted after MUI_LANGUAGE git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6300 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/Modern UI 2/Pages.nsh | 8 ++++++++ Contrib/Modern UI/System.nsh | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/Contrib/Modern UI 2/Pages.nsh b/Contrib/Modern UI 2/Pages.nsh index cf0cb510..2c8e2e42 100644 --- a/Contrib/Modern UI 2/Pages.nsh +++ b/Contrib/Modern UI 2/Pages.nsh @@ -10,6 +10,10 @@ Support code for all pages !macro MUI_PAGE_INIT + !ifdef MUI_INSERT + !warning "MUI_PAGE_* inserted after MUI_LANGUAGE" + !endif + ;Include interface settings in neccesary !insertmacro MUI_INTERFACE @@ -29,6 +33,10 @@ Support code for all pages !macro MUI_UNPAGE_INIT + !ifdef MUI_INSERT + !warning "MUI_UNPAGE_* inserted after MUI_LANGUAGE" + !endif + ;Include interface settings !insertmacro MUI_INTERFACE diff --git a/Contrib/Modern UI/System.nsh b/Contrib/Modern UI/System.nsh index 3317896e..d3bc3aa3 100644 --- a/Contrib/Modern UI/System.nsh +++ b/Contrib/Modern UI/System.nsh @@ -689,6 +689,10 @@ Var MUI_TEMP2 !macro MUI_PAGE_INIT + !ifdef MUI_INSERT + !warning "MUI_[UN]PAGE_* inserted after MUI_LANGUAGE" + !endif + !insertmacro MUI_INTERFACE !insertmacro MUI_DEFAULT MUI_PAGE_UNINSTALLER_PREFIX ""