"C:\Program Files (x86)\NSIS\makensis.exe" "KMBIM3.nsi" for /f "skip=1" %%x in ('wmic os get localdatetime') do if not defined MyDate set MyDate=%%x for /f %%x in ('wmic path win32_localtime get /format:list ^| findstr "="') do set %%x set fmonth=00%Month% set fday=00%Day% set today=%Year%-%fmonth:~-2%-%fday:~-2% timeout /t 3 signtool.exe sign /v /a /ac e:\codesign\MSCV_UserTrust.cer /n "D.C.S" /f e:\codesign\dcs.pfx /p 1111 /tr http://timestamp.comodoca.com/rfc3161 /td sha256 /fd sha256 "KMBIM3.0_Setup_%today%.exe"