-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure naked files take Subdirectory into account.
Naked files generated their ids using the attributes that are common to both naked and clothed files. But naked files also support @subdirectory to magic up a subdirectory in a specified directory (@Directory) or the default INSTALLFOLDER. That subdirectory needs to factor in to the generated file id (which is then used as the component id too). Without it, generated ids for files with the same name but from different @subdirectory values would be duplicated. (Authored file ids must also continue to be supported.) Naked files now generate different file and component ids. :( Fixes wixtoolset/issues#8674
- Loading branch information
Showing
12 changed files
with
100 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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 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 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 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
5 changes: 5 additions & 0 deletions
5
src/wix/test/WixToolsetTest.CoreIntegration/TestData/HarvestFiles/DuplicateNames.wxs
This file contains 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,5 @@ | ||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
<Package Name="MsiPackage" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="047730a5-30fe-4a62-a520-da9381b8226a"> | ||
<Files Include="dupes\**" /> | ||
</Package> | ||
</Wix> |
Empty file.
Empty file.
Empty file.
Empty file.
9 changes: 9 additions & 0 deletions
9
src/wix/test/WixToolsetTest.CoreIntegration/TestData/NakedFile/DuplicateNames.wxs
This file contains 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,9 @@ | ||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
<Package Name="GenManyComponents 5x1" Manufacturer="FireGiant" Version="1.0.0.0" UpgradeCode="b146c9a9-7184-413c-8ab2-b65ed869feb9"> | ||
<File Subdirectory='0000' Name='0000.x' Source='$(sys.SOURCEFILEPATH)' /> | ||
<File Subdirectory='0001' Name='0000.x' Source='$(sys.SOURCEFILEPATH)' /> | ||
<File Subdirectory='0002' Name='0000.x' Source='$(sys.SOURCEFILEPATH)' /> | ||
<File Subdirectory='0003' Name='0000.x' Source='$(sys.SOURCEFILEPATH)' /> | ||
<File Subdirectory='0004' Name='0000.x' Source='$(sys.SOURCEFILEPATH)' /> | ||
</Package> | ||
</Wix> |
10 changes: 4 additions & 6 deletions
10
src/wix/test/WixToolsetTest.CoreIntegration/TestData/NakedFile/Package.wxs
This file contains 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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
<Package Name="MsiPackage" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="047730a5-30fe-4a62-a520-da9381b8226a"> | ||
<MajorUpgrade DowngradeErrorMessage="Downgrade error message." /> | ||
|
||
<File Directory="INSTALLFOLDER" Source="test.txt" /> | ||
<File Directory="INSTALLFOLDER" Source="test.txt" Name="test2.txt" /> | ||
<File Directory="INSTALLFOLDER" Source="test.txt" Name="test3.txt" /> | ||
<File Directory="INSTALLFOLDER" Source="test.txt" Name="test4.txt" /> | ||
<File Directory="INSTALLFOLDER" Subdirectory="X" Source="test.txt" /> | ||
<File Directory="INSTALLFOLDER" Subdirectory="X" Source="test.txt" Name="test2.txt" /> | ||
<File Directory="INSTALLFOLDER" Subdirectory="X3" Source="test.txt" Name="test3.txt" /> | ||
<File Directory="INSTALLFOLDER" Subdirectory="X4" Source="test.txt" Name="test4.txt" /> | ||
</Package> | ||
</Wix> |
10 changes: 4 additions & 6 deletions
10
...est/WixToolsetTest.CoreIntegration/TestData/NakedFile/PackageWithDefaultInstallFolder.wxs
This file contains 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 |
---|---|---|
@@ -1,10 +1,8 @@ | ||
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
<Package Name="MsiPackage" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="047730a5-30fe-4a62-a520-da9381b8226a"> | ||
<MajorUpgrade DowngradeErrorMessage="Downgrade error message." /> | ||
|
||
<File Source="test.txt" /> | ||
<File Source="test.txt" Name="test2.txt" /> | ||
<File Source="test.txt" Name="test3.txt" /> | ||
<File Source="test.txt" Name="test4.txt" /> | ||
<File Subdirectory="X" Name="test.txt" Source="test.txt" /> | ||
<File Subdirectory="X" Name="test2.txt" Source="test.txt" /> | ||
<File Subdirectory="X3" Name="test3.txt" Source="test.txt" /> | ||
<File Subdirectory="X4" Name="test4.txt" Source="test.txt" /> | ||
</Package> | ||
</Wix> |