Rev 106 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
106 | daniel-mar | 1 | @echo off |
2 | |||
3 | if "%~1"=="" goto :done |
||
4 | |||
5 | echo Sign %1 ... |
||
6 | |||
7 | >NUL 2>&1 "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\signtool.exe" verify /pa %1 && ( |
||
109 | daniel-mar | 8 | echo File %1 is already signed, skipping |
9 | exit /b 0 |
||
106 | daniel-mar | 10 | ) || ( |
109 | daniel-mar | 11 | "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\signtool.exe" sign /a /tr http://timestamp.globalsign.com/tsa/r6advanced1 /td SHA256 /fd SHA256 /n "HickelSOFT" /v %1 |
12 | >NUL 2>&1 "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\signtool.exe" verify /pa %1 && ( |
||
13 | echo File %1 is sucessfully signed! |
||
14 | exit /b 0 |
||
15 | ) || ( |
||
16 | echo ERROR while signing file %1 ! |
||
17 | echo. |
||
18 | "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\signtool.exe" sign /a /tr http://timestamp.globalsign.com/tsa/r6advanced1 /td SHA256 /fd SHA256 /n "HickelSOFT" /v %1 |
||
19 | echo. |
||
20 | pause. |
||
21 | exit /b 1 |
||
22 | ) |
||
106 | daniel-mar | 23 | ) |
24 | |||
25 | :done |