PDA

View Full Version : SOLVED - Code Signing (Adding Digital Signatures) - Setup.exe (works) - myProgram.exe



NewsArchive
03-06-2018, 03:36 AM
That fixed the issue. Thanks to everyone for your advise.

Love this community,
Ken Stone & Staff

On Thu, Feb 22 2018 4:59 pm, John Griffiths said:
>Hi Ken
>
>On 22 Feb 2018 09:34:51 -0500, Ken Stone wrote:
>
>>We checked the permanent as suggested. Still no digital signature added to
>>myProgram.exe file....
>
>Looking at your script output, I see [backup] for the Manifest output. This looks like
>you need to also add the [x] permanent setting to your manifest setting within SB.
>
>
>see screenshots...
>
>JohnG
>

On Thu, Feb 22 2018 11:41 am, Ken Stone said:
>Windows 10
>SetupBuilder Developer Edition 2017
>Version: 10.0.5710
>
>Digital Signatures are added to Setup.exe, but NOT added to myProgram.exe
>
>We are not getting any errors during the build (see log below)
>
>----------------------------------------------------------
>------ Build started: Project: setup.sb7, Configuration: Release Win32 ------
>------ Date/Time: 02/22/2018 -- 11:33:36AM
>
>------ SetupBuilder (tm) Project Script Compiler and Linker for Windows
>------ Copyright (c) 1997-2017 Lindersoft
>------ SetupScript (tm) Installation Script Language
>------ Copyright (c) 2003-2017 Lindersoft
>------ All rights reserved.
>
>------ Developer Edition 2017 Version 10.0.5710
>------ SetupBuilder (SB/EXE) Compiler Version 10.0.5710
>
>Waiting for SKU Management configuration information...
>Init Globals...
> Set Media Type: Single-file image
> Verify Code-Signed Install at Startup: DISABLED
> OK
>Writing Objects...
> OK
>Compiling...
>setup.sb7
>Init Standard Variables...
>Performing pre-checks...
> #pragma loaded: CODESIGN_SHA
> #pragma CODESIGN_SHA = 12
> #pragma loaded: CODESIGN_TSSHA1URL
> SHA1 timestamp server defined
> #pragma CODESIGN_TSSHA1URL = http://timestamp.comodoca.com/authenticode
> OK
>Timestamp server(s)...
> SHA-1: http://timestamp.comodoca.com/authenticode
> SHA-2: http://timestamp.globalsign.com/?signature=sha2
> Type : 12
>Script format version detected: 10.0.5452
>Recursive compile (0:30): Common Definitions.sbi
> #pragma loaded: MINVER
> Finished
>Continue (0:1:31):
>C:\Clarion10\Apps\Version63\Acmswin\479\Update\Acm swin\withoutHelp\Payroll\setup.sb7
>Embed Manifest (Preprocessor)...
>Manifest embedded successfully [backup]:
>C:\Clarion10\Apps\Version63\Acmswin\479\payroll.ex e
>Adding Digital Certificate II (Preprocessor)...
> SIGNTOOL: C:\Clarion10\Apps\Version63\Acmswin\479\payroll.ex e
> SVER: 10.0.10240.16384
> SHA1: 0
> SHA2: 0
>Code signed successfully: C:\Clarion10\Apps\Version63\Acmswin\479\payroll.ex e
>Script(s) processed
>Generating Code...
> OK
>Building executable...
> Approx. Stub size: 24,235 bytes
>Linking kernel...
> Code size: 156,847 bytes
>Generating and optimizing [1033] string resources [@2]...
>Processing external file [1]: C:\Clarion5\APPS\AcmsWin\manual\License Agreement.rtf
> OK
>Linking [1033] language resource(s)...
> Code size: 11,649 bytes
>Linking dialog side bitmap...
> Code size: 2,761 bytes
>Linking dialog top bitmap...
> Code size: 484 bytes
>Including 2 core service file(s)...
> Compressing file: C:\Program Files (x86)\Lindersoft\SetupBuilder 10
>Developer\Images\sbInstall2.bmp
> Code size: 25,171 bytes
> Compressing file: C:\Program Files (x86)\Lindersoft\SetupBuilder 10
>Developer\Images\sbInstall.bmp
> Code size: 20,131 bytes
>Linking Uninstall Script...
> Code size: 288 bytes
>Preparing Uninstaller Code-Signing...
> OK
>Calculating Feature and Type sizes...
> OK
>Resolving compiler variables...
> OK
>Analyzing installation script (protection mode)...
> OK
>Linking installation script...
> Code size: 2,083 bytes
>Linking loader...
> PECVER: 4.0.4.0
> Resum00 executed
> Compile Version Resource...
> Code size: 16,896 bytes
> Add SZDD stamp @ 7692
>Linking decompression library...
> Code size: 9,387 bytes
>Processing Uninstall Code-Signing...
>Adding Digital Certificate to Uninstall...
>Resolve CSI...
> SIGNTOOL
> SVER: 10.0.10240.16384
> SHA1: 0
> SHA2: 0
>Successfully code signed Uninstall Object
>Process File Overhead Extraction
> OK
>Generating Uninstall Delta [8000]...
> 34 byte-mods applied
> Signature source added [12388:6426]
> Signature patch added
> OK
>Finalizing application...
>Adding Digital Certificate...
>Resolve CSI...
> SIGNTOOL:
>C:\Clarion10\Apps\Version63\Acmswin\479\Update\Acm swin\withoutHelp\Payroll\Setup.exe
> SVER: 10.0.10240.16384
> SHA1: 0
> SHA2: 0
>Code signed successfully
> Code Signing Certificate Expiration Date: 01/16/2021 - 1059 day(s)
> Extended Information: T&S Consulting, LLC - 57 ce aa 58 a9 8b f9 af a6 81 ee
>ad 27 30 b2 9a
>Terminating CSigning Process...[0]
> OK
>Generating HTML report...
> C:\Clarion10\Apps\Version63\Acmswin\479\Update\Acm swin\withoutHelp\Payroll\Setup.htm
> OK
>Generating CSV report...
> C:\Clarion10\Apps\Version63\Acmswin\479\Update\Acm swin\withoutHelp\Payroll\Setup.csv
> OK
>
>--------------------------------------- Done ---------------------------------------
>
>setup.sb7 - Setup.exe - 0 error(s), 0 warning(s), 1 file(s) code-signed
>
>Total file(s) : 2
>Total data size: 34,897,560 bytes (33.28 MB)
>Total .exe size: 26,280,152 bytes (25.06 MB)
>
>Location:
>C:\Clarion10\Apps\Version63\Acmswin\479\Update\Acm swin\withoutHelp\Payroll\Setup.exe
>
>Compilation Time: 8.53 sec.
>Date/Time: 02/22/2018 -- 11:33:45AM
>
>------------------------------- Compilation finished -------------------------------
>
>
>

NewsArchive
03-06-2018, 03:36 AM
Thanks for the update, Ken.

Friedrich