Skip to content

Commit 7587e94

Browse files
committed
Re-enable WOW64, arm64 forwarders in Hosting Bundle
1 parent 667b514 commit 7587e94

File tree

4 files changed

+63
-3
lines changed

4 files changed

+63
-3
lines changed

eng/Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@
286286
In a vertical build, only build the MSIs for the current vertical that aren't used in the hosting bundle in the first pass
287287
and build the hosting bundle and its dependencies in the second pass.
288288
-->
289-
<ItemGroup Condition="'$(DotNetBuild)' == 'true' and ('$(DotNetBuildPass)' == '' or '$(DotNetBuildPass)' == '1') and '$(_BuildWindowsInstallers)' == 'true'">
289+
<ItemGroup Condition="'$(DotNetBuild)' == 'true' and ('$(DotNetBuildPass)' == '' or '$(DotNetBuildPass)' == '1') and '$(_BuildWindowsInstallers)' == 'true' and '$(TargetArchitecture)' != 'arm64'" >
290290
<InstallerProject Include="$(RepoRoot)src\Installers\Windows\AspNetCoreModule-Setup\ANCMIISExpressV2\AncmIISExpressV2.wixproj" AdditionalProperties="Platform=$(TargetArchitecture)" />
291291
</ItemGroup>
292292

src/Installers/Windows/AspNetCoreModule-Setup/ANCMIISExpressV2/AncmIISExpressV2.wixproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
'$(PackageLicenseExpression)' " />
9696
</Target>
9797

98-
<Target Name="BeforeBuild" Condition="'$(Platform)' == 'arm64' AND '$(DotNetBuild)' != 'true'">
98+
<Target Name="BeforeBuild" Condition="'$(Platform)' == 'arm64'" >
9999
<MSBuild Projects="..\Forwarders\build.proj" />
100100
</Target>
101101
</Project>

src/Installers/Windows/AspNetCoreModule-Setup/ANCMIISExpressV2/ancm_iis_expressv2.wxs

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,52 @@
265265
</Component>
266266
</Directory>
267267
</Directory>
268+
269+
<!-- WOW64 Support -->
270+
<?if $(var.Platform) != "x86" ?>
271+
<Directory Id="$(var.ProgramFilesFolder32)">
272+
<Directory Id="INSTALLDIR32" Name="IIS Express" >
273+
<Directory Id="INSTALLLOCATION32" ShortName="ANCM" Name="$(var.ProductName)">
274+
<Directory Id="VersionDir32" Name="$(var.ProductVersionString)">
275+
<!-- Originally created with same component GUID as IIS installer. Must remain the same so upgrade doesn't remove this file -->
276+
<Component Id="AspNetCoreModule.wow" Guid="45ba5011-a619-4d06-8a8d-155b1f9732b3" Win64="no">
277+
<File Id="AspNetCoreModuleDll.wow"
278+
Name="aspnetcorev2.dll"
279+
Source="$(var.ArtifactsDir)\bin\AspNetCoreModuleShim\Win32\$(var.Configuration)\aspnetcorev2.dll"
280+
DiskId="1"
281+
Vital="yes">
282+
</File>
283+
<RegistryKey Root="HKLM" Key="SYSTEM\CurrentControlSet\Services\EventLog\Application\$(var.ProductShortName)">
284+
<RegistryValue Name="EventMessageFile" Type="expandable" Value="[#AspNetCoreModuleDll.wow]"/>
285+
<RegistryValue Name="TypesSupported" Type="integer" Value="7"/>
286+
</RegistryKey>
287+
</Component>
288+
<Directory Id="HandlerVersionDir32" Name="$(var.ANCMFolderVersion)" >
289+
<Component Id="AspNetCoreModuleHandler.wow" Guid="0A8EDB50-7D85-4825-8010-D27EFAF061B6" Win64="no">
290+
<File Id="AspNetCoreModuleHandlerDll.wow"
291+
Name="aspnetcorev2_outofprocess.dll"
292+
Source="$(var.ArtifactsDir)\bin\OutOfProcessRequestHandler\Win32\$(var.Configuration)\aspnetcorev2_outofprocess.dll"
293+
DiskId="1"
294+
Vital="yes">
295+
</File>
296+
</Component>
297+
</Directory>
298+
</Directory>
299+
</Directory>
300+
<Directory Id="IISConfigDir.wow" Name="config">
301+
<Directory Id="IISSchemaDir.wow" Name="schema">
302+
<Component Id="AspNetCoreSchema.wow" Guid="$(var.SchemaGuid32)" Win64="no" >
303+
<File Id="AspNetCoreSchemaFile.wow"
304+
Name="aspnetcore_schema_v2.xml"
305+
Source="$(var.AspNetCoreSchemaPath)"
306+
DiskId="1"
307+
Vital="yes"/>
308+
</Component>
309+
</Directory>
310+
</Directory>
311+
</Directory>
312+
</Directory>
313+
<?endif?>
268314
</DirectoryRef>
269315

270316
<!-- Feature Definition -->
@@ -278,6 +324,11 @@
278324
<ComponentRef Id="AspNetCoreModuleHandler.arm64" />
279325
<?endif ?>
280326
<ComponentRef Id="AspNetCoreSchema"/>
327+
<?if $(var.Platform) != "x86" ?>
328+
<ComponentRef Id="AspNetCoreModule.wow"/>
329+
<ComponentRef Id="AspNetCoreModuleHandler.wow"/>
330+
<ComponentRef Id="AspNetCoreSchema.wow"/>
331+
<?endif ?>
281332
</Feature>
282333

283334
<!-- User Interface -->
@@ -637,4 +688,4 @@
637688
<Binary Id="IISCustomActionDll" SourceFile="$(var.aspnetcoreCA.TargetPath)"/>
638689
</Fragment>
639690

640-
</Wix>
691+
</Wix>

src/Installers/Windows/WindowsHostingBundle/WindowsHostingBundle.wixproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@
7171
</ProjectReference>
7272
</ItemGroup>
7373

74+
<ItemGroup Condition="'$(DotNetBuild)' == 'true'" >
75+
<ProjectReference Include="..\AspNetCoreModule-Setup\ANCMIISExpressV2\AncmIISExpressV2.wixproj">
76+
<SetPlatform>Platform=arm64</SetPlatform>
77+
<Name>AspNetCoreModuleV2IISExpress_arm64</Name>
78+
<Private>True</Private>
79+
<DoNotHarvest>true</DoNotHarvest>
80+
</ProjectReference>
81+
</ItemGroup>
82+
7483
<Import Project="Product.targets" />
7584

7685
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.targets))\Directory.Build.targets" />

0 commit comments

Comments
 (0)