From 38eaf241fa98ec3cdcd56a1096a05232aeccdf23 Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Thu, 17 Sep 2015 13:37:48 +0200 Subject: [PATCH] NSIS: Try to ignore (invalid) errors from NSIS UAC --- cmake/modules/NSIS.template.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/modules/NSIS.template.in b/cmake/modules/NSIS.template.in index 98d5a3df6..8e1b8a5de 100644 --- a/cmake/modules/NSIS.template.in +++ b/cmake/modules/NSIS.template.in @@ -741,6 +741,8 @@ Function .onInit Quit ${EndSwitch} + ClearError + ;Prevent multiple instances. System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${APPLICATION_SHORTNAME}Installer") i .r1 ?e' Pop $R0 @@ -806,6 +808,8 @@ Function un.onInit Quit ${EndSwitch} + ClearError + ;Prevent multiple instances. System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${APPLICATION_SHORTNAME}Uninstaller") i .r1 ?e' Pop $R0