-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Allow Hosting Bundle to be upgraded by MU #37966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
bf306bf
First set of files
wtgodbe ebff5c5
Feedback
wtgodbe a5051b2
Feedback
wtgodbe 7d362af
Only one KeyPath
wtgodbe 0ec89c2
Shorten condition
wtgodbe 28ed021
Fixup
wtgodbe 023172e
More cleanup
wtgodbe 53b313a
Change condition name
wtgodbe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.props))\Directory.Build.props" /> | ||
|
||
<PropertyGroup> | ||
<Name>$(HostOptionsName)</Name> | ||
<OutputName>$(HostOptionsName)</OutputName> | ||
<OutputType>Package</OutputType> | ||
<ProductNameFolder>Microsoft ASP.NET Core Hosting Bundle Options</ProductNameFolder> | ||
<ProductNameShort>AspNetCore.HostOptions</ProductNameShort> | ||
<Platform>x86</Platform> | ||
<ProjectGuid>20248cd1-c5aa-4f42-ad88-bc260d64deea</ProjectGuid> | ||
<IsShipping>true</IsShipping> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
|
||
<!-- Namespace used to generate stable UUID3 GUIDs for MSI ProductCode, etc. DO NOT CHANGE THIS. --> | ||
<NamespaceGuid>$(HostingBundleNamespaceGuid)</NamespaceGuid> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="Product.wxs" /> | ||
</ItemGroup> | ||
|
||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.targets))\Directory.Build.targets" /> | ||
|
||
<PropertyGroup> | ||
<PackageFileName>dotnet-hosting-options-$(PackageVersion)-win$(TargetExt)</PackageFileName> | ||
<ProductName>Microsoft ASP.NET Core $(PackageBrandingVersion) Hosting Bundle Options</ProductName> | ||
<DefineConstants>$(DefineConstants);ProductName=$(ProductName)</DefineConstants> | ||
</PropertyGroup> | ||
</Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | ||
<Product Id="$(var.ProductCode)" Name="$(var.ProductName)" Language="1033" Version="$(var.Version)" | ||
Manufacturer="Microsoft Corporation" UpgradeCode="$(var.UpgradeCode)"> | ||
<Package InstallerVersion="$(var.InstallerVersion)" Compressed="yes" InstallScope="perMachine" /> | ||
|
||
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> | ||
<Media Id="1" /> | ||
|
||
<!-- Custom Actions to assign a default of 0 to all switches --> | ||
<CustomAction Id="Set_OPT_NO_ANCM" Property="OPT_NO_ANCM" Value="0" /> | ||
<CustomAction Id="Set_OPT_NO_FTS" Property="OPT_NO_FTS" Value="0" /> | ||
<CustomAction Id="Set_OPT_NO_LTS" Property="OPT_NO_LTS" Value="0" /> | ||
<CustomAction Id="Set_OPT_NO_SHAREDFX" Property="OPT_NO_SHAREDFX" Value="0" /> | ||
<CustomAction Id="Set_OPT_NO_RUNTIME" Property="OPT_NO_RUNTIME" Value="0" /> | ||
<CustomAction Id="Set_OPT_NO_X86" Property="OPT_NO_X86" Value="0" /> | ||
<CustomAction Id="Set_OPT_NO_SHARED_CONFIG_CHECK" Property="OPT_NO_SHARED_CONFIG_CHECK" Value="0" /> | ||
|
||
<InstallExecuteSequence> | ||
<!-- Only set the options to 0 if they weren't already set in the hosting bundle. --> | ||
<!-- First option is to use user input, if they passed any (if they explicitly set an option to the empty string, we convert that to 0 here). --> | ||
<!-- Second option is to use registry values, if present. --> | ||
<!-- Third option is to set the options all to 0, which we do here. --> | ||
<Custom Action="Set_OPT_NO_ANCM" After="AppSearch">NOT OPT_NO_ANCM OR OPT_NO_ANCM=""</Custom> | ||
<Custom Action="Set_OPT_NO_FTS" After="AppSearch">NOT OPT_NO_FTS OR OPT_NO_FTS=""</Custom> | ||
<Custom Action="Set_OPT_NO_LTS" After="AppSearch">NOT OPT_NO_LTS OR OPT_NO_LTS=""</Custom> | ||
<Custom Action="Set_OPT_NO_SHAREDFX" After="AppSearch">NOT OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX=""</Custom> | ||
<Custom Action="Set_OPT_NO_RUNTIME" After="AppSearch">NOT OPT_NO_RUNTIME OR OPT_NO_RUNTIME=""</Custom> | ||
<Custom Action="Set_OPT_NO_X86" After="AppSearch">NOT OPT_NO_X86 OR OPT_NO_X86=""</Custom> | ||
<Custom Action="Set_OPT_NO_SHARED_CONFIG_CHECK" After="AppSearch">NOT OPT_NO_SHARED_CONFIG_CHECK OR OPT_NO_SHARED_CONFIG_CHECK=""</Custom> | ||
</InstallExecuteSequence> | ||
|
||
<Feature Id="ProductFeature" Title="HostOptions" Level="1"> | ||
<ComponentGroupRef Id="ProductComponents" /> | ||
</Feature> | ||
</Product> | ||
|
||
<Fragment> | ||
<Directory Id="TARGETDIR" Name="SourceDir"> | ||
<Directory Id="ProgramFilesFolder"> | ||
<Directory Id="INSTALLFOLDER" Name="dotnet"> | ||
<Directory Id="MM" Name="$(var.MajorVersion).$(var.MinorVersion)" /> | ||
</Directory> | ||
</Directory> | ||
</Directory> | ||
</Fragment> | ||
|
||
<Fragment> | ||
<ComponentGroup Id="ProductComponents" Directory="MM"> | ||
|
||
<?ifdef ProductOptionsKey?> | ||
<?undef ProductOptionsKey?> | ||
<?endif?> | ||
|
||
<?define ProductOptionsKey=SOFTWARE\Microsoft\dotnet\host\options\$(var.MajorVersion).$(var.MinorVersion)?> | ||
|
||
<Component Id="OPT" Guid="*"> | ||
<RegistryKey Root="HKLM" Key="$(var.ProductOptionsKey)"> | ||
<RegistryValue Name="OPT_NO_ANCM" Type="integer" Value="[OPT_NO_ANCM]" KeyPath="yes" /> | ||
<RegistryValue Name="OPT_NO_FTS" Type="integer" Value="[OPT_NO_FTS]" /> | ||
<RegistryValue Name="OPT_NO_LTS" Type="integer" Value="[OPT_NO_LTS]" /> | ||
<RegistryValue Name="OPT_NO_SHAREDFX" Type="integer" Value="[OPT_NO_SHAREDFX]" /> | ||
<RegistryValue Name="OPT_NO_RUNTIME" Type="integer" Value="[OPT_NO_RUNTIME]" /> | ||
<RegistryValue Name="OPT_NO_X86" Type="integer" Value="[OPT_NO_X86]" /> | ||
<RegistryValue Name="OPT_NO_SHARED_CONFIG_CHECK" Type="integer" Value="[OPT_NO_SHARED_CONFIG_CHECK]" /> | ||
</RegistryKey> | ||
</Component> | ||
</ComponentGroup> | ||
</Fragment> | ||
</Wix> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.