Welcome to MSDN Blogs Sign in | Join | Help

VSTO: My Favorite Feature - ClickOnce Deployment

One of my favorite features in the latest version of VSTO is ClickOnce Deployment. ClickOnce deployment makes securely deploying my Office add-in and document level solutions easy. VSTO deployment supports, Local, HTTP, UNC, CD/DVD and USB locations. This gives you the flexibility to deploy your application where it makes sense for you.  Deployment also supports offline, automatic updating and rollback. Oh, I know that it was challenging in the past. But now in VSTO Orcas all of that CASPOL messiness is behind us. Still can't believe it, let's walk through a simple deployment scenario.

1. Create a new VSTO project.

2. Run the Publish Wizard

3. Or Set the Publish properties for more control

4. Install the published Add-in

5. Allow the add-in to install

6. Done! It's installed and trusted

7.Run Office

You can verify that the add-in is installed and running.

That's it. Super simple. The next CTP and Beta 2 of Visual Studio Orcas will contain all of the new deployment features of VSTO. 

Published Thursday, May 17, 2007 10:09 AM by pstubbs
Filed under: , ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: VSTO: My Favorite Feature - ClickOnce Deployment

That looks very promising.

One of the major pain points in previous versions was moving stuff around. How does this impact the installations if say I moved my deployment stuff from \\server1\here-deployed-originally to \\server2\and-now-i-want-it-here ?

-= Maarten =-

Thursday, May 17, 2007 7:27 PM by aafvstam

# re: VSTO: My Favorite Feature - ClickOnce Deployment

This is very easy now. The setup.exe itself is used to update the deployment manifest. for example

setup.exe -url=\\server2\and-now-i-want-it-here\deployme.vsto

.vsto is the extension for the deployment manifest.

Here are the other switches you can use.

  -url or -componentsurl :  Show the stored url and componentsurl for this setup.

  -url=<location> : Sets the url source to the specified location.

  -componentsurl=<location> : Sets the componentsurl to the specified location.

  -homesite=<true or false> : When set to true, downloads the components from their vendors' web site, overriding the componentsurl.

Thursday, May 17, 2007 9:07 PM by pstubbs

# VSTO Deployment Gets Easy

Paul Stubbs blogs about how easy we made deployment in VSTO Orcas. http://blogs.msdn.com/pstubbs/archive/2007/05/17/vsto-my-favorite-feature-clickonce-deployment.aspx

Saturday, May 26, 2007 4:02 AM by .NET4Office

# re: VSTO: My Favorite Feature - ClickOnce Deployment

Very nice feature...

Can Outlook Add-Ins be created with the Express Editions (beta)?

Saturday, May 26, 2007 3:40 PM by matzer

# re: VSTO: My Favorite Feature - ClickOnce Deployment

Hi, Good question. VSTO add-ins can only be created with Visual Studio Pro or above.

Saturday, May 26, 2007 3:47 PM by pstubbs

# re: VSTO: My Favorite Feature - ClickOnce Deployment

The VSTO team have made a great work by eliminating most of the deployment complexity - thank You.

Kind regards,

Dennis

Sunday, May 27, 2007 3:33 PM by XL-Dennis

# re: VSTO: My Favorite Feature - ClickOnce Deployment

Do Office 2003 Add-Ins (ie Outlook 2003) benefit from this?

Thursday, June 21, 2007 11:46 AM by BobC

# re: VSTO: My Favorite Feature - ClickOnce Deployment

Is Click-Once deployment compatible with Outlook 2003 Add-In projects?

Wednesday, June 27, 2007 7:16 AM by BobC

# VSTO deployment in Visual Studio 8 - Orcas

Hats off to VSTO (VS, ClickOnce) team! No more problems with CAS and prerequisites. You can deploy your...

Thursday, August 16, 2007 6:37 AM by Peter's Blog

# My First Book: Programming Microsoft® Office Business Applications

I think it's quite interesting how knowledge is shared nowadays. With so many blogs, online articles,

Tuesday, July 01, 2008 9:03 PM by Erika Ehrli

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker