Skip to content

Commit

Permalink
Integrate Dependency into Core
Browse files Browse the repository at this point in the history
Only the custom action handling is left in Dependency.wixext

Partially fixes wixtoolset/issues#5945
  • Loading branch information
robmen committed Feb 27, 2021
1 parent f217241 commit 3fae69c
Show file tree
Hide file tree
Showing 17 changed files with 33 additions and 1,084 deletions.
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"msbuild-sdks": {
"WixToolset.Sdk": "4.0.0-build-0170"
"WixToolset.Sdk": "4.0.0-build-0191"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ public void CanBuildUsingProvides()
var folder = TestData.Get(@"TestData\UsingProvides");
var build = new Builder(folder, typeof(DependencyExtensionFactory), new[] { folder });

var results = build.BuildAndQuery(Build, "WixDependencyProvider");
var results = build.BuildAndQuery(Build, "CustomAction", "WixDependencyProvider");
Assert.Equal(new[]
{
"CustomAction:Wix4DependencyCheck_X86\t1\tDependencyCA_X86\tWixDependencyCheck\t",
"WixDependencyProvider:dep74OfIcniaqxA7EprRGBw4Oyy3r8\tfilF5_pLhBuF5b4N9XEo52g_hUM5Lo\tUsingProvides\t\t\t",
}, results);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
xmlns:dep="http://wixtoolset.org/schemas/v4/wxs/dependency">
<Package Name="MsiPackage" Language="1033" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="047730a5-30fe-4a62-a520-da9381b8226a" InstallerVersion="200">


<MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" />


<Directory Id="INSTALLFOLDER" Name="ProgramFilesFolder:\MsiPackage" />

<Feature Id="ProductFeature" Title="!(loc.FeatureTitle)">
<ComponentGroupRef Id="ProductComponents" />
<Component Directory="INSTALLFOLDER">
<File Name="example.txt" Source="Package.wxs" />
<Provides Key="UsingProvides" dep:Check="yes" />
</Component>
</Feature>

</Package>

<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="MsiPackage" />
</Directory>
</Directory>
</Fragment>
</Package>
</Wix>

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
</PropertyGroup>

<ItemGroup>
<Content Include="TestData\UsingProvides\example.txt" CopyToOutputDirectory="PreserveNewest" />
<Content Include="TestData\UsingProvides\Package.en-us.wxl" CopyToOutputDirectory="PreserveNewest" />
<Content Include="TestData\UsingProvides\Package.wxs" CopyToOutputDirectory="PreserveNewest" />
<Content Include="TestData\UsingProvides\PackageComponents.wxs" CopyToOutputDirectory="PreserveNewest" />
<Content Include="TestData\**" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>

<ItemGroup>
Expand Down
26 changes: 0 additions & 26 deletions src/wixext/DependencyCommon.cs

This file was deleted.

Loading

0 comments on commit 3fae69c

Please sign in to comment.