diff --git a/configure.py b/configure.py index d5caf615..c1526046 100644 --- a/configure.py +++ b/configure.py @@ -193,7 +193,7 @@ def dist(): z.extractall("innosetup") # Run - cs_flags = '"/Ssigntool=%s"' % signtool_path + cs_flags = '/DSKIP_SIGN=1' if args.code_sign_cert_path: cs_flags = '"/Ssigntool=%s sign /f %s /fd SHA1 /t http://timestamp.sectigo.com $f"' % (signtool_path, args.code_sign_cert_path) run("innosetup\\iscc /Qp " + cs_flags + " \"innosetup.iss\"") diff --git a/innosetup.iss b/innosetup.iss index e1d2f377..799876ad 100644 --- a/innosetup.iss +++ b/innosetup.iss @@ -30,7 +30,9 @@ Compression=lzma SolidCompression=yes ArchitecturesAllowed=x64 ArchitecturesInstallIn64BitMode=x64 +#ifndef SKIP_SIGN SignTool=signtool +#endif PrivilegesRequired=lowest PrivilegesRequiredOverridesAllowed=commandline UsePreviousAppDir=no