diff --git a/build.ps1 b/build.ps1 index f381cf74e..769bb66bc 100644 --- a/build.ps1 +++ b/build.ps1 @@ -55,7 +55,9 @@ Function MD5($filename) { Function PrepareCertificate() { $decodedContentBytes = [System.Convert]::FromBase64String($env:Certificate) $decodedContentBytes | set-content "greenshot.pfx" -encoding byte - certutil -p "$env:CertificatePassword" -importpfx -f "greenshot.pfx" NoExport + + $certutilArguments = @('-f', '-p', $env:CertificatePassword, '-importpfx', "greenshot.pfx") + Start-Process -wait -PassThru certutil -ArgumentList $certutilArguments -NoNewWindow } # Sign the file with Signtool before they are packed in the installer / .zip etc