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/WixToolsetTest.CoreIntegration/TestData | |
| 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/WixToolsetTest.CoreIntegration/TestData')
8 files changed, 26 insertions, 16 deletions
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> |
