| 1 | <!-- 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. --> |
| 2 | |
| 3 | |
| 4 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
| 5 | <Fragment> |
| 6 | <Property Id="VS2012_EXTENSIONS_DIR" Secure="yes"> |
| 7 | <RegistrySearch Id="VS2012DevEnvForExtensionsSearch" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\11.0\Setup\VS" Name="EnvironmentDirectory" Type="raw"> |
| 8 | <DirectorySearch Id="VS2012ExtensionsPathSearch" Path="Extensions" Depth="1" /> |
| 9 | </RegistrySearch> |
| 10 | </Property> |
| 11 | </Fragment> |
| 12 | |
| 13 | <Fragment> |
| 14 | <Property Id="VS2012_PROJECTTEMPLATES_DIR" Secure="yes"> |
| 15 | <RegistrySearch Id="VS2012DevEnvForProjectTemplatesSearch" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\11.0\Setup\VS" Name="EnvironmentDirectory" Type="raw"> |
| 16 | <DirectorySearch Id="VS2012ProjectTemplatesPathSearch" Path="ProjectTemplates" Depth="1" /> |
| 17 | </RegistrySearch> |
| 18 | </Property> |
| 19 | </Fragment> |
| 20 | |
| 21 | <Fragment> |
| 22 | <Property Id="VS2012_SCHEMAS_DIR" Secure="yes"> |
| 23 | <RegistrySearch Id="VS2012ProductPathSearch" Root="HKLM" Key="Software\Microsoft\VisualStudio\SxS\VS7" Name="11.0" Type="raw"> |
| 24 | <DirectorySearch Id="VS2012XmlPathSearch" Path="Xml" Depth="1"> |
| 25 | <DirectorySearch Id="VS2012XmlSchemasPathSearch" Path="Schemas" Depth="1" /> |
| 26 | </DirectorySearch> |
| 27 | </RegistrySearch> |
| 28 | </Property> |
| 29 | </Fragment> |
| 30 | |
| 31 | <Fragment> |
| 32 | <Property Id="VS2012_ITEMTEMPLATES_DIR" Secure="yes"> |
| 33 | <RegistrySearch Id="VS2012DevEnvForItemTemplatesSearch" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\11.0\Setup\VS" Name="EnvironmentDirectory" Type="raw"> |
| 34 | <DirectorySearch Id="VS2012ItemTemplatesPathSearch" Path="ItemTemplates" Depth="1" /> |
| 35 | </RegistrySearch> |
| 36 | </Property> |
| 37 | </Fragment> |
| 38 | |
| 39 | <Fragment> |
| 40 | <Property Id="VS2012_BOOTSTRAPPER_PACKAGE_FOLDER" Secure="yes"> |
| 41 | <RegistrySearch Id="SearchForVs2012BootstrapperPackageFolder" Root="HKLM" Key="Software\Microsoft\GenericBootstrapper\4.0" Name="Path" Type="raw" /> |
| 42 | </Property> |
| 43 | </Fragment> |
| 44 | |
| 45 | <Fragment> |
| 46 | <Property Id="VS2012_ROOT_FOLDER" Secure="yes"> |
| 47 | <RegistrySearch Id="SearchForVS2012RootPath" Root="HKLM" Key="Software\Microsoft\VisualStudio\SxS\VS7" Name="11.0" Type="raw" /> |
| 48 | </Property> |
| 49 | </Fragment> |
| 50 | |
| 51 | <Fragment> |
| 52 | <Property Id="VS2012DEVENV" Secure="yes"> |
| 53 | <RegistrySearch Id="VS2012DevEnvSearch" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\11.0\Setup\VS" Name="EnvironmentPath" Type="raw" /> |
| 54 | </Property> |
| 55 | </Fragment> |
| 56 | |
| 57 | <Fragment> |
| 58 | <CustomAction Id="VS2012Setup" Property="VS2012DEVENV" ExeCommand="/setup" Execute="deferred" Return="ignore" Impersonate="no" /> |
| 59 | <PropertyRef Id="VS2012DEVENV" /> |
| 60 | |
| 61 | <InstallExecuteSequence> |
| 62 | <Custom Action="VS2012Setup" Before="InstallFinalize" Overridable="yes" Condition="VS2012DEVENV" /> |
| 63 | </InstallExecuteSequence> |
| 64 | </Fragment> |
| 65 | |
| 66 | <Fragment> |
| 67 | <CustomAction Id="VS2012InstallVSTemplates" Property="VS2012DEVENV" ExeCommand="/InstallVSTemplates" Execute="deferred" Return="ignore" Impersonate="no" /> |
| 68 | <PropertyRef Id="VS2012DEVENV" /> |
| 69 | |
| 70 | <InstallExecuteSequence> |
| 71 | <Custom Action="VS2012InstallVSTemplates" Before="InstallFinalize" Overridable="yes" Condition="VS2012DEVENV" /> |
| 72 | </InstallExecuteSequence> |
| 73 | </Fragment> |
| 74 | |
| 75 | <!-- Indicates whether the Visual C# project system is installed as a part of --> |
| 76 | <!-- Visual Studio 2012 standard or higher. If this property is set, that --> |
| 77 | <!-- means Visual Studio 2012 standard or higher is installed and the Visual --> |
| 78 | <!-- C# language tools were installed as a part of VS 2012 setup. --> |
| 79 | <Fragment> |
| 80 | <Property Id="VS2012_IDE_VCSHARP_PROJECTSYSTEM_INSTALLED" Secure="yes"> |
| 81 | <RegistrySearch Id="SearchForVCS2012ProjectSystemUnderVSSetup" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\11.0\Setup\VC#" Name="ProductDir" Type="raw" /> |
| 82 | </Property> |
| 83 | </Fragment> |
| 84 | |
| 85 | <!-- Indicates whether the Visual Basic project system is installed as a part of --> |
| 86 | <!-- Visual Studio 2012 standard or higher. If this property is set, that --> |
| 87 | <!-- means Visual Studio 2012 standard or higher is installed and the Visual --> |
| 88 | <!-- Basic language tools were installed as a part of VS 2012 setup. --> |
| 89 | <Fragment> |
| 90 | <Property Id="VS2012_IDE_VB_PROJECTSYSTEM_INSTALLED" Secure="yes"> |
| 91 | <RegistrySearch Id="SearchForVB2012ProjectSystemUnderVSSetup" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\11.0\Setup\VB" Name="ProductDir" Type="raw" /> |
| 92 | </Property> |
| 93 | </Fragment> |
| 94 | |
| 95 | <!-- Indicates whether the Visual Web Developer 2012 Express IDE component is installed. --> |
| 96 | <!-- If this property is set, that means Visual Web Developer 2012 Express Edition is --> |
| 97 | <!-- installed on the system. --> |
| 98 | <Fragment> |
| 99 | <Property Id="VWD2012EXPRESS_IDE" Secure="yes"> |
| 100 | <ComponentSearch Id="SearchForVwdExpressIde2012Component" Guid="92A0CBA0-BF39-422D-87FA-AB64564CD136" Type="file"> |
| 101 | <FileSearch Id="VwdExpressIde2012" Name="vwdexpress.exe" /> |
| 102 | </ComponentSearch> |
| 103 | </Property> |
| 104 | </Fragment> |
| 105 | <!-- Custom action definition to run vwdexpress.exe /setup --> |
| 106 | <Fragment> |
| 107 | <CustomAction Id="VWD2012Setup" Property="VWD2012EXPRESS_IDE" ExeCommand="/setup" Execute="deferred" Return="ignore" Impersonate="no" /> |
| 108 | <PropertyRef Id="VWD2012EXPRESS_IDE" /> |
| 109 | <InstallExecuteSequence> |
| 110 | <Custom Action="VWD2012Setup" Before="InstallFinalize" Overridable="yes" Condition="VWD2012EXPRESS_IDE" /> |
| 111 | </InstallExecuteSequence> |
| 112 | </Fragment> |
| 113 | <!-- Custom action definition to run vwdexpress.exe /InstallVSTemplates --> |
| 114 | <Fragment> |
| 115 | <CustomAction Id="VWD2012InstallVSTemplates" Property="VWD2012EXPRESS_IDE" ExeCommand="/InstallVSTemplates" Execute="deferred" Return="ignore" Impersonate="no" /> |
| 116 | <PropertyRef Id="VWD2012EXPRESS_IDE" /> |
| 117 | <InstallExecuteSequence> |
| 118 | <Custom Action="VWD2012InstallVSTemplates" Before="InstallFinalize" Overridable="yes" Condition="VWD2012EXPRESS_IDE" /> |
| 119 | </InstallExecuteSequence> |
| 120 | </Fragment> |
| 121 | |
| 122 | <!-- Indicates whether the Visual Studio 2012 Express IDE for Phone component is installed. --> |
| 123 | <Fragment> |
| 124 | <Property Id="VPD2012EXPRESS_IDE" Secure="yes"> |
| 125 | <RegistrySearch Id="VPD2012ExpressForPhoneEnvSearch" Root="HKLM" Key="SOFTWARE\Microsoft\VPDExpress\11.0\Setup\VS" Name="EnvironmentPath" Type="raw" /> |
| 126 | </Property> |
| 127 | </Fragment> |
| 128 | <!-- Custom action definition to run VPDexpress.exe /setup --> |
| 129 | <Fragment> |
| 130 | <CustomAction Id="VPD2012Setup" Property="VPD2012EXPRESS_IDE" ExeCommand="/setup" Execute="deferred" Return="ignore" Impersonate="no" /> |
| 131 | <PropertyRef Id="VPD2012EXPRESS_IDE" /> |
| 132 | <InstallExecuteSequence> |
| 133 | <Custom Action="VPD2012Setup" Before="InstallFinalize" Overridable="yes" Condition="VPD2012EXPRESS_IDE" /> |
| 134 | </InstallExecuteSequence> |
| 135 | </Fragment> |
| 136 | <!-- Custom action definition to run VPDexpress.exe /InstallVSTemplates --> |
| 137 | <Fragment> |
| 138 | <CustomAction Id="VPD2012InstallVSTemplates" Property="VPD2012EXPRESS_IDE" ExeCommand="/InstallVSTemplates" Execute="deferred" Return="ignore" Impersonate="no" /> |
| 139 | <PropertyRef Id="VPD2012EXPRESS_IDE" /> |
| 140 | <InstallExecuteSequence> |
| 141 | <Custom Action="VPD2012InstallVSTemplates" Before="InstallFinalize" Overridable="yes" Condition="VPD2012EXPRESS_IDE" /> |
| 142 | </InstallExecuteSequence> |
| 143 | </Fragment> |
| 144 | |
| 145 | <!-- Indicates whether the Visual Web Developer project system is installed as a part of --> |
| 146 | <!-- Visual Studio 2012 standard or higher. If this property is set, that --> |
| 147 | <!-- means Visual Studio 2012 standard or higher is installed and the Visual --> |
| 148 | <!-- Web Developer language tools were installed as a part of VS 2012 setup. --> |
| 149 | <Fragment> |
| 150 | <Property Id="VS2012_IDE_VWD_PROJECTSYSTEM_INSTALLED" Secure="yes"> |
| 151 | <ComponentSearch Id="SearchForVWD2012ProjectSystemUnderVSSetup" Guid="03E73DF8-BED3-44BB-BE2E-BAC10FAE723E" /> |
| 152 | <ComponentSearch Id="SearchForVWD2012ProjectSystemUnderVWDSetup" Guid="3D7D4A9F-E3D7-4F13-9907-AF4F3CD75D33" Type="directory" /> |
| 153 | </Property> |
| 154 | </Fragment> |
| 155 | |
| 156 | <!-- Indicates whether the Visual C++ project system is installed as a part of --> |
| 157 | <!-- Visual Studio 2012 standard or higher. If this property is set, that --> |
| 158 | <!-- means Visual Studio 2012 standard or higher is installed and the Visual --> |
| 159 | <!-- C++ language tools were installed as a part of VS 2012 setup. --> |
| 160 | <Fragment> |
| 161 | <Property Id="VS2012_IDE_VC_PROJECTSYSTEM_INSTALLED" Secure="yes"> |
| 162 | <RegistrySearch Id="SearchForVC2012ProjectSystemUnderVSSetup" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\11.0\Setup\VC" Name="ProductDir" Type="raw" /> |
| 163 | </Property> |
| 164 | </Fragment> |
| 165 | |
| 166 | <!-- Indicates whether the Visual Studio 2012 Team Test project system is installed --> |
| 167 | <Fragment> |
| 168 | <Property Id="VS2012_IDE_VSTS_TESTSYSTEM_INSTALLED" Secure="yes"> |
| 169 | <RegistrySearch Id="SearchForVSTS2012TestSystemUnderVSSetup" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\11.0\Projects\{3AC096D0-A1C2-E12C-1390-A8335801FDAB}" Name="Package" Type="raw" /> |
| 170 | </Property> |
| 171 | </Fragment> |
| 172 | |
| 173 | <!-- Indicates whether the Visual Studio 2012 Database project system is installed --> |
| 174 | <Fragment> |
| 175 | <Property Id="VS2012_IDE_DB_PROJECTSYSTEM_INSTALLED" Secure="yes"> |
| 176 | <ComponentSearch Id="SearchForVS2012DBSystemUnderVSSetup" Guid="E781FFA7-55F5-4E8C-9275-7B7EF035B13B" /> |
| 177 | </Property> |
| 178 | </Fragment> |
| 179 | |
| 180 | <!-- Indicates whether the WiX project system is installed for VS2012 --> |
| 181 | <Fragment> |
| 182 | <Property Id="VS2012_IDE_WIX_PROJECTSYSTEM_INSTALLED" Secure="yes"> |
| 183 | <!-- Component search for the .pkgdef file for VS2012 --> |
| 184 | <ComponentSearch Id="SearchForVS2012WixSystemUnderVSSetup" Guid="55489E7A-7DCA-5228-975E-39C51BE332D9" /> |
| 185 | </Property> |
| 186 | </Fragment> |
| 187 | |
| 188 | <!-- Indicates whether the Visual Studio Modeling project system is installed --> |
| 189 | <Fragment> |
| 190 | <Property Id="VS2012_IDE_MODELING_PROJECTSYSTEM_INSTALLED" Secure="yes"> |
| 191 | <RegistrySearch Id="SearchForVSTS2012ModelingSystemUnderVSSetup" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\11.0\Projects\{f088123c-0e9e-452a-89e6-6ba2f21d5cac}" Name="Package" Type="raw" /> |
| 192 | </Property> |
| 193 | </Fragment> |
| 194 | |
| 195 | <!-- Indicates whether the Visual Studio F# project system is installed --> |
| 196 | <Fragment> |
| 197 | <Property Id="VS2012_IDE_FSHARP_PROJECTSYSTEM_INSTALLED" Secure="yes"> |
| 198 | <RegistrySearch Id="SearchForVSTS2012FSharpSystemUnderVSSetup" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\11.0\Setup\F#" Name="ProductDir" Type="raw" /> |
| 199 | </Property> |
| 200 | </Fragment> |
| 201 | |
| 202 | <!-- Indicates whether the Visual Studio Express for Windows IDE component is installed. --> |
| 203 | <!-- If this property is set, that means Visual Studio Express for Windows is installed --> |
| 204 | <!-- on the system. --> |
| 205 | <Fragment> |
| 206 | <Property Id="VS2012WINEXPRESS_IDE" Secure="yes"> |
| 207 | <ComponentSearch Id="SearchForVS2012WinExpressIdeComponent" Guid="A7A5FD99-1DFE-4AA8-A563-4DF5E0DD89E1" Type="file"> |
| 208 | <FileSearch Id="VS2012WinExpressIde" Name="vswinexpress.exe" /> |
| 209 | </ComponentSearch> |
| 210 | </Property> |
| 211 | </Fragment> |
| 212 | <!-- Custom action definition to run vswinexpress.exe /setup --> |
| 213 | <Fragment> |
| 214 | <CustomAction Id="VS2012WinExpressSetup" Property="VS2012WINEXPRESS_IDE" ExeCommand="/setup" Execute="deferred" Return="ignore" Impersonate="no" /> |
| 215 | <PropertyRef Id="VS2012WINEXPRESS_IDE" /> |
| 216 | <InstallExecuteSequence> |
| 217 | <Custom Action="VS2012WinExpressSetup" Before="InstallFinalize" Overridable="yes" Condition="VS2012WINEXPRESS_IDE" /> |
| 218 | </InstallExecuteSequence> |
| 219 | </Fragment> |
| 220 | <!-- Custom action definition to run vswinexpress.exe /InstallVSTemplates --> |
| 221 | <Fragment> |
| 222 | <CustomAction Id="VS2012WinExpressInstallVSTemplates" Property="VS2012WINEXPRESS_IDE" ExeCommand="/InstallVSTemplates" Execute="deferred" Return="ignore" Impersonate="no" /> |
| 223 | <PropertyRef Id="VS2012WINEXPRESS_IDE" /> |
| 224 | <InstallExecuteSequence> |
| 225 | <Custom Action="VS2012WinExpressInstallVSTemplates" Before="InstallFinalize" Overridable="yes" Condition="VS2012WINEXPRESS_IDE" /> |
| 226 | </InstallExecuteSequence> |
| 227 | </Fragment> |
| 228 | |
| 229 | <!-- Indicates whether the Visual Studio Express for Windows Desktop IDE component is installed. --> |
| 230 | <!-- If this property is set, that means Visual Studio Express for Windows Desktop is installed --> |
| 231 | <!-- on the system. --> |
| 232 | <Fragment> |
| 233 | <Property Id="VS2012WDEXPRESS_IDE" Secure="yes"> |
| 234 | <ComponentSearch Id="SearchForVS2012WDExpressIdeComponent" Guid="{55C6B9D6-A824-4AFC-8D08-20E581B6F42C}" Type="file"> |
| 235 | <FileSearch Id="VS2012WDExpressIde" Name="WDExpress.exe" /> |
| 236 | </ComponentSearch> |
| 237 | </Property> |
| 238 | </Fragment> |
| 239 | <!-- Custom action definition to run WDExpress.exe /setup --> |
| 240 | <Fragment> |
| 241 | <CustomAction Id="VS2012WDExpressSetup" Property="VS2012WDEXPRESS_IDE" ExeCommand="/setup" Execute="deferred" Return="ignore" Impersonate="no" /> |
| 242 | <PropertyRef Id="VS2012WDEXPRESS_IDE" /> |
| 243 | <InstallExecuteSequence> |
| 244 | <Custom Action="VS2012WDExpressSetup" Before="InstallFinalize" Overridable="yes" Condition="VS2012WDEXPRESS_IDE" /> |
| 245 | </InstallExecuteSequence> |
| 246 | </Fragment> |
| 247 | <!-- Custom action definition to run WDExpress.exe /InstallVSTemplates --> |
| 248 | <Fragment> |
| 249 | <CustomAction Id="VS2012WDExpressInstallVSTemplates" Property="VS2012WDEXPRESS_IDE" ExeCommand="/InstallVSTemplates" Execute="deferred" Return="ignore" Impersonate="no" /> |
| 250 | <PropertyRef Id="VS2012WDEXPRESS_IDE" /> |
| 251 | <InstallExecuteSequence> |
| 252 | <Custom Action="VS2012WDExpressInstallVSTemplates" Before="InstallFinalize" Overridable="yes" Condition="VS2012WDEXPRESS_IDE" /> |
| 253 | </InstallExecuteSequence> |
| 254 | </Fragment> |
| 255 | </Wix> |