Skip to content

Commit bf306bf

Browse files
committed
First set of files
1 parent 412ff62 commit bf306bf

File tree

11 files changed

+260
-19
lines changed

11 files changed

+260
-19
lines changed

src/Installers/Windows/AspNetCoreModule-Setup/ANCMV2/aspnetcoremodulev2.wxs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@
283283
<AppSearch Before="LaunchConditions" />
284284
<LaunchConditions After="FindRelatedProducts" />
285285
<MigrateFeatureStates />
286-
<Custom Action="CheckForSharedConfiguration" After="InstallInitialize">OPT_NO_SHARED_CONFIG_CHECK=0 AND NOT Installed AND NOT REMOVE="ALL"</Custom>
286+
<Custom Action="CheckForSharedConfiguration" After="InstallInitialize">(NOT OPT_NO_SHARED_CONFIG_CHECK OR OPT_NO_SHARED_CONFIG_CHECK="" OR OPT_NO_SHARED_CONFIG_CHECK="0") AND NOT Installed AND NOT REMOVE="ALL"</Custom>
287287
<Custom Action="CA_UNLOCk_HANDLER_PROPERTY" After="InstallFiles"><![CDATA[(NOT PATCH)]]></Custom>
288288
<Custom Action="CA_UNLOCk_HANDLER" After="CA_UNLOCk_HANDLER_PROPERTY"><![CDATA[(NOT PATCH)]]></Custom>
289289
<Custom Action="UpdateDynamicCompression" After="InstallFiles"><![CDATA[(NOT PATCH)]]></Custom>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.props))\Directory.Build.props" />
4+
5+
<PropertyGroup>
6+
<Name>$(HostOptionsName)</Name>
7+
<OutputName>$(HostOptionsName)</OutputName>
8+
<OutputType>Package</OutputType>
9+
<ProductNameFolder>Microsoft ASP.NET Core Hosting Bundle Options</ProductNameFolder>
10+
<ProductNameShort>AspNetCore.HostOptions</ProductNameShort>
11+
<Platform>x86</Platform>
12+
<ProjectGuid>20248cd1-c5aa-4f42-ad88-bc260d64deea</ProjectGuid>
13+
<IsShipping>true</IsShipping>
14+
<SchemaVersion>2.0</SchemaVersion>
15+
16+
<!-- Namespace used to generate stable UUID3 GUIDs for MSI ProductCode, etc. DO NOT CHANGE THIS. -->
17+
<NamespaceGuid>$(HostingBundleNamespaceGuid)</NamespaceGuid>
18+
</PropertyGroup>
19+
20+
<ItemGroup>
21+
<Compile Include="Product.wxs" />
22+
</ItemGroup>
23+
24+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.targets))\Directory.Build.targets" />
25+
26+
<PropertyGroup>
27+
<PackageFileName>dotnet-hosting-options-$(PackageVersion)-win$(TargetExt)</PackageFileName>
28+
<ProductName>Microsoft ASP.NET Core $(PackageBrandingVersion) Hosting Bundle Options</ProductName>
29+
<DefineConstants>$(DefineConstants);ProductName=$(ProductName)</DefineConstants>
30+
</PropertyGroup>
31+
</Project>
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3+
<Product Id="$(var.ProductCode)" Name="$(var.ProductName)" Language="1033" Version="$(var.Version)"
4+
Manufacturer="Microsoft Corporation" UpgradeCode="$(var.UpgradeCode)">
5+
<Package InstallerVersion="$(var.InstallerVersion)" Compressed="yes" InstallScope="perMachine" />
6+
7+
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
8+
<Media Id="1" />
9+
10+
<!-- Custom Actions to assign a default of 0 to all switches -->
11+
<CustomAction Id="Set_OPT_NO_ANCM" Property="OPT_NO_ANCM" Value="0" />
12+
<CustomAction Id="Set_OPT_NO_FTS" Property="OPT_NO_FTS" Value="0" />
13+
<CustomAction Id="Set_OPT_NO_LTS" Property="OPT_NO_LTS" Value="0" />
14+
<CustomAction Id="Set_OPT_NO_SHAREDFX" Property="OPT_NO_SHAREDFX" Value="0" />
15+
<CustomAction Id="Set_OPT_NO_RUNTIME" Property="OPT_NO_RUNTIME" Value="0" />
16+
<CustomAction Id="Set_OPT_NO_X86" Property="OPT_NO_X86" Value="0" />
17+
<CustomAction Id="Set_OPT_NO_SHARED_CONFIG_CHECK" Property="OPT_NO_SHARED_CONFIG_CHECK" Value="0" />
18+
19+
<InstallExecuteSequence>
20+
<!-- Only execute the default set action if the property is undefined or was defined as an empty string -->
21+
<Custom Action="Set_OPT_NO_ANCM" After="AppSearch">NOT OPT_NO_ANCM OR OPT_NO_ANCM=""</Custom>
22+
<Custom Action="Set_OPT_NO_FTS" After="AppSearch">NOT OPT_NO_FTS OR OPT_NO_FTS=""</Custom>
23+
<Custom Action="Set_OPT_NO_LTS" After="AppSearch">NOT OPT_NO_LTS OR OPT_NO_LTS=""</Custom>
24+
<Custom Action="Set_OPT_NO_SHAREDFX" After="AppSearch">NOT OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX=""</Custom>
25+
<Custom Action="Set_OPT_NO_RUNTIME" After="AppSearch">NOT OPT_NO_RUNTIME OR OPT_NO_RUNTIME=""</Custom>
26+
<Custom Action="Set_OPT_NO_X86" After="AppSearch">NOT OPT_NO_X86 OR OPT_NO_X86=""</Custom>
27+
<Custom Action="Set_OPT_NO_SHARED_CONFIG_CHECK" After="AppSearch">NOT OPT_NO_SHARED_CONFIG_CHECK OR OPT_NO_SHARED_CONFIG_CHECK=""</Custom>
28+
</InstallExecuteSequence>
29+
30+
<Feature Id="ProductFeature" Title="HostOptions" Level="1">
31+
<ComponentGroupRef Id="ProductComponents" />
32+
</Feature>
33+
</Product>
34+
35+
<Fragment>
36+
<Directory Id="TARGETDIR" Name="SourceDir">
37+
<Directory Id="ProgramFilesFolder">
38+
<Directory Id="INSTALLFOLDER" Name="dotnet">
39+
<Directory Id="MM" Name="$(var.MajorVersion).$(var.MinorVersion)" />
40+
</Directory>
41+
</Directory>
42+
</Directory>
43+
</Fragment>
44+
45+
<Fragment>
46+
<ComponentGroup Id="ProductComponents" Directory="MM">
47+
<Component Id="OPT" KeyPath="yes" Guid="{5FF00E0C-2BEE-42CA-8359-D46D6CB74DD1}">
48+
<RegistryKey Root="HKLM" Key="SOFTWARE\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)">
49+
<RegistryValue Name="OPT_NO_ANCM" Type="integer" Value="[OPT_NO_ANCM]" />
50+
</RegistryKey>
51+
<RegistryKey Root="HKLM" Key="SOFTWARE\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)">
52+
<RegistryValue Name="OPT_NO_FTS" Type="integer" Value="[OPT_NO_FTS]" />
53+
</RegistryKey>
54+
<RegistryKey Root="HKLM" Key="SOFTWARE\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)">
55+
<RegistryValue Name="OPT_NO_LTS" Type="integer" Value="[OPT_NO_LTS]" />
56+
</RegistryKey>
57+
<RegistryKey Root="HKLM" Key="SOFTWARE\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)">
58+
<RegistryValue Name="OPT_NO_SHAREDFX" Type="integer" Value="[OPT_NO_SHAREDFX]" />
59+
</RegistryKey>
60+
<RegistryKey Root="HKLM" Key="SOFTWARE\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)">
61+
<RegistryValue Name="OPT_NO_RUNTIME" Type="integer" Value="[OPT_NO_RUNTIME]" />
62+
</RegistryKey>
63+
<RegistryKey Root="HKLM" Key="SOFTWARE\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)">
64+
<RegistryValue Name="OPT_NO_X86" Type="integer" Value="[OPT_NO_X86]" />
65+
</RegistryKey>
66+
<RegistryKey Root="HKLM" Key="SOFTWARE\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)">
67+
<RegistryValue Name="OPT_NO_SHARED_CONFIG_CHECK" Type="integer" Value="[OPT_NO_SHARED_CONFIG_CHECK]" />
68+
</RegistryKey>
69+
</Component>
70+
</ComponentGroup>
71+
</Fragment>
72+
</Wix>

