|
144 | 144 | <Directory Id="IISModuleDirectory" Name="IIS">
|
145 | 145 | <Directory Id="INSTALLLOCATION" ShortName="ANCM" Name="Asp.Net Core Module">
|
146 | 146 | <Directory Id="VersionDir" Name="$(var.ProductVersionString)">
|
| 147 | + <?if $(var.Platform) = "x86" OR $(var.Platform) = "x64" ?> |
147 | 148 | <Component Id="AspNetCoreModuleV2" Guid="3a692941-59be-43cf-98a8-6ed01b12a519" Win64="$(var.IsWin64)">
|
148 | 149 | <File Id="AspNetCoreModuleV2Dll"
|
149 | 150 | Name="aspnetcorev2.dll"
|
|
167 | 168 | </File>
|
168 | 169 | </Component>
|
169 | 170 | </Directory>
|
| 171 | + <?else ?> |
| 172 | + <Component Id="AspNetCoreModuleV2.forwarder" Guid="4b6bb33a-01f0-48c7-bce9-5a5514ac0431" Win64="$(var.IsWin64)"> |
| 173 | + <File Id="AspNetCoreModuleV2Dll.forwarder" |
| 174 | + Name="aspnetcorev2.dll" |
| 175 | + Source="$(var.ArtifactsDir)\bin\AspNetCoreModuleForwarders\aspnetcorev2.dll" |
| 176 | + DiskId="1" |
| 177 | + Vital="yes"> |
| 178 | + </File> |
| 179 | + <RemoveFile Id="AspNetCoreModuleV2Dll_Remove.forwarder" Name="aspnetcorev2.dll" On="install" /> |
| 180 | + <RegistryKey Root="HKLM" Key="SYSTEM\CurrentControlSet\Services\EventLog\Application\$(var.ProductShortName)"> |
| 181 | + <RegistryValue Name="EventMessageFile" Type="expandable" Value="[#AspNetCoreModuleV2Dll.forwarder]"/> |
| 182 | + <RegistryValue Name="TypesSupported" Type="integer" Value="7"/> |
| 183 | + </RegistryKey> |
| 184 | + </Component> |
| 185 | + <Component Id="AspNetCoreModuleV2.x64" Guid="325cf239-162d-4de8-97e7-642e6c66181c" Win64="$(var.IsWin64)"> |
| 186 | + <File Id="AspNetCoreModuleV2Dll.x64" |
| 187 | + Name="aspnetcorev2_x64.dll" |
| 188 | + Source="$(var.ArtifactsDir)\bin\AspNetCoreModuleShim\x64\$(var.Configuration)\aspnetcorev2.dll" |
| 189 | + DiskId="1" |
| 190 | + Vital="yes"> |
| 191 | + </File> |
| 192 | + <RemoveFile Id="AspNetCoreModuleV2Dll_Remove.x64" Name="aspnetcorev2.dll" On="install" /> |
| 193 | + <RegistryKey Root="HKLM" Key="SYSTEM\CurrentControlSet\Services\EventLog\Application\$(var.ProductShortName)"> |
| 194 | + <RegistryValue Name="EventMessageFile" Type="expandable" Value="[#AspNetCoreModuleV2Dll.x64]"/> |
| 195 | + <RegistryValue Name="TypesSupported" Type="integer" Value="7"/> |
| 196 | + </RegistryKey> |
| 197 | + </Component> |
| 198 | + <Component Id="AspNetCoreModuleV2.arm64" Guid="923f1be7-5a83-46b3-8be7-cd3eeb2d1c48" Win64="$(var.IsWin64)"> |
| 199 | + <File Id="AspNetCoreModuleV2Dll.arm64" |
| 200 | + Name="aspnetcorev2_arm64.dll" |
| 201 | + Source="$(var.AspNetCoreV2ProgramFilesTargetPath)" |
| 202 | + DiskId="1" |
| 203 | + Vital="yes"> |
| 204 | + </File> |
| 205 | + <RemoveFile Id="AspNetCoreModuleV2Dll_Remove.arm64" Name="aspnetcorev2.dll" On="install" /> |
| 206 | + <RegistryKey Root="HKLM" Key="SYSTEM\CurrentControlSet\Services\EventLog\Application\$(var.ProductShortName)"> |
| 207 | + <RegistryValue Name="EventMessageFile" Type="expandable" Value="[#AspNetCoreModuleV2Dll.arm64]"/> |
| 208 | + <RegistryValue Name="TypesSupported" Type="integer" Value="7"/> |
| 209 | + </RegistryKey> |
| 210 | + </Component> |
| 211 | + <Directory Id="HandlerVersionDir" Name="$(var.ANCMFolderVersion)" > |
| 212 | + <Component Id="AspNetCoreModuleHandler.forwarder" Guid="4862728c-e943-49f0-901a-cd96e4bf03ef" Win64="$(var.IsWin64)"> |
| 213 | + <File Id="AspNetCoreModuleHandlerDll.forwarder" |
| 214 | + Name="aspnetcorev2_outofprocess.dll" |
| 215 | + Source="$(var.ArtifactsDir)\bin\AspNetCoreModuleForwarders\aspnetcorev2_outofprocess.dll" |
| 216 | + DiskId="1" |
| 217 | + Vital="yes"> |
| 218 | + </File> |
| 219 | + </Component> |
| 220 | + <Component Id="AspNetCoreModuleHandler.x64" Guid="d9b0b5c9-8bbe-46f2-97d5-ba23d1a1ffed" Win64="$(var.IsWin64)"> |
| 221 | + <File Id="AspNetCoreModuleHandlerDll.x64" |
| 222 | + Name="aspnetcorev2_outofprocess_x64.dll" |
| 223 | + Source="$(var.ArtifactsDir)\bin\OutOfProcessRequestHandler\x64\$(var.Configuration)\aspnetcorev2_outofprocess.dll" |
| 224 | + DiskId="1" |
| 225 | + Vital="yes"> |
| 226 | + </File> |
| 227 | + </Component> |
| 228 | + <Component Id="AspNetCoreModuleHandler.arm64" Guid="ab249ab5-9203-4fd5-87b6-8acc3e1a0702" Win64="$(var.IsWin64)"> |
| 229 | + <File Id="AspNetCoreModuleHandlerDll.arm64" |
| 230 | + Name="aspnetcorev2_outofprocess_arm64.dll" |
| 231 | + Source="$(var.AspNetCoreV2HandlerProgramFilesTargetPath)" |
| 232 | + DiskId="1" |
| 233 | + Vital="yes"> |
| 234 | + </File> |
| 235 | + </Component> |
| 236 | + </Directory> |
| 237 | + <?endif ?> |
170 | 238 | </Directory>
|
171 | 239 | </Directory>
|
172 | 240 | </Directory>
|
173 | 241 | </Directory>
|
174 | 242 |
|
175 | 243 | <!-- WOW64 Support -->
|
176 |
| - <?if $(var.Platform) = "x64" ?> |
| 244 | + <?if $(var.Platform) = "x64" OR $(var.Platform) = "arm64" ?> |
177 | 245 | <Component Id="C_DiscoverabilityKeyWow" Guid="2eeb90e8-28d0-4543-9c2f-843b03bd6d05" Win64="no">
|
178 | 246 | <RegistryKey Root="HKLM" Key="$(var.DiscoverabilityKeyRoot)">
|
179 | 247 | <RegistryKey Key="$(var.ProductShortName)">
|
|
216 | 284 | </Directory>
|
217 | 285 | <?endif ?>
|
218 | 286 |
|
219 |
| - <!-- ARM64 Support --> |
220 |
| - <?if $(var.Platform) = "arm64" ?> |
221 |
| - <Component Id="C_DiscoverabilityKeyARM64" Guid="2eeb90e8-28d0-4543-9c2f-843b03bd6d05" Win64="no"> |
222 |
| - <RegistryKey Root="HKLM" Key="$(var.DiscoverabilityKeyRoot)"> |
223 |
| - <RegistryKey Key="$(var.ProductShortName)"> |
224 |
| - <RegistryValue Type="integer" Name="Install" Value="1" /> |
225 |
| - <RegistryValue Type="string" Name="Version" Value="$(var.ANCMMsiVersion)" /> |
226 |
| - </RegistryKey> |
227 |
| - </RegistryKey> |
228 |
| - </Component> |
229 |
| - |
230 |
| - <Directory Id="$(var.ProgramFilesFolder32)"> |
231 |
| - <Directory Id="IISModuleDirectory32" Name="IIS"> |
232 |
| - <Directory Id="INSTALLLOCATION32" ShortName="ANCM" Name="Asp.Net Core Module"> |
233 |
| - <Directory Id="VersionDir32" Name="$(var.ProductVersionString)" SourceName="Arm64Only" > |
234 |
| - <Component Id="AspNetCoreModuleV2.arm64" Guid="1b8ecba0-c002-442a-92c0-0fa9c0f21df4" Win64="no"> |
235 |
| - <File Id="AspNetCoreModuleV2Dll.arm64" |
236 |
| - Name="aspnetcorev2.dll" |
237 |
| - Source="$(var.ArtifactsDir)\bin\AspNetCoreModuleShim\arm64\Release\aspnetcorev2.dll" |
238 |
| - DiskId="1" |
239 |
| - Vital="yes"> |
240 |
| - </File> |
241 |
| - <RemoveFile Id="AspNetCoreModuleV2Dll.arm64_Remove" Name="aspnetcorev2.dll" On="install" /> |
242 |
| - <RegistryKey Root="HKLM" Key="SYSTEM\CurrentControlSet\Services\EventLog\Application\$(var.ProductShortName)"> |
243 |
| - <RegistryValue Name="EventMessageFile" Type="expandable" Value="[#AspNetCoreModuleV2Dll.arm64]"/> |
244 |
| - <RegistryValue Name="TypesSupported" Type="integer" Value="7"/> |
245 |
| - </RegistryKey> |
246 |
| - </Component> |
247 |
| - <Directory Id="HandlerVersionDir32" Name="$(var.ANCMFolderVersion)" SourceName="Arm64Only"> |
248 |
| - <Component Id="AspNetCoreModuleHandler.arm64" Guid="d927e5d3-c8b2-400c-b85c-ae5c2772d6c3" Win64="no"> |
249 |
| - <File Id="AspNetCoreModuleHandlerDll.arm64" |
250 |
| - Name="aspnetcorev2_outofprocess.dll" |
251 |
| - Source="$(var.ArtifactsDir)\bin\OutOfProcessRequestHandler\arm64\Release\aspnetcorev2_outofprocess.dll" |
252 |
| - DiskId="1" |
253 |
| - Vital="yes"> |
254 |
| - </File> |
255 |
| - </Component> |
256 |
| - </Directory> |
257 |
| - </Directory> |
258 |
| - </Directory> |
259 |
| - </Directory> |
260 |
| - </Directory> |
261 |
| - <?endif ?> |
262 | 287 | </Directory>
|
263 | 288 |
|
264 | 289 | <!-- Feature Definition -->
|
265 | 290 | <Feature Id="AspNetCoreModuleFeature" Title="!(loc.AspNetCoreModuleProductTitle)" Description="!(loc.AspNetCoreModuleProductDescription)" Level="1">
|
266 | 291 | <ComponentRef Id="C_DiscoverabilityKey"/>
|
| 292 | + <ComponentRef Id="AspNetCoreSchemaV2"/> |
| 293 | + <?if $(var.Platform) = "x86" OR $(var.Platform) = "x64" ?> |
267 | 294 | <ComponentRef Id="AspNetCoreModuleV2"/>
|
268 | 295 | <ComponentRef Id="AspNetCoreModuleHandler"/>
|
269 |
| - <ComponentRef Id="AspNetCoreSchemaV2"/> |
270 |
| - <?if $(var.Platform) = "x64" ?> |
| 296 | + <?endif ?> |
| 297 | + <?if $(var.Platform) = "x64" OR $(var.Platform) = "arm64" ?> |
271 | 298 | <ComponentRef Id="C_DiscoverabilityKeyWow"/>
|
272 | 299 | <ComponentRef Id="AspNetCoreModuleV2.wow"/>
|
273 | 300 | <ComponentRef Id="AspNetCoreModuleHandler.wow"/>
|
274 | 301 | <?endif ?>
|
275 | 302 | <?if $(var.Platform) = "arm64" ?>
|
276 |
| - <ComponentRef Id="C_DiscoverabilityKeyARM64"/> |
| 303 | + <ComponentRef Id="AspNetCoreModuleV2.forwarder"/> |
| 304 | + <ComponentRef Id="AspNetCoreModuleHandler.forwarder"/> |
| 305 | + <ComponentRef Id="AspNetCoreModuleV2.x64"/> |
| 306 | + <ComponentRef Id="AspNetCoreModuleHandler.x64"/> |
277 | 307 | <ComponentRef Id="AspNetCoreModuleV2.arm64"/>
|
278 | 308 | <ComponentRef Id="AspNetCoreModuleHandler.arm64"/>
|
279 | 309 | <?endif ?>
|
|
297 | 327 | <CustomTable Id="IISGlobalModule">
|
298 | 328 | <Row>
|
299 | 329 | <Data Column="Name">AspNetCoreModuleV2</Data>
|
| 330 | + <?if $(var.Platform) = "x86" OR $(var.Platform) = "x64" ?> |
300 | 331 | <Data Column="File_">AspNetCoreModuleV2Dll</Data>
|
| 332 | + <?else ?> |
| 333 | + <Data Column="File_">AspNetCoreModuleV2Dll.forwarder</Data> |
| 334 | + <?endif ?> |
301 | 335 | </Row>
|
302 | 336 | </CustomTable>
|
303 | 337 |
|
|
309 | 343 | </Row>
|
310 | 344 | </CustomTable>
|
311 | 345 |
|
| 346 | + <!-- <?if $(var.Platform) = "x86" OR $(var.Platform) = "x64" ?> --> |
312 | 347 | <CustomTable Id="IISTraceArea">
|
313 | 348 | <Row>
|
314 | 349 | <Data Column="ProviderName">WWW Server</Data>
|
|
319 | 354 | <Data Column="Component_">AspNetCoreModuleV2</Data>
|
320 | 355 | </Row>
|
321 | 356 | </CustomTable>
|
| 357 | + <!-- <?endif ?> --> |
322 | 358 |
|
323 | 359 | <!-- All this magic just to set the handlers section OverrideModeDefault=allow -->
|
324 | 360 | <CustomAction Id="CA_UNLOCk_HANDLER_PROPERTY"
|
|
0 commit comments