From 87f380b8b5607ae7f0214a65ed7babf5f68137a4 Mon Sep 17 00:00:00 2001 From: Robin Date: Mon, 15 Aug 2016 16:43:50 +0200 Subject: [PATCH] Using password via environment --- Greenshot/releases/innosetup/setup.iss.template | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Greenshot/releases/innosetup/setup.iss.template b/Greenshot/releases/innosetup/setup.iss.template index c38663d86..526e47195 100644 --- a/Greenshot/releases/innosetup/setup.iss.template +++ b/Greenshot/releases/innosetup/setup.iss.template @@ -1,7 +1,6 @@ #define ExeName "Greenshot" #define Version "@VERSION@" #define FileVersion "@FILEVERSION@" -#define CertificatePassword GetEnv('CertificatePassword') ; Include the scripts to install .NET Framework ; See http://www.codeproject.com/KB/install/dotnetfx_innosetup_instal.aspx @@ -129,9 +128,9 @@ OutputDir=..\ PrivilegesRequired=none SetupIconFile=..\..\icons\applicationIcon\icon.ico ; Create a SHA1 signature -SignTool=SignTool sign /debug /fd sha1 /a /f ..\..\..\Greenshot.pfx /p {#CertificatePassword} /tr http://time.certum.pl /td sha1 $f +SignTool=SignTool sign /debug /fd sha1 /a /f ..\..\..\Greenshot.pfx /p %CertificatePassword% /tr http://time.certum.pl /td sha1 $f ; Append a SHA256 to the previous SHA1 signature (this is what as does) -SignTool=SignTool sign /as /debug /fd sha256 /a /f ..\..\..\Greenshot.pfx /p {#CertificatePassword} /a /tr http://time.certum.pl /td sha256 $f +SignTool=SignTool sign /as /debug /fd sha256 /a /f ..\..\..\Greenshot.pfx /p %CertificatePassword% /a /tr http://time.certum.pl /td sha256 $f SignedUninstaller=yes UninstallDisplayIcon={app}\{#ExeName}.exe Uninstallable=true