src/Installers/Windows/SharedFrameworkLib/Library.wxs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
<?undef DotNetHome?>
1212
<?endif?>
1313
<?if $(var.Platform)=x86?>
14-
<?define SharedFrameworkInstallCondition=(NOT OPT_NO_SHAREDFX) AND (NOT OPT_NO_X86)?>
14+
<?define SharedFrameworkInstallCondition=(NOT OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX="0") AND (NOT OPT_NO_X86)?>
1515
<?define DotNetHome=DOTNETHOME_X86?>
1616
<?elseif $(var.Platform)=x64?>
17-
<?define SharedFrameworkInstallCondition=VersionNT64 AND (NOT OPT_NO_SHAREDFX)?>
17+
<?define SharedFrameworkInstallCondition=VersionNT64 AND (NOT OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX="0")?>
1818
<?define DotNetHome=DOTNETHOME_X64?>
1919
<?elseif $(var.Platform)=arm64?>
20-
<?define SharedFrameworkInstallCondition=VersionNT64 AND (NOT OPT_NO_SHAREDFX)?>
20+
<?define SharedFrameworkInstallCondition=VersionNT64 AND (NOT OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX="0")?>
2121
<?define DotNetHome=DOTNETHOME_ARM64?>
2222
<?endif?>
2323

