1
votes

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.

3

3 Answers

3
votes

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!

1
votes

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)