VSTO add-in silent installation

13,908

Solution 1

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!

Solution 2

Yes you can.

Just Uncheck the ClickOnce manifest CheckBox and Check the signing the assembly using any .snk file.

You will need to create installer project and the rebuild the installer project will provide you the .msi and .exe file you can execute the following command on command prompt(Administator).

Though rebuilding of installer project will automatically check the ClickOnce checkBox but you can ignore that.

Below is the link for creating Installer project for AddIn.

https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/ff937654(v=msdn.10)

Share:
13,908
Pablo Yabo
Author by

Pablo Yabo

I am a blockchain professional developer and I lead the development of software products at RandLabs.

Updated on June 04, 2022

Comments

  • Pablo Yabo
    Pablo Yabo almost 2 years

    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.