Pablo Galiano : VSIX deployment

Subscriptions

<September 2010>
SuMoTuWeThFrSa
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789

News

Subscribe to Pablo Galiano by Email

Post Categories

VSIX deployment

***Disclaimer: This information applies to Visual Studio 2010 Beta 1 only.***

 

Quan already wrote a great post that explain what VSIX is. In this post I will covered the details of VSIX deployment.

 

When we double click a VSIX file from windows explorer the following dialog is shown:

 

image

 

This is because the .vsix extension is registered within the windows shell. As part of that registration there is also information about which program to launch when we double click a VSIX file. And that executable is the VSIXInstaller and it is located under %VS10_Install_Dir%\Common7\IDE\VSIXInstaller.exe

The VSIXInstaller tool uses the Microsoft.VisualStudio.ExtensionManager.IVsExtensionManager service to install the extension, which perform the following steps:

  • It unzips the content of the VSIX file under %LocalAppData%\Microsoft\VisualStudio\10.0\Extensions\%Extension_Author%\%Extension_Name%\%Extension_Version%.
  • It adds registry information under HKCU\Software\Microsoft\VisualStudio\10.0\ExtensionManager\EnabledExtensions to enable the extension in Visual Studio. 

Depending on the extension content type a Visual Studio restart will be needed. This is the case for MEFComponent and VSPackage content types.

 

Stay tuned,

Pablo

posted on Friday, July 03, 2009 8:36 AM by pga

What do you think?

(required) 
required 
optional
required