Security and Deployment Lab

Version: 3.0.0

Description

Now with both C# and VB code samples! In this lab, you will use the VSTO Runtime 2010 to deploy several add-ins. The deployment scenarios used will represent real world scenarios that require secure deployment of multiple add-ins via SharePoint.

Overview

In this lab exercise, you will use the VSTO Runtime 2010 to deploy several add-ins. The deployment scenarios used will represent real world scenarios that require secure deployment of multiple add-ins via SharePoint.

Objectives

In this lab you will:

  • Learn how to deploy Office Add-ins using ClickOnce Deployment
  • Learn how to use post deployment actions
  • Learn to create deployments containing multiple addins
  • Learn how to create a WSP file to deploy an Office Document template

System Requirements

This lab assumes that you have SharePoint Server installed in a test environment. For guidance on how to setup SharePoint Server see https://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx. Note that any URL referred to in this lab must be adjusted for use with your local setup. You must have the following items to complete this lab:

  • Microsoft® Windows® Vista SP1 or Microsoft® Windows Server 2008 (64-bit)
  • Microsoft® SharePoint Server 2010 (64-bit)
  • Microsoft® Office Professional Plus 2010 (32-bit or 64-bit)
  • Microsoft® Visual Studio 2010

Setup

You must perform the following steps to prepare your computer for this lab. This consists primarily of creating a SharePoint site collection at https://intranet.contoso.com/sites/Deployment and installing the code snippets for this lab.

  1. Run the command file Setup.bat located at %Office2010DeveloperTrainingKitPath%\Labs\Deployment\Source\.

Exercises

This Hands-On Lab is comprised of the following exercises:

  1. Trust and Deployment with Office Add-ins
  2. Post Deployment Actions
  3. Multiple Add-in Deployments
  4. Deploying Document Templates in a WSP

Estimated time to complete this lab: 60 minutes.

Starting Materials

This Hands-On Lab includes the following starting materials.

  • Visual Studio solutions. The lab provides the following Visual Studio solutions that you can use as starting point for the exercises. Lab instructions will reference the Training Kit location after installation as %Office2010DeveloperTrainingKitPath%.
    • %Office2010DeveloperTrainingKitPath%\Labs\Deployment\Source\[language]\Starter\ClickOnceDeployment\ClickOnceDeployment.sln: Use the existing addins to perform upgrades, create post deployment actions, and multi add-in deployments.
    • %Office2010DeveloperTrainingKitPath%\Labs\Deployment\Source\[language]\Starter\SolutionDeployment\SolutionDeployment.sln: Deploy the existing add-in using a SharePoint application packaged as a WSP. 
    Note:
    Inside the lab’s Source folder, you will find a Solution folder containing an end solution with the completed lab exercise.