From 3cc8457a985cfb9f1aa903f04749b0f2f230c9d3 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 12 Jan 2016 17:11:11 -0800 Subject: [PATCH] only call signtool on uninstaller for production build --- cmake/templates/NSIS.template.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmake/templates/NSIS.template.in b/cmake/templates/NSIS.template.in index 68f1776ab8..822d5c3cc0 100644 --- a/cmake/templates/NSIS.template.in +++ b/cmake/templates/NSIS.template.in @@ -50,9 +50,11 @@ !system "$%TEMP%\tempinstaller.exe" = 2 ; That will have written an uninstaller binary for us. Now we sign it with your - ; favourite code signing tool. + ; favourite code signing tool, if it's a production build. - !system "signcode $%TEMP%\uninstaller.exe" = 0 + ${If} "@PRODUCTION_BUILD@" == "1" + !system "signcode $%TEMP%\uninstaller.exe" = 0 + ${EndIf} ; Good. Now we can carry on writing the real installer.