src/Installers/Windows/WindowsHostingBundle/ANCM.wxs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Compressed="yes"
1010
Vital="yes"
1111
Visible="no"
12-
InstallCondition="NOT VersionNT64 AND (VersionNT &gt;= v6.1) AND (IISCoreWebEngineInstalled_x86=1) AND (IISW3SVCInstalled_x86=1) AND (NOT OPT_NO_ANCM)">
12+
InstallCondition="NOT VersionNT64 AND (VersionNT &gt;= v6.1) AND (IISCoreWebEngineInstalled_x86=1) AND (IISW3SVCInstalled_x86=1) AND (NOT OPT_NO_ANCM OR OPT_NO_ANCM=&quot;0&quot;)">
1313
<MsiProperty Name="OPT_NO_SHARED_CONFIG_CHECK" Value="[OPT_NO_SHARED_CONFIG_CHECK]" />
1414
</MsiPackage>
1515

@@ -18,7 +18,7 @@
1818
Compressed="yes"
1919
Vital="yes"
2020
Visible="no"
21-
InstallCondition="VersionNT64 AND (VersionNT64 &gt;= v6.1) AND (IISCoreWebEngineInstalled_x64=1) AND (IISW3SVCInstalled_x64=1) AND (NOT OPT_NO_ANCM)">
21+
InstallCondition="VersionNT64 AND (VersionNT64 &gt;= v6.1) AND (IISCoreWebEngineInstalled_x64=1) AND (IISW3SVCInstalled_x64=1) AND (NOT OPT_NO_ANCM OR OPT_NO_ANCM=&quot;0&quot;)">
2222
<MsiProperty Name="OPT_NO_SHARED_CONFIG_CHECK" Value="[OPT_NO_SHARED_CONFIG_CHECK]" />
2323
</MsiPackage>
2424
</PackageGroup>

src/Installers/Windows/WindowsHostingBundle/Bundle.wxs

