Search code examples
vstoms-officeclickonceadd-on

VSTO add-in silent installation


I've developed a VSTO addin with VS2012 signed by a DigiCert certificate. I need to deploy it to all the Enterprise users so the installer shouldn't prompt the user because it will fail since all the installation process is silent. I'm not able to do it since it always ask the user if it should or shouldn't install. If I set VSTOInstaller /S it doesn't install 'silently'.

Is there any way to do this?

Thanks on advanced.


Solution

  • I found the answer. To solve this you have to install the public key certificate in your installer:

    certutil -addstore TRUSTEDPUBLISHER "yourcertificate.cer"

    Then, you just use VSTOInstaller:

    VSTOInstaller.exe /I "youraddin.vsto" /S

    That's all folks!