@echo off set wd=%~dp0 set compressFile=%temp%\vn-support.7z set exeFile=%wd%\web\vn-support.exe "%programFiles%\7-Zip\7z.exe" a "%compressFile%" "%wd%\client\*" copy /b "%wd%\7zip\7zsd_LZMA2.sfx" + "%wd%\7zip\config.txt" + "%compressFile%" "%exeFile%" del "%compressFile%" rem signtool.exe sign /a /f "C:\cert.pfx" /n "Verdnatura" /t ^ rem http://timestamp.comodoca.com/authenticode /d "Remote Support" "%exeFile%" rem "C:\Program Files(x86)\Windows Kits\10\bin\x86\signtool.exe" sign /tr ^ rem http://timestamp.comodoca.com?td=sha256 /td sha256 /fd sha256 /f verdnatura.p12 "%exeFile%"