Skip to content

Commit

Permalink
Allow overriding upgrade code seed and dependency key (#8195)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaMilosavljevic authored Nov 18, 2021
1 parent 589631d commit 7097001
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
<?error Invalid Platform ($(var.Platform))?>
<?endif?>

<?define DependencyKey = "$(var.DependencyKeyName)_$(var.BuildVersion)_$(var.Platform)$(var.CrossArchContentsPlatformPart)"?>
<?ifndef DependencyKey?>
<?define DependencyKey = "$(var.DependencyKeyName)_$(var.BuildVersion)_$(var.Platform)$(var.CrossArchContentsPlatformPart)"?>
<?endif?>
<?define DependencyKeyId = "$(var.DependencyKey)" ?>

</Include>
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@
<Target Name="_GetUpgradeCode"
DependsOnTargets="GetWixBuildConfiguration"
Condition="'$(UpgradeCode)' == ''">
<GenerateGuidFromName Name="$(_OutInstallerFile)">

<PropertyGroup>
<MsiUpgradeCodeSeed Condition="'$(MsiUpgradeCodeSeed)' == ''">$(_OutInstallerFile)</MsiUpgradeCodeSeed>
</PropertyGroup>

<GenerateGuidFromName Name="$(MsiUpgradeCodeSeed)">
<Output TaskParameter="GeneratedGuid" PropertyName="UpgradeCode" />
</GenerateGuidFromName>
</Target>
Expand Down

0 comments on commit 7097001

Please sign in to comment.