Lines changed: 129 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,126 @@
5757
<!-- Bundle variables -->
5858
<Variable Name="BundleNameShort" Value="$(var.BundleNameShort)"/>
5959
<Variable Name="BundleNameSub" Value="$(var.BundleNameSub)"/>
60-
<Variable Name="OPT_NO_ANCM" Value="0" bal:Overridable="yes"/>
61-
<Variable Name="OPT_NO_FTS" Value="0" bal:Overridable="yes"/>
62-
<Variable Name="OPT_NO_LTS" Value="0" bal:Overridable="yes"/>
63-
<Variable Name="OPT_NO_SHAREDFX" Value="0" bal:Overridable="yes"/>
64-
<Variable Name="OPT_NO_RUNTIME" Value="0" bal:Overridable="yes"/>
65-
<Variable Name="OPT_NO_X86" Value="0" bal:Overridable="yes"/>
66-
<Variable Name="OPT_NO_SHARED_CONFIG_CHECK" Value="0" bal:Overridable="yes" />
60+
<Variable Name="OPT_NO_ANCM" bal:Overridable="yes"/>
61+
<Variable Name="OPT_NO_FTS" bal:Overridable="yes"/>
62+
<Variable Name="OPT_NO_LTS" bal:Overridable="yes"/>
63+
<Variable Name="OPT_NO_SHAREDFX" bal:Overridable="yes"/>
64+
<Variable Name="OPT_NO_RUNTIME" bal:Overridable="yes"/>
65+
<Variable Name="OPT_NO_X86" bal:Overridable="yes"/>
66+
<Variable Name="OPT_NO_SHARED_CONFIG_CHECK" bal:Overridable="yes" />
67+
68+
<!-- Use values from the registry for switches, if the registry values are set & the user hasn't passed any switches from the command line -->
69+
70+
<util:RegistrySearch Id="opt_no_ancm_should_be_set"
71+
Condition="NOT OPT_NO_ANCM AND NOT OPT_NO_ANCM=0 AND NOT OPT_NO_FTS AND NOT OPT_NO_FTS=0 AND NOT OPT_NO_LTS AND NOT OPT_NO_LTS=0 AND NOT OPT_NO_SHAREDFX AND NOT OPT_NO_SHAREDFX=0 AND NOT OPT_NO_RUNTIME AND NOT OPT_NO_RUNTIME=0 AND NOT OPT_NO_X86 AND NOT OPT_NO_X86=0 AND NOT OPT_NO_SHARED_CONFIG_CHECK AND NOT OPT_NO_SHARED_CONFIG_CHECK=0"
72+
Root="HKLM"
73+
Key="Software\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)"
74+
Value="OPT_NO_ANCM"
75+
Result="exists"
76+
Variable="OPT_NO_ANCM_Should_Be_Set"/>
77+
78+
<util:RegistrySearch Id="opt_no_fts_should_be_set"
79+
Condition="NOT OPT_NO_ANCM AND NOT OPT_NO_ANCM=0 AND NOT OPT_NO_FTS AND NOT OPT_NO_FTS=0 AND NOT OPT_NO_LTS AND NOT OPT_NO_LTS=0 AND NOT OPT_NO_SHAREDFX AND NOT OPT_NO_SHAREDFX=0 AND NOT OPT_NO_RUNTIME AND NOT OPT_NO_RUNTIME=0 AND NOT OPT_NO_X86 AND NOT OPT_NO_X86=0 AND NOT OPT_NO_SHARED_CONFIG_CHECK AND NOT OPT_NO_SHARED_CONFIG_CHECK=0"
80+
After="opt_no_ancm_should_be_set"
81+
Root="HKLM"
82+
Key="Software\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)"
83+
Value="OPT_NO_FTS"
84+
Result="exists"
85+
Variable="OPT_NO_FTS_Should_Be_Set"/>
86+
87+
<util:RegistrySearch Id="opt_no_lts_should_be_set"
88+
Condition="NOT OPT_NO_ANCM AND NOT OPT_NO_ANCM=0 AND NOT OPT_NO_FTS AND NOT OPT_NO_FTS=0 AND NOT OPT_NO_LTS AND NOT OPT_NO_LTS=0 AND NOT OPT_NO_SHAREDFX AND NOT OPT_NO_SHAREDFX=0 AND NOT OPT_NO_RUNTIME AND NOT OPT_NO_RUNTIME=0 AND NOT OPT_NO_X86 AND NOT OPT_NO_X86=0 AND NOT OPT_NO_SHARED_CONFIG_CHECK AND NOT OPT_NO_SHARED_CONFIG_CHECK=0"
89+
After="opt_no_fts_should_be_set"
90+
Root="HKLM"
91+
Key="Software\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)"
92+
Value="OPT_NO_LTS"
93+
Result="exists"
94+
Variable="OPT_NO_LTS_Should_Be_Set"/>
95+
96+
<util:RegistrySearch Id="opt_no_sharedfx_should_be_set"
97+
Condition="NOT OPT_NO_ANCM AND NOT OPT_NO_ANCM=0 AND NOT OPT_NO_FTS AND NOT OPT_NO_FTS=0 AND NOT OPT_NO_LTS AND NOT OPT_NO_LTS=0 AND NOT OPT_NO_SHAREDFX AND NOT OPT_NO_SHAREDFX=0 AND NOT OPT_NO_RUNTIME AND NOT OPT_NO_RUNTIME=0 AND NOT OPT_NO_X86 AND NOT OPT_NO_X86=0 AND NOT OPT_NO_SHARED_CONFIG_CHECK AND NOT OPT_NO_SHARED_CONFIG_CHECK=0"
98+
After="opt_no_lts_should_be_set"
99+
Root="HKLM"
100+
Key="Software\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)"
101+
Value="OPT_NO_SHAREDFX"
102+
Result="exists"
103+
Variable="OPT_NO_SHAREDFX_Should_Be_Set"/>
104+
105+
<util:RegistrySearch Id="opt_no_runtime_should_be_set"
106+
Condition="NOT OPT_NO_ANCM AND NOT OPT_NO_ANCM=0 AND NOT OPT_NO_FTS AND NOT OPT_NO_FTS=0 AND NOT OPT_NO_LTS AND NOT OPT_NO_LTS=0 AND NOT OPT_NO_SHAREDFX AND NOT OPT_NO_SHAREDFX=0 AND NOT OPT_NO_RUNTIME AND NOT OPT_NO_RUNTIME=0 AND NOT OPT_NO_X86 AND NOT OPT_NO_X86=0 AND NOT OPT_NO_SHARED_CONFIG_CHECK AND NOT OPT_NO_SHARED_CONFIG_CHECK=0"
107+
After="opt_no_sharedfx_should_be_set"
108+
Root="HKLM"
109+
Key="Software\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)"
110+
Value="OPT_NO_RUNTIME"
111+
Result="exists"
112+
Variable="OPT_NO_RUNTIME_Should_Be_Set"/>
113+
114+
<util:RegistrySearch Id="opt_no_x86_should_be_set"
115+
Condition="NOT OPT_NO_ANCM AND NOT OPT_NO_ANCM=0 AND NOT OPT_NO_FTS AND NOT OPT_NO_FTS=0 AND NOT OPT_NO_LTS AND NOT OPT_NO_LTS=0 AND NOT OPT_NO_SHAREDFX AND NOT OPT_NO_SHAREDFX=0 AND NOT OPT_NO_RUNTIME AND NOT OPT_NO_RUNTIME=0 AND NOT OPT_NO_X86 AND NOT OPT_NO_X86=0 AND NOT OPT_NO_SHARED_CONFIG_CHECK AND NOT OPT_NO_SHARED_CONFIG_CHECK=0"
116+
After="opt_no_runtime_should_be_set"
117+
Root="HKLM"
118+
Key="Software\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)"
119+
Value="OPT_NO_X86"
120+
Result="exists"
121+
Variable="OPT_NO_X86_Should_Be_Set"/>
122+
123+
<util:RegistrySearch Id="opt_no_shared_config_check_should_be_set"
124+
Condition="NOT OPT_NO_ANCM AND NOT OPT_NO_ANCM=0 AND NOT OPT_NO_FTS AND NOT OPT_NO_FTS=0 AND NOT OPT_NO_LTS AND NOT OPT_NO_LTS=0 AND NOT OPT_NO_SHAREDFX AND NOT OPT_NO_SHAREDFX=0 AND NOT OPT_NO_RUNTIME AND NOT OPT_NO_RUNTIME=0 AND NOT OPT_NO_X86 AND NOT OPT_NO_X86=0 AND NOT OPT_NO_SHARED_CONFIG_CHECK AND NOT OPT_NO_SHARED_CONFIG_CHECK=0"
125+
After="opt_no_x86_should_be_set"
126+
Root="HKLM"
127+
Key="Software\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)"
128+
Value="OPT_NO_SHARED_CONFIG_CHECK"
129+
Result="exists"
130+
Variable="OPT_NO_SHARED_CONFIG_CHECK_Should_Be_Set"/>
131+
132+
<util:RegistrySearch Condition="OPT_NO_ANCM_Should_Be_Set"
133+
After="opt_no_shared_config_check_should_be_set"
134+
Root="HKLM" Key="Software\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)"
135+
Value="OPT_NO_ANCM"
136+
Variable="OPT_NO_ANCM"
137+
Result="value" />
138+
139+
<util:RegistrySearch Condition="OPT_NO_FTS_Should_Be_Set"
140+
After="opt_no_shared_config_check_should_be_set"
141+
Root="HKLM" Key="Software\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)"
142+
Value="OPT_NO_FTS"
143+
Variable="OPT_NO_FTS"
144+
Result="value" />
145+
146+
<util:RegistrySearch Condition="OPT_NO_LTS_Should_Be_Set"
147+
After="opt_no_shared_config_check_should_be_set"
148+
Root="HKLM" Key="Software\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)"
149+
Value="OPT_NO_LTS"
150+
Variable="OPT_NO_LTS"
151+
Result="value" />
152+
153+
<util:RegistrySearch Condition="OPT_NO_SHAREDFX_Should_Be_Set"
154+
After="opt_no_shared_config_check_should_be_set"
155+
Root="HKLM" Key="Software\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)"
156+
Value="OPT_NO_SHAREDFX"
157+
Variable="OPT_NO_SHAREDFX"
158+
Result="value" />
159+
160+
<util:RegistrySearch Condition="OPT_NO_RUNTIME_Should_Be_Set"
161+
After="opt_no_shared_config_check_should_be_set"
162+
Root="HKLM" Key="Software\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)"
163+
Value="OPT_NO_RUNTIME"
164+
Variable="OPT_NO_RUNTIME"
165+
Result="value" />
166+
167+
<util:RegistrySearch Condition="OPT_NO_X86_Should_Be_Set"
168+
After="opt_no_shared_config_check_should_be_set"
169+
Root="HKLM" Key="Software\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)"
170+
Value="OPT_NO_X86"
171+
Variable="OPT_NO_X86"
172+
Result="value" />
173+
174+
<util:RegistrySearch Condition="OPT_NO_SHARED_CONFIG_CHECK_Should_Be_Set"
175+
After="opt_no_shared_config_check_should_be_set"
176+
Root="HKLM" Key="Software\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)"
177+
Value="OPT_NO_SHARED_CONFIG_CHECK"
178+
Variable="OPT_NO_SHARED_CONFIG_CHECK"
179+
Result="value" />
67180

