Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 417
Pablo Yabo Avatar asked Nov 01 '25 18:11

Pablo Yabo


2 Answers

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!

like image 115
Pablo Yabo Avatar answered Nov 04 '25 13:11

Pablo Yabo


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://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2010/ff937654(v=msdn.10)

like image 45
Deependra Rathore Avatar answered Nov 04 '25 13:11

Deependra Rathore



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!