diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-01-06 15:15:35 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-01-06 15:24:56 -0800 |
| commit | 093e1dd144b260b58a0ae46d722d1dbc4019d9d5 (patch) | |
| tree | 6fd63241e2b196b040d26b3b1749d4c3ecbc531c /src/test/WixToolsetTest.CoreIntegration/TestData | |
| parent | bf30546113c5f1ffc4cf917b560c5a0451eda37d (diff) | |
| download | wix-093e1dd144b260b58a0ae46d722d1dbc4019d9d5.tar.gz wix-093e1dd144b260b58a0ae46d722d1dbc4019d9d5.tar.bz2 wix-093e1dd144b260b58a0ae46d722d1dbc4019d9d5.zip | |
Implement improved file sequence optimization
First ensures files are grouped by DiskId. Then files are sequenced by
target directory order to optimize MSI installation behavior. Finally,
files are alphabetized in the directory. Additional optimizations could
be considered in the future from here.
Fixes wixtoolset/issues#4409
Fixes wixtoolset/issues#4708
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/TestData')
5 files changed, 32 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/Media/MultiMedia.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/Media/MultiMedia.wxs new file mode 100644 index 00000000..8a555bda --- /dev/null +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/Media/MultiMedia.wxs | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
| 2 | <Package Name="~MultiMedia" Codepage="1252" Language="1033" Version="1.0.0.0" Manufacturer="Example Corporation" | ||
| 3 | UpgradeCode="12E4699F-E774-4D05-8A01-5BDD41BBA127"> | ||
| 4 | |||
| 5 | <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> | ||
| 6 | |||
| 7 | <Media Id="1" Cabinet="cab1.cab" /> | ||
| 8 | <Media Id="2" Cabinet="cab2.cab" /> | ||
| 9 | |||
| 10 | <Feature Id="ProductFeature" Title="MsiPackageTitle"> | ||
| 11 | <Component Directory="ProgramFilesFolder:\~MultiMedia" DiskId="1"> | ||
| 12 | <File Source="a1.txt" /> | ||
| 13 | </Component> | ||
| 14 | |||
| 15 | <Component Directory="ProgramFilesFolder:\~MultiMedia" DiskId="1"> | ||
| 16 | <File Source="a2.txt" /> | ||
| 17 | </Component> | ||
| 18 | |||
| 19 | <Component Directory="ProgramFilesFolder:\~MultiMedia" DiskId="2"> | ||
| 20 | <File Source="b2.txt" /> | ||
| 21 | </Component> | ||
| 22 | |||
| 23 | <Component Directory="ProgramFilesFolder:\~MultiMedia" DiskId="2"> | ||
| 24 | <File Source="b1.txt" /> | ||
| 25 | </Component> | ||
| 26 | </Feature> | ||
| 27 | </Package> | ||
| 28 | </Wix> | ||
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/Media/data/a1.txt b/src/test/WixToolsetTest.CoreIntegration/TestData/Media/data/a1.txt new file mode 100644 index 00000000..ad9cdcb5 --- /dev/null +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/Media/data/a1.txt | |||
| @@ -0,0 +1 @@ | |||
| This is a1.txt \ No newline at end of file | |||
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/Media/data/a2.txt b/src/test/WixToolsetTest.CoreIntegration/TestData/Media/data/a2.txt new file mode 100644 index 00000000..d5de23de --- /dev/null +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/Media/data/a2.txt | |||
| @@ -0,0 +1 @@ | |||
| This is a2.txt \ No newline at end of file | |||
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/Media/data/b1.txt b/src/test/WixToolsetTest.CoreIntegration/TestData/Media/data/b1.txt new file mode 100644 index 00000000..88bc4a56 --- /dev/null +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/Media/data/b1.txt | |||
| @@ -0,0 +1 @@ | |||
| This is b1.txt \ No newline at end of file | |||
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/Media/data/b2.txt b/src/test/WixToolsetTest.CoreIntegration/TestData/Media/data/b2.txt new file mode 100644 index 00000000..38525276 --- /dev/null +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/Media/data/b2.txt | |||
| @@ -0,0 +1 @@ | |||
| This is b2.txt \ No newline at end of file | |||
