How to avoid the trust question

Certain software installs (particularly those that install drivers) ask this question:

…which is a difficult one to answer when the installation is unattended.

To bypass this, you need to add the publisher’s certificate in the localmachine, ‘Trusted Publishers’ certificate store. The easiest way to obtain the certificate is to install the software manually, and export the certificate to a file.

This certmgr command will install the certificate for you:

certmgr.exe -add cert.cer -c -s -r localMachine TrustedPublisher
 
Advertisements