views:

642

answers:

2

Is is possible to deploy VS add-ins using ClickOnce? How can I do it?

A: 

I'm pretty sure that you cannot do this. ClickOnce is designed for side-effect free deployments, and don't impact registry (except perhaps for file associations) or "Program Files" (having their own repository).

I'm pretty sure you'll need msi for this.

Marc Gravell
Actually, registry changes are no longer required. You can just drop a registration file (.AddIn) in the appropriate directory. That said, I don't think ClickOnce gives you any choice in target directory, nor any hooks into the "installation".
Kent Boogaart
@Kent - exactly; and dropping an .AddIn counts as a side-effect...
Marc Gravell
+3  A: 

Take a look at Securing and Deploying Add-Ins. And the subtopic Securing Add-ins by Using ClickOnce.

I haven't personally used them, but I found them while searching with a similar question as yours.

Rob McCready