I use powershell app deployment tool kit and I have a script to install a few MSI's. For one of the MSI's, I have a certificate (cert.cer
) that I need to install on each machine's trusted publisher.
After doing some digging, I came up with this:
certutil.exe -addstore TrustedPublisher cert.cer
certutil.exe -addstore root cert.cer
This does not work, no errors, I am just still being prompted to have to accept an install from a non trusted publisher.