68181
<!-- These variables control the state of conditional UI text elements.
69182
They are disabled by default and enabled based on whether or not we detect that IIS is installed -->
@@ -73,6 +186,15 @@
73186
<Variable Name="ModifyNoIISState" Value="disable"/>
74187

75188
<Chain ParallelCache="yes">
189+
<MsiPackage SourceFile="$(var.HostOptions.TargetPath)">
190+
<MsiProperty Name="OPT_NO_ANCM" Value="[OPT_NO_ANCM]"/>
191+
<MsiProperty Name="OPT_NO_FTS" Value="[OPT_NO_FTS]"/>
192+
<MsiProperty Name="OPT_NO_LTS" Value="[OPT_NO_LTS]"/>
193+
<MsiProperty Name="OPT_NO_SHAREDFX" Value="[OPT_NO_SHAREDFX]"/>
194+
<MsiProperty Name="OPT_NO_RUNTIME" Value="[OPT_NO_RUNTIME]"/>
195+
<MsiProperty Name="OPT_NO_X86" Value="[OPT_NO_X86]"/>
196+
<MsiProperty Name="OPT_NO_SHARED_CONFIG_CHECK" Value="[OPT_NO_SHARED_CONFIG_CHECK]"/>
197+
</MsiPackage>
76198
<PackageGroupRef Id="PG_ANCM" />
77199
<PackageGroupRef Id="PG_DOTNET_REDIST_LTS_BUNDLE" />
78200
<!--<PackageGroupRef Id="PG_DOTNET_REDIST_FTS_BUNDLE" />-->

0 commit comments

Comments
 (0)