Welcome to MSDN Blogs Sign in | Join | Help

Packaging Add-ins and Toolbox Controls for use with Visual Studio Content Installer

The Visual Studio Content Installer allows users to install community content such as add-ins, toolbox controls etc. The Visual Studio Content Installer uses a Visual Studio Installer (VSI) file which contains the content to install. Each VSI file contains a .vscontent file and the content files. The .vscontent file describes the content to install.

Creating a VSI that will install add-ins is very easy as indicated by the following steps:
1. Create the add-in(s)/toolbox controls you want to install.
2. Create a folder such as MyContent and copy all the .addin(s) and .dll(s) files for your content to this folder. This folder is optional although it helps bring all the content you want to a single place.
3. Create a .vscontent files such as the following in the folder:

<?xml version="1.0" encoding="utf-8" ?>
<VSContent xmlns="
http://schemas.microsoft.com/developer/vscontent/2005">
  <Content>
    <FileName>MyAddin.dll</FileName>
    <FileName>MyAddin.addin</FileName>
    <DisplayName>My Addin</DisplayName>
    <Description>This is my addin</Description>
    <FileContentType>Addin</FileContentType>
    <ContentVersion>1.0</ContentVersion>
  </Content>
  <!-- If you have more add-ins than you need to create multiple Content tags, one for each add-in -->
  <Content>
    <FileName>MyToolboxControlLibrary.dll</FileName>
    <DisplayName>My Toolbox Controls</DisplayName>
    <Description>These are my toolbox controls</Description>
    <FileContentType>Toolbox Control</FileContentType>
    <ContentVersion>1.0</ContentVersion>
  </Content>
  <!-- If you have more controls than you need to create multiple Content tags, one for each control -->
</VSContent>

4. Now create a zip file that contains all the files in the folder. Please note that the zip file should not contain the folder information as that is not needed. E.g. the files in the zip file will be something like the following without the path information:

MyAddin.addin
MyAddin.dll
MyToolboxControlLibrary.dll
MyContent.vscontent

5. Rename the zip file to be .vsi.

That's it. You have a VSI file that will install your add-in using the Visual Studio Content Installer.

 

Published Monday, October 10, 2005 6:03 AM by ChetanC

Comments

Monday, October 31, 2005 3:27 PM by jbabco

# re: Packaging Add-ins and Toolbox Controls for use with Visual Studio Content Installer

Did something change with the latest RTM VS.NET release? Now i get "Command Tools.InstallCommunityControls is not valid." when trying to install the .vsi files with Visual Studio Content Installer.
Wednesday, November 16, 2005 1:46 PM by ChetanC

# re: Packaging Add-ins and Toolbox Controls for use with Visual Studio Content Installer

Have you installed SQL Server Management Studio Express CTP? This may be causing this to fail. I have posted a workaround: http://blogs.msdn.com/chetanc/archive/2005/11/16/493495.aspx
Wednesday, January 24, 2007 11:25 AM by mjf_29

# re: Packaging Add-ins and Toolbox Controls for use with Visual Studio Content Installer

Hi Chetan,

If I use the Visual Studio Content Installer to install my controls using the VSI file that I created, it adds them to the "My Controls" tab by default. I want to add them to my custom Tab. How do I do so?

I found out that the controls appear on the "My Controls" tab of the Toolbox by default from the link http://msdn2.microsoft.com/en-us/library/aa992029(vs.80).aspx

Anonymous comments are disabled
 
Page view tracker