| 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" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"> |
| 5 | |
| 6 | <!-- |
| 7 | .NET Framework installation state properties |
| 8 | Official documentation can be found at the following location: |
| 9 | .NET Framework 4.5 - http://msdn.microsoft.com/en-us/library/5a4x27ek.aspx, http://msdn.microsoft.com/en-us/library/ee942965(v=VS.110).aspx |
| 10 | --> |
| 11 | |
| 12 | <?define NetFx45MinRelease = 378389?> |
| 13 | |
| 14 | <Fragment> |
| 15 | <PropertyRef Id="WIXNETFX4RELEASEINSTALLED" /> |
| 16 | <Property Id="WIX_IS_NETFRAMEWORK_45_OR_LATER_INSTALLED" Secure="yes" /> |
| 17 | <SetProperty Id="WIX_IS_NETFRAMEWORK_45_OR_LATER_INSTALLED" Value="1" After="AppSearch" Condition="WIXNETFX4RELEASEINSTALLED >= "#$(var.NetFx45MinRelease)"" /> |
| 18 | </Fragment> |
| 19 | |
| 20 | <Fragment> |
| 21 | <util:RegistrySearch Id="NETFRAMEWORK45" Variable="NETFRAMEWORK45" Root="HKLM" Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" Value="Release" Result="value" /> |
| 22 | </Fragment> |
| 23 | |
| 24 | <!-- set to Release number of the .NET Framework 4.5 if installed (not set otherwise) --> |
| 25 | <Fragment> |
| 26 | <Property Id="NETFRAMEWORK45" Secure="yes"> |
| 27 | <RegistrySearch Id="NetFramework45" Root="HKLM" Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" Name="Release" Type="raw" /> |
| 28 | </Property> |
| 29 | </Fragment> |
| 30 | |
| 31 | <!-- set to Release number of the .NET Framework 4.5 Arabic language pack if installed (not set otherwise) --> |
| 32 | <Fragment> |
| 33 | <Property Id="NETFRAMEWORK45_AR_SA_LANGPACK" Secure="yes"> |
| 34 | <RegistrySearch Id="NETFRAMEWORK45ArSaLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1025" Name="Release" Type="raw" /> |
| 35 | </Property> |
| 36 | </Fragment> |
| 37 | |
| 38 | <!-- set to Release number of the .NET Framework 4.5 Chinese (Simplified) language pack if installed (not set otherwise) --> |
| 39 | <Fragment> |
| 40 | <Property Id="NETFRAMEWORK45_ZH_CN_LANGPACK" Secure="yes"> |
| 41 | <RegistrySearch Id="NETFRAMEWORK45ZhCnLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\2052" Name="Release" Type="raw" /> |
| 42 | </Property> |
| 43 | </Fragment> |
| 44 | |
| 45 | <!-- set to Release number of the .NET Framework 4.5 Chinese (Traditional) language pack if installed (not set otherwise) --> |
| 46 | <Fragment> |
| 47 | <Property Id="NETFRAMEWORK45_ZH_TW_LANGPACK" Secure="yes"> |
| 48 | <RegistrySearch Id="NETFRAMEWORK45ZhTwLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1028" Name="Release" Type="raw" /> |
| 49 | </Property> |
| 50 | </Fragment> |
| 51 | |
| 52 | <!-- set to Release number of the .NET Framework 4.5 Czech language pack if installed (not set otherwise) --> |
| 53 | <Fragment> |
| 54 | <Property Id="NETFRAMEWORK45_CS_CZ_LANGPACK" Secure="yes"> |
| 55 | <RegistrySearch Id="NETFRAMEWORK45CsCzLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1029" Name="Release" Type="raw" /> |
| 56 | </Property> |
| 57 | </Fragment> |
| 58 | |
| 59 | <!-- set to Release number of the .NET Framework 4.5 Danish language pack if installed (not set otherwise) --> |
| 60 | <Fragment> |
| 61 | <Property Id="NETFRAMEWORK45_DA_DK_LANGPACK" Secure="yes"> |
| 62 | <RegistrySearch Id="NETFRAMEWORK45DaDkLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1030" Name="Release" Type="raw" /> |
| 63 | </Property> |
| 64 | </Fragment> |
| 65 | |
| 66 | <!-- set to Release number of the .NET Framework 4.5 Dutch language pack if installed (not set otherwise) --> |
| 67 | <Fragment> |
| 68 | <Property Id="NETFRAMEWORK45_NL_NL_LANGPACK" Secure="yes"> |
| 69 | <RegistrySearch Id="NETFRAMEWORK45NlNlLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1043" Name="Release" Type="raw" /> |
| 70 | </Property> |
| 71 | </Fragment> |
| 72 | |
| 73 | <!-- set to Release number of the .NET Framework 4.5 Finnish language pack if installed (not set otherwise) --> |
| 74 | <Fragment> |
| 75 | <Property Id="NETFRAMEWORK45_FI_FI_LANGPACK" Secure="yes"> |
| 76 | <RegistrySearch Id="NETFRAMEWORK45FiFiLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1035" Name="Release" Type="raw" /> |
| 77 | </Property> |
| 78 | </Fragment> |
| 79 | |
| 80 | <!-- set to Release number of the .NET Framework 4.5 French language pack if installed (not set otherwise) --> |
| 81 | <Fragment> |
| 82 | <Property Id="NETFRAMEWORK45_FR_FR_LANGPACK" Secure="yes"> |
| 83 | <RegistrySearch Id="NETFRAMEWORK45FrFrLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1036" Name="Release" Type="raw" /> |
| 84 | </Property> |
| 85 | </Fragment> |
| 86 | |
| 87 | <!-- set to Release number of the .NET Framework 4.5 German language pack if installed (not set otherwise) --> |
| 88 | <Fragment> |
| 89 | <Property Id="NETFRAMEWORK45_DE_DE_LANGPACK" Secure="yes"> |
| 90 | <RegistrySearch Id="NETFRAMEWORK45DeDeLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1031" Name="Release" Type="raw" /> |
| 91 | </Property> |
| 92 | </Fragment> |
| 93 | |
| 94 | <!-- set to Release number of the .NET Framework 4.5 Greek language pack if installed (not set otherwise) --> |
| 95 | <Fragment> |
| 96 | <Property Id="NETFRAMEWORK45_EL_GR_LANGPACK" Secure="yes"> |
| 97 | <RegistrySearch Id="NETFRAMEWORK45ElGrLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1032" Name="Release" Type="raw" /> |
| 98 | </Property> |
| 99 | </Fragment> |
| 100 | |
| 101 | <!-- set to Release number of the .NET Framework 4.5 Hebrew language pack if installed (not set otherwise) --> |
| 102 | <Fragment> |
| 103 | <Property Id="NETFRAMEWORK45_HE_IL_LANGPACK" Secure="yes"> |
| 104 | <RegistrySearch Id="NETFRAMEWORK45HeIlLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1037" Name="Release" Type="raw" /> |
| 105 | </Property> |
| 106 | </Fragment> |
| 107 | |
| 108 | <!-- set to Release number of the .NET Framework 4.5 Hungarian language pack if installed (not set otherwise) --> |
| 109 | <Fragment> |
| 110 | <Property Id="NETFRAMEWORK45_HU_HU_LANGPACK" Secure="yes"> |
| 111 | <RegistrySearch Id="NETFRAMEWORK45HuHuLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1038" Name="Release" Type="raw" /> |
| 112 | </Property> |
| 113 | </Fragment> |
| 114 | |
| 115 | <!-- set to Release number of the .NET Framework 4.5 Italian language pack if installed (not set otherwise) --> |
| 116 | <Fragment> |
| 117 | <Property Id="NETFRAMEWORK45_IT_IT_LANGPACK" Secure="yes"> |
| 118 | <RegistrySearch Id="NETFRAMEWORK45ItItLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1040" Name="Release" Type="raw" /> |
| 119 | </Property> |
| 120 | </Fragment> |
| 121 | |
| 122 | <!-- set to Release number of the .NET Framework 4.5 Japanese language pack if installed (not set otherwise) --> |
| 123 | <Fragment> |
| 124 | <Property Id="NETFRAMEWORK45_JA_JP_LANGPACK" Secure="yes"> |
| 125 | <RegistrySearch Id="NETFRAMEWORK45JaJpLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1041" Name="Release" Type="raw" /> |
| 126 | </Property> |
| 127 | </Fragment> |
| 128 | |
| 129 | <!-- set to Release number of the .NET Framework 4.5 Korean language pack if installed (not set otherwise) --> |
| 130 | <Fragment> |
| 131 | <Property Id="NETFRAMEWORK45_KO_KR_LANGPACK" Secure="yes"> |
| 132 | <RegistrySearch Id="NETFRAMEWORK45KoKrLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1042" Name="Release" Type="raw" /> |
| 133 | </Property> |
| 134 | </Fragment> |
| 135 | |
| 136 | <!-- set to Release number of the .NET Framework 4.5 Norwegian language pack if installed (not set otherwise) --> |
| 137 | <Fragment> |
| 138 | <Property Id="NETFRAMEWORK45_NB_NO_LANGPACK" Secure="yes"> |
| 139 | <RegistrySearch Id="NETFRAMEWORK45NbNoLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1044" Name="Release" Type="raw" /> |
| 140 | </Property> |
| 141 | </Fragment> |
| 142 | |
| 143 | <!-- set to Release number of the .NET Framework 4.5 Polish language pack if installed (not set otherwise) --> |
| 144 | <Fragment> |
| 145 | <Property Id="NETFRAMEWORK45_PL_PL_LANGPACK" Secure="yes"> |
| 146 | <RegistrySearch Id="NETFRAMEWORK45PlPlLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1045" Name="Release" Type="raw" /> |
| 147 | </Property> |
| 148 | </Fragment> |
| 149 | |
| 150 | <!-- set to Release number of the .NET Framework 4.5 Portuguese (Brazil) language pack if installed (not set otherwise) --> |
| 151 | <Fragment> |
| 152 | <Property Id="NETFRAMEWORK45_PT_BR_LANGPACK" Secure="yes"> |
| 153 | <RegistrySearch Id="NETFRAMEWORK45PtBrLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1046" Name="Release" Type="raw" /> |
| 154 | </Property> |
| 155 | </Fragment> |
| 156 | |
| 157 | <!-- set to Release number of the .NET Framework 4.5 Portuguese (Portugal) language pack if installed (not set otherwise) --> |
| 158 | <Fragment> |
| 159 | <Property Id="NETFRAMEWORK45_PT_PT_LANGPACK" Secure="yes"> |
| 160 | <RegistrySearch Id="NETFRAMEWORK45PtPtLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\2070" Name="Release" Type="raw" /> |
| 161 | </Property> |
| 162 | </Fragment> |
| 163 | |
| 164 | <!-- set to Release number of the .NET Framework 4.5 Russian language pack if installed (not set otherwise) --> |
| 165 | <Fragment> |
| 166 | <Property Id="NETFRAMEWORK45_RU_RU_LANGPACK" Secure="yes"> |
| 167 | <RegistrySearch Id="NETFRAMEWORK45RuRuLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1049" Name="Release" Type="raw" /> |
| 168 | </Property> |
| 169 | </Fragment> |
| 170 | |
| 171 | <!-- set to Release number of the .NET Framework 4.5 Spanish language pack if installed (not set otherwise) --> |
| 172 | <Fragment> |
| 173 | <Property Id="NETFRAMEWORK45_ES_ES_LANGPACK" Secure="yes"> |
| 174 | <RegistrySearch Id="NETFRAMEWORK45EsEsLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\3082" Name="Release" Type="raw" /> |
| 175 | </Property> |
| 176 | </Fragment> |
| 177 | |
| 178 | <!-- set to Release number of the .NET Framework 4.5 Swedish language pack if installed (not set otherwise) --> |
| 179 | <Fragment> |
| 180 | <Property Id="NETFRAMEWORK45_SV_SE_LANGPACK" Secure="yes"> |
| 181 | <RegistrySearch Id="NETFRAMEWORK45SvSeLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1053" Name="Release" Type="raw" /> |
| 182 | </Property> |
| 183 | </Fragment> |
| 184 | |
| 185 | <!-- set to Release number of the .NET Framework 4.5 Turkish language pack if installed (not set otherwise) --> |
| 186 | <Fragment> |
| 187 | <Property Id="NETFRAMEWORK45_TR_TR_LANGPACK" Secure="yes"> |
| 188 | <RegistrySearch Id="NETFRAMEWORK45TrTrLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1055" Name="Release" Type="raw" /> |
| 189 | </Property> |
| 190 | </Fragment> |
| 191 | </Wix> |