Pablo Galiano : Deploying a VSIX from a MSI

Subscriptions

<September 2010>
SuMoTuWeThFrSa
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789

News

Subscribe to Pablo Galiano by Email

Post Categories

Deploying a VSIX from a MSI

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

 

Let’s say that we want to deliver our extension with a installer. How we can easily deploy our VSIX?

The VSIXInstaller tool supports the /quiet switch. That means that we can just have a custom action that calls the tool from within our msi:

<Property Id="VSINSTALLDIR">
  <RegistrySearch Id="VSInstallRegistry" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\10.0" Name="InstallDir"  Type="directory" />
</Property>

 

<CustomAction Id="SetVSIXInstaller" Return="check" Execute="immediate" Property="VSIXInstaller" Value="[VSINSTALLDIR]VSIXInstaller.exe" />


<CustomAction Id="DeployVSIX" Property="VSIXInstaller" Execute="deferred" Impersonate="no" ExeCommand="/quiet" Return="asyncWait"/>

 

<InstallExecuteSequence>
  <Custom Action="Set_SetVSIXInstaller" After="ValidateProductID">VSIXInstaller=""</Custom>
  <Custom Action="DeployVSIX" After="MsiPublishAssemblies" />
</InstallExecuteSequence>


Pablo

posted on Tuesday, July 07, 2009 6:21 AM by pga

# re: Deploying a VSIX from a MSI @ Thursday, February 18, 2010 3:54 AM

Can you please show how to do this in VS2010 RC1 released ~12 feb. I added a custom action VSIXInstaller.exe /q package.vsix it executes but nothing is extracted in the extensions folder. I tried all sorts of variants showed in: http://msdn.microsoft.com/en-us/library/ee332502%28VS.100%29.aspx .. but no luck, it works by command line but not from an msi. please help..

/Jimmie

Jimmie

# Finding the location of vsixInstaller.exe programmatically @ Friday, April 09, 2010 5:32 PM

&amp;#160; It should always be here: %vs100comntools%\..\..\IDE\ or through the registry: HKLM\SOFTWARE\Microsoft

Anonymous

# MJyTCdzAVFhng @ Monday, July 12, 2010 2:19 PM

Lfi5Wb <a href="http://dpuzgbnrpoqc.com/">dpuzgbnrpoqc</a>, [url=http://jzqjmmubxlri.com/]jzqjmmubxlri[/url], [link=http://efuchmyjnsde.com/]efuchmyjnsde[/link], http://ylptjbwzdymr.com/

nrydeedokg