aboutsummaryrefslogtreecommitdiff
path: root/src/wixlib/VsixPackage.wxs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixlib/VsixPackage.wxs')
-rw-r--r--src/wixlib/VsixPackage.wxs61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/wixlib/VsixPackage.wxs b/src/wixlib/VsixPackage.wxs
new file mode 100644
index 00000000..8149c55b
--- /dev/null
+++ b/src/wixlib/VsixPackage.wxs
@@ -0,0 +1,61 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
3
4
5<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
6 <Fragment>
7 <Property Id="VS2010_VSIX_INSTALLER_PATH" Secure="yes">
8 <RegistrySearch Id="WixVS2010EnvDir" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\10.0\Setup\VS" Name="EnvironmentDirectory" Type="directory">
9 <FileSearch Id="WixVS2010VsixInstaller" Name="VSIXInstaller.exe" />
10 </RegistrySearch>
11 </Property>
12
13 <Property Id="VS2012_VSIX_INSTALLER_PATH" Secure="yes">
14 <RegistrySearch Id="WixVS2012EnvDir" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\11.0\Setup\VS" Name="EnvironmentDirectory" Type="directory">
15 <FileSearch Id="WixVS2012VsixInstaller" Name="VSIXInstaller.exe" />
16 </RegistrySearch>
17 </Property>
18
19 <Property Id="VS2013_VSIX_INSTALLER_PATH" Secure="yes">
20 <RegistrySearch Id="WixVS2013EnvDir" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\12.0\Setup\VS" Name="EnvironmentDirectory" Type="directory">
21 <FileSearch Id="WixVS2013VsixInstaller" Name="VSIXInstaller.exe" />
22 </RegistrySearch>
23 </Property>
24
25 <!-- VS2015 is the latest VSIX at this point in time, so search for that by default. -->
26 <Property Id="VS2015_VSIX_INSTALLER_PATH" Secure="yes">
27 <RegistrySearch Id="WixVS2015EnvDir" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\14.0\Setup\VS" Name="EnvironmentDirectory" Type="directory">
28 <FileSearch Id="WixVS2015VsixInstaller" Name="VSIXInstaller.exe" />
29 </RegistrySearch>
30 </Property>
31
32 <Property Id="VS_VSIX_INSTALLER_PATH" Secure="yes" />
33
34 <!-- VWD2012 registers differently than the rest of Visual Studio, so search for it in the case VS2012 is missing. -->
35 <Property Id="VWD2012_VSIX_INSTALL_ROOT">
36 <RegistrySearch Id="Vwd2012Search" Root="HKLM" Key="SOFTWARE\Microsoft\VWDExpress\11.0\Setup\VS" Name="ProductDir" Type="raw" />
37 </Property>
38
39 <!-- VWD2013 registers differently than the rest of Visual Studio, so search for it in the case VS2013 is missing. -->
40 <Property Id="VWD2013_VSIX_INSTALL_ROOT">
41 <RegistrySearch Id="Vwd2013Search" Root="HKLM" Key="SOFTWARE\Microsoft\VWDExpress\12.0\Setup\VS" Name="ProductDir" Type="raw" />
42 </Property>
43
44 <!-- VWD2015 registers differently than the rest of Visual Studio, so search for it in the case VS2015 is missing. -->
45 <Property Id="VWD2015_VSIX_INSTALL_ROOT">
46 <RegistrySearch Id="Vwd2015Search" Root="HKLM" Key="SOFTWARE\Microsoft\VWDExpress\14.0\Setup\VS" Name="ProductDir" Type="raw" />
47 </Property>
48
49 <!-- Use the latest VS- or VWD-installed VSIXInstaller.exe. -->
50 <SetProperty Action="SetVS2015Vsix" Id="VS_VSIX_INSTALLER_PATH" Value="[VS2015_VSIX_INSTALLER_PATH]" Sequence="both" After="AppSearch">NOT VS_VSIX_INSTALLER_PATH AND VS2015_VSIX_INSTALLER_PATH</SetProperty>
51 <SetProperty Action="Vwd2015VsixWhenVSAbsent" Id="VS_VSIX_INSTALLER_PATH" Value="[VWD2015_VSIX_INSTALL_ROOT]\Common7\IDE\VSIXInstaller.exe" Sequence="both" After="SetVS2015Vsix">NOT VS_VSIX_INSTALLER_PATH AND VWD2015_VSIX_INSTALL_ROOT</SetProperty>
52
53 <SetProperty Action="SetVS2013Vsix" Id="VS_VSIX_INSTALLER_PATH" Value="[VS2013_VSIX_INSTALLER_PATH]" Sequence="both" After="Vwd2015VsixWhenVSAbsent">NOT VS_VSIX_INSTALLER_PATH AND VS2013_VSIX_INSTALLER_PATH</SetProperty>
54 <SetProperty Action="Vwd2013VsixWhenVSAbsent" Id="VS_VSIX_INSTALLER_PATH" Value="[VWD2013_VSIX_INSTALL_ROOT]\Common7\IDE\VSIXInstaller.exe" Sequence="both" After="SetVS2013Vsix">NOT VS_VSIX_INSTALLER_PATH AND VWD2013_VSIX_INSTALL_ROOT</SetProperty>
55
56 <SetProperty Action="SetVS2012Vsix" Id="VS_VSIX_INSTALLER_PATH" Value="[VS2012_VSIX_INSTALLER_PATH]" Sequence="both" After="Vwd2013VsixWhenVSAbsent">NOT VS_VSIX_INSTALLER_PATH AND VS2012_VSIX_INSTALLER_PATH</SetProperty>
57 <SetProperty Action="Vwd2012VsixWhenVSAbsent" Id="VS_VSIX_INSTALLER_PATH" Value="[VWD2012_VSIX_INSTALL_ROOT]\Common7\IDE\VSIXInstaller.exe" Sequence="both" After="SetVS2012Vsix">NOT VS_VSIX_INSTALLER_PATH AND VWD2012_VSIX_INSTALL_ROOT</SetProperty>
58
59 <SetProperty Action="SetVS2010Vsix" Id="VS_VSIX_INSTALLER_PATH" Value="[VS2010_VSIX_INSTALLER_PATH]" Sequence="both" After="Vwd2012VsixWhenVSAbsent">NOT VS_VSIX_INSTALLER_PATH AND VS2010_VSIX_INSTALLER_PATH</SetProperty>
60 </Fragment>
61</Wix>