diff options
author | Rob Mensching <rob@firegiant.com> | 2021-04-05 12:55:26 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-04-06 16:10:05 -0700 |
commit | 860f77f7c9d522074dc7e44cfe11281efd20687f (patch) | |
tree | 49527e82264f2dac88247885e937f935ae2ac658 /src/test | |
parent | 94db5671e85ce63487e3a415251cad0eb6abe3d1 (diff) | |
download | wix-860f77f7c9d522074dc7e44cfe11281efd20687f.tar.gz wix-860f77f7c9d522074dc7e44cfe11281efd20687f.tar.bz2 wix-860f77f7c9d522074dc7e44cfe11281efd20687f.zip |
Introduce "Subdirectory" which simplifies inline directory syntax
Completes wixtoolset/issues#4727
Diffstat (limited to 'src/test')
13 files changed, 72 insertions, 40 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/DirectoryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/DirectoryFixture.cs index 2d6e4802..56f8ba82 100644 --- a/src/test/WixToolsetTest.CoreIntegration/DirectoryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/DirectoryFixture.cs | |||
@@ -7,6 +7,7 @@ namespace WixToolsetTest.CoreIntegration | |||
7 | using WixBuildTools.TestSupport; | 7 | using WixBuildTools.TestSupport; |
8 | using WixToolset.Core.TestPackage; | 8 | using WixToolset.Core.TestPackage; |
9 | using WixToolset.Data; | 9 | using WixToolset.Data; |
10 | using WixToolset.Data.WindowsInstaller; | ||
10 | using Xunit; | 11 | using Xunit; |
11 | 12 | ||
12 | public class DirectoryFixture | 13 | public class DirectoryFixture |
@@ -40,11 +41,11 @@ namespace WixToolsetTest.CoreIntegration | |||
40 | var dirSymbols = section.Symbols.OfType<WixToolset.Data.Symbols.DirectorySymbol>().ToList(); | 41 | var dirSymbols = section.Symbols.OfType<WixToolset.Data.Symbols.DirectorySymbol>().ToList(); |
41 | Assert.Equal(new[] | 42 | Assert.Equal(new[] |
42 | { | 43 | { |
43 | "INSTALLFOLDER", | 44 | "INSTALLFOLDER:ProgramFiles6432Folder:MsiPackage", |
44 | "ProgramFiles6432Folder", | 45 | "ProgramFiles6432Folder:ProgramFilesFolder:.", |
45 | "ProgramFilesFolder", | 46 | "ProgramFilesFolder:TARGETDIR:PFiles", |
46 | "TARGETDIR" | 47 | "TARGETDIR::SourceDir" |
47 | }, dirSymbols.Select(d => d.Id.Id).ToArray()); | 48 | }, dirSymbols.OrderBy(d => d.Id.Id).Select(d => d.Id.Id + ":" + d.ParentDirectoryRef + ":" + d.Name).ToArray()); |
48 | } | 49 | } |
49 | } | 50 | } |
50 | 51 | ||
@@ -78,11 +79,11 @@ namespace WixToolsetTest.CoreIntegration | |||
78 | var dirSymbols = section.Symbols.OfType<WixToolset.Data.Symbols.DirectorySymbol>().ToList(); | 79 | var dirSymbols = section.Symbols.OfType<WixToolset.Data.Symbols.DirectorySymbol>().ToList(); |
79 | Assert.Equal(new[] | 80 | Assert.Equal(new[] |
80 | { | 81 | { |
81 | "INSTALLFOLDER", | 82 | "INSTALLFOLDER:ProgramFiles6432Folder:MsiPackage", |
82 | "ProgramFiles6432Folder", | 83 | "ProgramFiles6432Folder:ProgramFiles64Folder:.", |
83 | "ProgramFiles64Folder", | 84 | "ProgramFiles64Folder:TARGETDIR:PFiles64", |
84 | "TARGETDIR" | 85 | "TARGETDIR::SourceDir" |
85 | }, dirSymbols.Select(d => d.Id.Id).ToArray()); | 86 | }, dirSymbols.OrderBy(d => d.Id.Id).Select(d => d.Id.Id + ":" + d.ParentDirectoryRef + ":" + d.Name).ToArray()); |
86 | } | 87 | } |
87 | } | 88 | } |
88 | 89 | ||
@@ -116,12 +117,14 @@ namespace WixToolsetTest.CoreIntegration | |||
116 | var dirSymbols = section.Symbols.OfType<WixToolset.Data.Symbols.DirectorySymbol>().ToList(); | 117 | var dirSymbols = section.Symbols.OfType<WixToolset.Data.Symbols.DirectorySymbol>().ToList(); |
117 | Assert.Equal(new[] | 118 | Assert.Equal(new[] |
118 | { | 119 | { |
119 | "dirZsSsu81KcG46xXTwc4mTSZO5Zx4", | 120 | "dZsSsu81KcG46xXTwc4mTSZO5Zx4:INSTALLFOLDER:dupe", |
120 | "INSTALLFOLDER", | 121 | "INSTALLFOLDER:ProgramFiles6432Folder:MsiPackage", |
121 | "ProgramFiles6432Folder", | 122 | "ProgramFiles6432Folder:ProgramFiles64Folder:.", |
122 | "ProgramFiles64Folder", | 123 | "ProgramFiles64Folder:TARGETDIR:PFiles64", |
123 | "TARGETDIR" | 124 | "TARGETDIR::SourceDir" |
124 | }, dirSymbols.Select(d => d.Id.Id).ToArray()); | 125 | }, dirSymbols.OrderBy(d => d.Id.Id).Select(d => d.Id.Id + ":" + d.ParentDirectoryRef + ":" + d.Name).ToArray()); |
126 | } | ||
127 | } | ||
125 | } | 128 | } |
126 | } | 129 | } |
127 | } | 130 | } |
diff --git a/src/test/WixToolsetTest.CoreIntegration/ExtensionFixture.cs b/src/test/WixToolsetTest.CoreIntegration/ExtensionFixture.cs index ff0c3258..089658e6 100644 --- a/src/test/WixToolsetTest.CoreIntegration/ExtensionFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/ExtensionFixture.cs | |||
@@ -53,7 +53,7 @@ namespace WixToolsetTest.CoreIntegration | |||
53 | 53 | ||
54 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\extest.msi"))); | 54 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\extest.msi"))); |
55 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\extest.wixpdb"))); | 55 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\extest.wixpdb"))); |
56 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\MsiPackage\example.txt"))); | 56 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\PFiles\MsiPackage\example.txt"))); |
57 | 57 | ||
58 | var intermediate = Intermediate.Load(Path.Combine(intermediateFolder, @"bin\extest.wixpdb")); | 58 | var intermediate = Intermediate.Load(Path.Combine(intermediateFolder, @"bin\extest.wixpdb")); |
59 | var section = intermediate.Sections.Single(); | 59 | var section = intermediate.Sections.Single(); |
diff --git a/src/test/WixToolsetTest.CoreIntegration/LanguageFixture.cs b/src/test/WixToolsetTest.CoreIntegration/LanguageFixture.cs index 319b0788..610e44b8 100644 --- a/src/test/WixToolsetTest.CoreIntegration/LanguageFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/LanguageFixture.cs | |||
@@ -8,6 +8,7 @@ namespace WixToolsetTest.CoreIntegration | |||
8 | using WixToolset.Core.TestPackage; | 8 | using WixToolset.Core.TestPackage; |
9 | using WixToolset.Data; | 9 | using WixToolset.Data; |
10 | using WixToolset.Data.Symbols; | 10 | using WixToolset.Data.Symbols; |
11 | using WixToolset.Data.WindowsInstaller; | ||
11 | using Xunit; | 12 | using Xunit; |
12 | 13 | ||
13 | public class LanguageFixture | 14 | public class LanguageFixture |
@@ -36,6 +37,14 @@ namespace WixToolsetTest.CoreIntegration | |||
36 | var intermediate = Intermediate.Load(Path.Combine(baseFolder, @"bin\test.wixpdb")); | 37 | var intermediate = Intermediate.Load(Path.Combine(baseFolder, @"bin\test.wixpdb")); |
37 | var section = intermediate.Sections.Single(); | 38 | var section = intermediate.Sections.Single(); |
38 | 39 | ||
40 | var directorySymbols = section.Symbols.OfType<DirectorySymbol>(); | ||
41 | Assert.Equal(new[] | ||
42 | { | ||
43 | "INSTALLFOLDER:Example Corporation\\MsiPackage", | ||
44 | "ProgramFilesFolder:PFiles", | ||
45 | "TARGETDIR:SourceDir" | ||
46 | }, directorySymbols.OrderBy(s => s.Id.Id).Select(s => s.Id.Id + ":" + s.Name).ToArray()); | ||
47 | |||
39 | var propertySymbol = section.Symbols.OfType<PropertySymbol>().Single(p => p.Id.Id == "ProductLanguage"); | 48 | var propertySymbol = section.Symbols.OfType<PropertySymbol>().Single(p => p.Id.Id == "ProductLanguage"); |
40 | Assert.Equal("0", propertySymbol.Value); | 49 | Assert.Equal("0", propertySymbol.Value); |
41 | 50 | ||
@@ -44,6 +53,16 @@ namespace WixToolsetTest.CoreIntegration | |||
44 | 53 | ||
45 | var summaryCodepage = section.Symbols.OfType<SummaryInformationSymbol>().Single(s => s.PropertyId == SummaryInformationType.Codepage); | 54 | var summaryCodepage = section.Symbols.OfType<SummaryInformationSymbol>().Single(s => s.PropertyId == SummaryInformationType.Codepage); |
46 | Assert.Equal("1252", summaryCodepage.Value); | 55 | Assert.Equal("1252", summaryCodepage.Value); |
56 | |||
57 | var data = WindowsInstallerData.Load(Path.Combine(baseFolder, @"bin\test.wixpdb")); | ||
58 | var directoryRows = data.Tables["Directory"].Rows; | ||
59 | Assert.Equal(new[] | ||
60 | { | ||
61 | "d4EceYatXTyy8HXPt5B6DT9Rj.wE:u7-b4gch|Example Corporation", | ||
62 | "INSTALLFOLDER:oekcr5lq|MsiPackage", | ||
63 | "ProgramFilesFolder:PFiles", | ||
64 | "TARGETDIR:SourceDir" | ||
65 | }, directoryRows.Select(r => r.FieldAsString(0) + ":" + r.FieldAsString(2)).ToArray()); | ||
47 | } | 66 | } |
48 | } | 67 | } |
49 | 68 | ||
diff --git a/src/test/WixToolsetTest.CoreIntegration/LinkerFixture.cs b/src/test/WixToolsetTest.CoreIntegration/LinkerFixture.cs index f73a57d0..676d7d87 100644 --- a/src/test/WixToolsetTest.CoreIntegration/LinkerFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/LinkerFixture.cs | |||
@@ -68,7 +68,7 @@ namespace WixToolsetTest.CoreIntegration | |||
68 | 68 | ||
69 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.msi"))); | 69 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.msi"))); |
70 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.wixpdb"))); | 70 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.wixpdb"))); |
71 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\MsiPackage\test.txt"))); | 71 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\PFiles\MsiPackage\test.txt"))); |
72 | 72 | ||
73 | var intermediate = Intermediate.Load(Path.Combine(baseFolder, @"bin\test.wixpdb")); | 73 | var intermediate = Intermediate.Load(Path.Combine(baseFolder, @"bin\test.wixpdb")); |
74 | var section = intermediate.Sections.Single(); | 74 | var section = intermediate.Sections.Single(); |
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs index a8ea0a18..3bdfa0ef 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs | |||
@@ -40,7 +40,7 @@ namespace WixToolsetTest.CoreIntegration | |||
40 | 40 | ||
41 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.msi"))); | 41 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.msi"))); |
42 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.wixpdb"))); | 42 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.wixpdb"))); |
43 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\MsiPackage\test.txt"))); | 43 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\PFiles\MsiPackage\test.txt"))); |
44 | 44 | ||
45 | var intermediate = Intermediate.Load(Path.Combine(baseFolder, @"bin\test.wixpdb")); | 45 | var intermediate = Intermediate.Load(Path.Combine(baseFolder, @"bin\test.wixpdb")); |
46 | 46 | ||
@@ -240,7 +240,7 @@ namespace WixToolsetTest.CoreIntegration | |||
240 | 240 | ||
241 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.msi"))); | 241 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.msi"))); |
242 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.wixpdb"))); | 242 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.wixpdb"))); |
243 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\MsiPackage\test.txt"))); | 243 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\PFiles\MsiPackage\test.txt"))); |
244 | 244 | ||
245 | var intermediate = Intermediate.Load(Path.Combine(baseFolder, @"bin\test.wixpdb")); | 245 | var intermediate = Intermediate.Load(Path.Combine(baseFolder, @"bin\test.wixpdb")); |
246 | var section = intermediate.Sections.Single(); | 246 | var section = intermediate.Sections.Single(); |
@@ -351,7 +351,7 @@ namespace WixToolsetTest.CoreIntegration | |||
351 | var pdbPath = Path.Combine(intermediateFolder, @"bin\test.wixpdb"); | 351 | var pdbPath = Path.Combine(intermediateFolder, @"bin\test.wixpdb"); |
352 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\test.msi"))); | 352 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\test.msi"))); |
353 | Assert.True(File.Exists(pdbPath)); | 353 | Assert.True(File.Exists(pdbPath)); |
354 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\MsiPackage\test.txt"))); | 354 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\PFiles\MsiPackage\test.txt"))); |
355 | 355 | ||
356 | var intermediate = Intermediate.Load(pdbPath); | 356 | var intermediate = Intermediate.Load(pdbPath); |
357 | var section = intermediate.Sections.Single(); | 357 | var section = intermediate.Sections.Single(); |
@@ -527,7 +527,7 @@ namespace WixToolsetTest.CoreIntegration | |||
527 | 527 | ||
528 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.msi"))); | 528 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.msi"))); |
529 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.wixpdb"))); | 529 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.wixpdb"))); |
530 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\MsiPackage\test.txt"))); | 530 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\PFiles\MsiPackage\test.txt"))); |
531 | 531 | ||
532 | var intermediate = Intermediate.Load(Path.Combine(baseFolder, @"bin\test.wixpdb")); | 532 | var intermediate = Intermediate.Load(Path.Combine(baseFolder, @"bin\test.wixpdb")); |
533 | var section = intermediate.Sections.Single(); | 533 | var section = intermediate.Sections.Single(); |
@@ -563,7 +563,7 @@ namespace WixToolsetTest.CoreIntegration | |||
563 | 563 | ||
564 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.msi"))); | 564 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.msi"))); |
565 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.wixpdb"))); | 565 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.wixpdb"))); |
566 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\AssemblyMsiPackage\candle.exe"))); | 566 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\PFiles\AssemblyMsiPackage\candle.exe"))); |
567 | 567 | ||
568 | var intermediate = Intermediate.Load(Path.Combine(baseFolder, @"bin\test.wixpdb")); | 568 | var intermediate = Intermediate.Load(Path.Combine(baseFolder, @"bin\test.wixpdb")); |
569 | var section = intermediate.Sections.Single(); | 569 | var section = intermediate.Sections.Single(); |
@@ -721,7 +721,7 @@ namespace WixToolsetTest.CoreIntegration | |||
721 | 721 | ||
722 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.msi"))); | 722 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.msi"))); |
723 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.wixpdb"))); | 723 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.wixpdb"))); |
724 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\MsiPackage\Foo.exe"))); | 724 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\PFiles\MsiPackage\Foo.exe"))); |
725 | 725 | ||
726 | var intermediate = Intermediate.Load(Path.Combine(baseFolder, @"bin\test.wixpdb")); | 726 | var intermediate = Intermediate.Load(Path.Combine(baseFolder, @"bin\test.wixpdb")); |
727 | var section = intermediate.Sections.Single(); | 727 | var section = intermediate.Sections.Single(); |
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/CopyFile/CopyFile.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/CopyFile/CopyFile.wxs index 66208806..90d66cc3 100644 --- a/src/test/WixToolsetTest.CoreIntegration/TestData/CopyFile/CopyFile.wxs +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/CopyFile/CopyFile.wxs | |||
@@ -10,6 +10,8 @@ | |||
10 | </Fragment> | 10 | </Fragment> |
11 | 11 | ||
12 | <Fragment> | 12 | <Fragment> |
13 | <Directory Id="OtherFolder" Name="INSTALLFOLDER:\other" /> | 13 | <DirectoryRef Id="INSTALLFOLDER"> |
14 | <Directory Id="OtherFolder" Name="other" /> | ||
15 | </DirectoryRef> | ||
14 | </Fragment> | 16 | </Fragment> |
15 | </Wix> | 17 | </Wix> |
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/DuplicateDir/DuplicateDir.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/DuplicateDir/DuplicateDir.wxs index ffee969d..a58b68c8 100644 --- a/src/test/WixToolsetTest.CoreIntegration/TestData/DuplicateDir/DuplicateDir.wxs +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/DuplicateDir/DuplicateDir.wxs | |||
@@ -8,7 +8,7 @@ | |||
8 | </Fragment> | 8 | </Fragment> |
9 | 9 | ||
10 | <Fragment> | 10 | <Fragment> |
11 | <ComponentGroup Id="GroupA" Directory="INSTALLFOLDER:\dupe"> | 11 | <ComponentGroup Id="GroupA" Directory="INSTALLFOLDER" Subdirectory="dupe"> |
12 | <Component> | 12 | <Component> |
13 | <File Name="a.txt" Source="test.txt" /> | 13 | <File Name="a.txt" Source="test.txt" /> |
14 | </Component> | 14 | </Component> |
@@ -16,7 +16,7 @@ | |||
16 | </Fragment> | 16 | </Fragment> |
17 | 17 | ||
18 | <Fragment> | 18 | <Fragment> |
19 | <ComponentGroup Id="GroupB" Directory="INSTALLFOLDER:\dupe"> | 19 | <ComponentGroup Id="GroupB" Directory="INSTALLFOLDER" Subdirectory="dupe"> |
20 | <Component> | 20 | <Component> |
21 | <File Name="b.txt" Source="test.txt" /> | 21 | <File Name="b.txt" Source="test.txt" /> |
22 | </Component> | 22 | </Component> |
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/Language/Package.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/Language/Package.wxs index 2bbc14f9..db15796d 100644 --- a/src/test/WixToolsetTest.CoreIntegration/TestData/Language/Package.wxs +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/Language/Package.wxs | |||
@@ -11,6 +11,8 @@ | |||
11 | </Package> | 11 | </Package> |
12 | 12 | ||
13 | <Fragment> | 13 | <Fragment> |
14 | <Directory Id="INSTALLFOLDER" Name="ProgramFilesFolder:\MsiPackage" /> | 14 | <DirectoryRef Id="ProgramFilesFolder"> |
15 | <Directory Id="INSTALLFOLDER" Name="MsiPackage" /> | ||
16 | </DirectoryRef> | ||
15 | </Fragment> | 17 | </Fragment> |
16 | </Wix> | 18 | </Wix> |
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/Media/MultiMedia.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/Media/MultiMedia.wxs index 8a555bda..e7492db4 100644 --- a/src/test/WixToolsetTest.CoreIntegration/TestData/Media/MultiMedia.wxs +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/Media/MultiMedia.wxs | |||
@@ -8,19 +8,19 @@ | |||
8 | <Media Id="2" Cabinet="cab2.cab" /> | 8 | <Media Id="2" Cabinet="cab2.cab" /> |
9 | 9 | ||
10 | <Feature Id="ProductFeature" Title="MsiPackageTitle"> | 10 | <Feature Id="ProductFeature" Title="MsiPackageTitle"> |
11 | <Component Directory="ProgramFilesFolder:\~MultiMedia" DiskId="1"> | 11 | <Component Directory="ProgramFilesFolder" Subdirectory="~MultiMedia" DiskId="1"> |
12 | <File Source="a1.txt" /> | 12 | <File Source="a1.txt" /> |
13 | </Component> | 13 | </Component> |
14 | 14 | ||
15 | <Component Directory="ProgramFilesFolder:\~MultiMedia" DiskId="1"> | 15 | <Component Directory="ProgramFilesFolder" Subdirectory="~MultiMedia" DiskId="1"> |
16 | <File Source="a2.txt" /> | 16 | <File Source="a2.txt" /> |
17 | </Component> | 17 | </Component> |
18 | 18 | ||
19 | <Component Directory="ProgramFilesFolder:\~MultiMedia" DiskId="2"> | 19 | <Component Directory="ProgramFilesFolder" Subdirectory="~MultiMedia" DiskId="2"> |
20 | <File Source="b2.txt" /> | 20 | <File Source="b2.txt" /> |
21 | </Component> | 21 | </Component> |
22 | 22 | ||
23 | <Component Directory="ProgramFilesFolder:\~MultiMedia" DiskId="2"> | 23 | <Component Directory="ProgramFilesFolder" Subdirectory="~MultiMedia" DiskId="2"> |
24 | <File Source="b1.txt" /> | 24 | <File Source="b1.txt" /> |
25 | </Component> | 25 | </Component> |
26 | </Feature> | 26 | </Feature> |
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/PatchNoFileChanges/Package.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/PatchNoFileChanges/Package.wxs index 9d530376..5ad21a75 100644 --- a/src/test/WixToolsetTest.CoreIntegration/TestData/PatchNoFileChanges/Package.wxs +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/PatchNoFileChanges/Package.wxs | |||
@@ -4,7 +4,9 @@ | |||
4 | <MajorUpgrade DowngradeErrorMessage="Newer version already installed." /> | 4 | <MajorUpgrade DowngradeErrorMessage="Newer version already installed." /> |
5 | <MediaTemplate EmbedCab="yes" /> | 5 | <MediaTemplate EmbedCab="yes" /> |
6 | 6 | ||
7 | <Directory Id="INSTALLFOLDER" Name="ProgramFilesFolder:\~Test App" /> | 7 | <DirectoryRef Id="ProgramFilesFolder"> |
8 | <Directory Id="INSTALLFOLDER" Name="~Test App" /> | ||
9 | </DirectoryRef> | ||
8 | 10 | ||
9 | <Feature Id="Main"> | 11 | <Feature Id="Main"> |
10 | <ComponentGroupRef Id="Components" /> | 12 | <ComponentGroupRef Id="Components" /> |
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/ProductWithComponentGroupRef/Product.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/ProductWithComponentGroupRef/Product.wxs index f297c9e9..5a4e2c07 100644 --- a/src/test/WixToolsetTest.CoreIntegration/TestData/ProductWithComponentGroupRef/Product.wxs +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/ProductWithComponentGroupRef/Product.wxs | |||
@@ -1,4 +1,4 @@ | |||
1 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | 1 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
2 | <Package Name="MsiPackage" Codepage="1252" Language="1033" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="12E4699F-E774-4D05-8A01-5BDD41BBA127" Compressed="no" Scope="perMachine" ProductCode="83f9c623-26fe-42ab-951e-170022117f54"> | 2 | <Package Name="MsiPackage" Codepage="1252" Language="1033" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="12E4699F-E774-4D05-8A01-5BDD41BBA127" Compressed="no" Scope="perMachine" ProductCode="83f9c623-26fe-42ab-951e-170022117f54"> |
3 | 3 | ||
4 | <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> | 4 | <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> |
@@ -9,6 +9,8 @@ | |||
9 | </Package> | 9 | </Package> |
10 | 10 | ||
11 | <Fragment> | 11 | <Fragment> |
12 | <Directory Id="INSTALLFOLDER" Name="ProgramFiles6432Folder:\MsiPackage" /> | 12 | <DirectoryRef Id="ProgramFiles6432Folder"> |
13 | <Directory Id="INSTALLFOLDER" Name="MsiPackage" /> | ||
14 | </DirectoryRef> | ||
13 | </Fragment> | 15 | </Fragment> |
14 | </Wix> | 16 | </Wix> |
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/SameFileFolders/TestComponents.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/SameFileFolders/TestComponents.wxs index 765e6778..bbad63e6 100644 --- a/src/test/WixToolsetTest.CoreIntegration/TestData/SameFileFolders/TestComponents.wxs +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/SameFileFolders/TestComponents.wxs | |||
@@ -1,14 +1,14 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
3 | <Fragment> | 3 | <Fragment> |
4 | <ComponentGroup Id="ProductComponents"> | 4 | <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> |
5 | <Component Directory="INSTALLFOLDER:\a"> | 5 | <Component Subdirectory="a"> |
6 | <File Source="a\test.txt" /> | 6 | <File Source="a\test.txt" /> |
7 | </Component> | 7 | </Component> |
8 | <Component Directory="INSTALLFOLDER:\b"> | 8 | <Component Subdirectory="b"> |
9 | <File Source="b\test.txt" /> | 9 | <File Source="b\test.txt" /> |
10 | </Component> | 10 | </Component> |
11 | <Component Directory="INSTALLFOLDER:\c"> | 11 | <Component Subdirectory="c"> |
12 | <File Source="c\test.txt" /> | 12 | <File Source="c\test.txt" /> |
13 | </Component> | 13 | </Component> |
14 | </ComponentGroup> | 14 | </ComponentGroup> |
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/UsingProvides/Package.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/UsingProvides/Package.wxs index 9ddcdc90..70fdbb46 100644 --- a/src/test/WixToolsetTest.CoreIntegration/TestData/UsingProvides/Package.wxs +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/UsingProvides/Package.wxs | |||
@@ -9,6 +9,8 @@ | |||
9 | </Package> | 9 | </Package> |
10 | 10 | ||
11 | <Fragment> | 11 | <Fragment> |
12 | <Directory Id="INSTALLFOLDER" Name="ProgramFilesFolder:\MsiPackage" /> | 12 | <DirectoryRef Id="ProgramFilesFolder"> |
13 | <Directory Id="INSTALLFOLDER" Name="MsiPackage" /> | ||
14 | </DirectoryRef> | ||
13 | </Fragment> | 15 | </Fragment> |
14 | </Wix> | 16 | </Wix> |