aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/WixToolsetTest.Converters/ConditionFixture.cs8
-rw-r--r--src/test/WixToolsetTest.Converters/ConverterIntegrationFixture.cs8
-rw-r--r--src/test/WixToolsetTest.Converters/ExtensionFixture.cs (renamed from src/test/WixToolsetTest.Converters/FirewallExtensionFixture.cs)2
-rw-r--r--src/test/WixToolsetTest.Converters/ProductPackageFixture.cs209
-rw-r--r--src/test/WixToolsetTest.Converters/TestData/PackageSummaryInformation/TypicalV3.msibin0 -> 32768 bytes
-rw-r--r--src/test/WixToolsetTest.Converters/TestData/PackageSummaryInformation/TypicalV3.wxs37
-rw-r--r--src/test/WixToolsetTest.Converters/TestData/Preprocessor/ConvertedPreprocessor.wxs8
-rw-r--r--src/test/WixToolsetTest.Converters/TestData/QtExec.bad/v4_expected.wxs8
-rw-r--r--src/test/WixToolsetTest.Converters/TestData/QtExec/v4_expected.wxs8
-rw-r--r--src/test/WixToolsetTest.Converters/TestData/SingleFile/ConvertedSingleFile.wxs8
-rw-r--r--src/test/WixToolsetTest.Converters/WixToolsetTest.Converters.csproj2
11 files changed, 274 insertions, 24 deletions
diff --git a/src/test/WixToolsetTest.Converters/ConditionFixture.cs b/src/test/WixToolsetTest.Converters/ConditionFixture.cs
index 629fbd2a..75ceec31 100644
--- a/src/test/WixToolsetTest.Converters/ConditionFixture.cs
+++ b/src/test/WixToolsetTest.Converters/ConditionFixture.cs
@@ -220,6 +220,7 @@ namespace WixToolsetTest.Converters
220 "<?xml version=\"1.0\" encoding=\"utf-16\"?>", 220 "<?xml version=\"1.0\" encoding=\"utf-16\"?>",
221 "<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>", 221 "<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>",
222 " <Product>", 222 " <Product>",
223 " <Package />",
223 " <Condition Message='Stop the install'>", 224 " <Condition Message='Stop the install'>",
224 " 1&lt;2", 225 " 1&lt;2",
225 " </Condition>", 226 " </Condition>",
@@ -232,10 +233,11 @@ namespace WixToolsetTest.Converters
232 var expected = new[] 233 var expected = new[]
233 { 234 {
234 "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">", 235 "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">",
235 " <Product>", 236 " <Package>",
237 " ",
236 " <Launch Condition=\"1&lt;2\" Message=\"Stop the install\" />", 238 " <Launch Condition=\"1&lt;2\" Message=\"Stop the install\" />",
237 " <Launch Condition=\"1=2\" Message=\"Do not stop\" />", 239 " <Launch Condition=\"1=2\" Message=\"Do not stop\" />",
238 " </Product>", 240 " </Package>",
239 "</Wix>" 241 "</Wix>"
240 }; 242 };
241 243
@@ -245,7 +247,7 @@ namespace WixToolsetTest.Converters
245 var converter = new WixConverter(messaging, 2, null, null); 247 var converter = new WixConverter(messaging, 2, null, null);
246 248
247 var errors = converter.ConvertDocument(document); 249 var errors = converter.ConvertDocument(document);
248 Assert.Equal(4, errors); 250 Assert.Equal(5, errors);
249 251
250 var actualLines = UnformattedDocumentLines(document); 252 var actualLines = UnformattedDocumentLines(document);
251 WixAssert.CompareLineByLine(expected, actualLines); 253 WixAssert.CompareLineByLine(expected, actualLines);
diff --git a/src/test/WixToolsetTest.Converters/ConverterIntegrationFixture.cs b/src/test/WixToolsetTest.Converters/ConverterIntegrationFixture.cs
index 09387590..38afca72 100644
--- a/src/test/WixToolsetTest.Converters/ConverterIntegrationFixture.cs
+++ b/src/test/WixToolsetTest.Converters/ConverterIntegrationFixture.cs
@@ -58,7 +58,7 @@ namespace WixToolsetTest.Converters
58 var converter = new WixConverter(messaging, 4); 58 var converter = new WixConverter(messaging, 4);
59 var errors = converter.ConvertFile(targetFile, true); 59 var errors = converter.ConvertFile(targetFile, true);
60 60
61 Assert.Equal(7, errors); 61 Assert.Equal(8, errors);
62 62
63 var expected = File.ReadAllText(Path.Combine(folder, afterFileName)).Replace("\r\n", "\n"); 63 var expected = File.ReadAllText(Path.Combine(folder, afterFileName)).Replace("\r\n", "\n");
64 var actual = File.ReadAllText(targetFile).Replace("\r\n", "\n"); 64 var actual = File.ReadAllText(targetFile).Replace("\r\n", "\n");
@@ -84,7 +84,7 @@ namespace WixToolsetTest.Converters
84 var settingsFile = Path.Combine(folder, "wixcop.settings.xml"); 84 var settingsFile = Path.Combine(folder, "wixcop.settings.xml");
85 85
86 var result = RunConversion(targetFile, settingsFile: settingsFile); 86 var result = RunConversion(targetFile, settingsFile: settingsFile);
87 Assert.Equal(7, result.ExitCode); 87 Assert.Equal(8, result.ExitCode);
88 88
89 var expected = File.ReadAllText(Path.Combine(folder, afterFileName)).Replace("\r\n", "\n"); 89 var expected = File.ReadAllText(Path.Combine(folder, afterFileName)).Replace("\r\n", "\n");
90 var actual = File.ReadAllText(targetFile).Replace("\r\n", "\n"); 90 var actual = File.ReadAllText(targetFile).Replace("\r\n", "\n");
@@ -108,7 +108,7 @@ namespace WixToolsetTest.Converters
108 File.Copy(Path.Combine(folder, beforeFileName), Path.Combine(baseFolder, beforeFileName)); 108 File.Copy(Path.Combine(folder, beforeFileName), Path.Combine(baseFolder, beforeFileName));
109 109
110 var result = RunConversion(targetFile); 110 var result = RunConversion(targetFile);
111 Assert.Equal(11, result.ExitCode); 111 Assert.Equal(12, result.ExitCode);
112 112
113 var expected = File.ReadAllText(Path.Combine(folder, afterFileName)).Replace("\r\n", "\n"); 113 var expected = File.ReadAllText(Path.Combine(folder, afterFileName)).Replace("\r\n", "\n");
114 var actual = File.ReadAllText(targetFile).Replace("\r\n", "\n"); 114 var actual = File.ReadAllText(targetFile).Replace("\r\n", "\n");
@@ -133,7 +133,7 @@ namespace WixToolsetTest.Converters
133 133
134 var result = RunConversion(targetFile); 134 var result = RunConversion(targetFile);
135 135
136 Assert.Equal(11, result.ExitCode); 136 Assert.Equal(12, result.ExitCode);
137 Assert.Single(result.Messages.Where(message => message.ToString().EndsWith("(QtExecCmdTimeoutAmbiguous)"))); 137 Assert.Single(result.Messages.Where(message => message.ToString().EndsWith("(QtExecCmdTimeoutAmbiguous)")));
138 138
139 var expected = File.ReadAllText(Path.Combine(folder, afterFileName)).Replace("\r\n", "\n"); 139 var expected = File.ReadAllText(Path.Combine(folder, afterFileName)).Replace("\r\n", "\n");
diff --git a/src/test/WixToolsetTest.Converters/FirewallExtensionFixture.cs b/src/test/WixToolsetTest.Converters/ExtensionFixture.cs
index e6ec8568..4bf2ed3d 100644
--- a/src/test/WixToolsetTest.Converters/FirewallExtensionFixture.cs
+++ b/src/test/WixToolsetTest.Converters/ExtensionFixture.cs
@@ -9,7 +9,7 @@ namespace WixToolsetTest.Converters
9 using WixToolsetTest.Converters.Mocks; 9 using WixToolsetTest.Converters.Mocks;
10 using Xunit; 10 using Xunit;
11 11
12 public class FirewallExtensionFixture : BaseConverterFixture 12 public class ExtensionFixture : BaseConverterFixture
13 { 13 {
14 [Fact] 14 [Fact]
15 public void FixRemoteAddressValue() 15 public void FixRemoteAddressValue()
diff --git a/src/test/WixToolsetTest.Converters/ProductPackageFixture.cs b/src/test/WixToolsetTest.Converters/ProductPackageFixture.cs
new file mode 100644
index 00000000..9407ff16
--- /dev/null
+++ b/src/test/WixToolsetTest.Converters/ProductPackageFixture.cs
@@ -0,0 +1,209 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3namespace WixToolsetTest.Converters
4{
5 using System;
6 using System.IO;
7 using System.Xml.Linq;
8 using WixBuildTools.TestSupport;
9 using WixToolset.Converters;
10 using WixToolset.Core.TestPackage;
11 using WixToolsetTest.Converters.Mocks;
12 using Xunit;
13
14 public class ProductPackageFixture : BaseConverterFixture
15 {
16 [Fact]
17 public void FixesCompressed()
18 {
19 var parse = String.Join(Environment.NewLine,
20 "<?xml version=\"1.0\" encoding=\"utf-16\"?>",
21 "<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>",
22 " <Product>",
23 " <Package Compressed='yes' />",
24 " </Product>",
25 "</Wix>");
26
27 var expected = new[]
28 {
29 "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">",
30 " <Package Compressed=\"yes\">",
31 " ",
32 " </Package>",
33 "</Wix>"
34 };
35
36 AssertSuccess(parse, 3, expected);
37 }
38
39 private static void AssertSuccess(string input, int expectedErrorCount, string[] expected)
40 {
41 var document = XDocument.Parse(input, LoadOptions.PreserveWhitespace | LoadOptions.SetLineInfo);
42
43 var messaging = new MockMessaging();
44 var converter = new WixConverter(messaging, 2, null, null);
45
46 var errors = converter.ConvertDocument(document);
47 Assert.Equal(expectedErrorCount, errors);
48
49 var actualLines = UnformattedDocumentLines(document);
50 WixAssert.CompareLineByLine(expected, actualLines);
51 }
52
53 [Fact]
54 public void FixesInstallerVersion()
55 {
56 var parse = String.Join(Environment.NewLine,
57 "<?xml version=\"1.0\" encoding=\"utf-16\"?>",
58 "<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>",
59 " <Product>",
60 " <Package InstallerVersion='666' />",
61 " </Product>",
62 "</Wix>");
63
64 var expected = new[]
65 {
66 "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">",
67 " <Package InstallerVersion=\"666\">",
68 " ",
69 " </Package>",
70 "</Wix>"
71 };
72
73 AssertSuccess(parse, 3, expected);
74 }
75
76 [Fact]
77 public void FixesDefaultInstallerVersion()
78 {
79 var parse = String.Join(Environment.NewLine,
80 "<?xml version=\"1.0\" encoding=\"utf-16\"?>",
81 "<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>",
82 " <Product>",
83 " <Package InstallerVersion='500' />",
84 " </Product>",
85 "</Wix>");
86
87 var expected = new[]
88 {
89 "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">",
90 " <Package>",
91 " ",
92 " </Package>",
93 "</Wix>"
94 };
95
96 AssertSuccess(parse, 3, expected);
97 }
98
99 [Fact]
100 public void FixesNonDefaultInstallerVersion()
101 {
102 var parse = String.Join(Environment.NewLine,
103 "<?xml version=\"1.0\" encoding=\"utf-16\"?>",
104 "<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>",
105 " <Product>",
106 " <Package InstallerVersion='200' />",
107 " </Product>",
108 "</Wix>");
109
110 var expected = new[]
111 {
112 "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">",
113 " <Package InstallerVersion=\"200\">",
114 " ",
115 " </Package>",
116 "</Wix>"
117 };
118
119 AssertSuccess(parse, 3, expected);
120 }
121
122 [Fact]
123 public void FixesLimitedInstallerPrivileges()
124 {
125 var parse = String.Join(Environment.NewLine,
126 "<?xml version=\"1.0\" encoding=\"utf-16\"?>",
127 "<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>",
128 " <Product>",
129 " <Package InstallPrivileges='limited' />",
130 " </Product>",
131 "</Wix>");
132
133 var expected = new[]
134 {
135 "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">",
136 " <Package Scope=\"perUser\">",
137 " ",
138 " </Package>",
139 "</Wix>"
140 };
141
142 AssertSuccess(parse, 3, expected);
143 }
144
145 [Fact]
146 public void FixesElevatedInstallerPrivileges()
147 {
148 var parse = String.Join(Environment.NewLine,
149 "<?xml version=\"1.0\" encoding=\"utf-16\"?>",
150 "<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>",
151 " <Product>",
152 " <Package InstallPrivileges='elevated' />",
153 " <Property Id='ALLUSERS' Value='1' />",
154 " </Product>",
155 "</Wix>");
156
157 var expected = new[]
158 {
159 "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">",
160 " <Package>",
161 " ",
162 " ",
163 " </Package>",
164 "</Wix>"
165 };
166
167 AssertSuccess(parse, 3, expected);
168 }
169
170 [Fact]
171 public void CanDecompileAndRecompile()
172 {
173 using (var fs = new DisposableFileSystem())
174 {
175 var baseFolder = fs.GetFolder();
176 var intermediateFolder = Path.Combine(baseFolder, "obj");
177 var decompiledWxsPath = Path.Combine(baseFolder, "TypicalV3.wxs");
178
179 var folder = TestData.Get(@"TestData\PackageSummaryInformation");
180 var v3msiPath = Path.Combine(folder, "TypicalV3.msi");
181 var result = WixRunner.Execute(new[]
182 {
183 "decompile", v3msiPath,
184 "-intermediateFolder", intermediateFolder,
185 "-o", decompiledWxsPath
186 });
187
188 result.AssertSuccess();
189
190 var v4msiPath = Path.Combine(intermediateFolder, "TypicalV4.msi");
191 result = WixRunner.Execute(new[]
192 {
193 "build", decompiledWxsPath,
194 "-arch", "x64",
195 "-intermediateFolder", intermediateFolder,
196 "-o", v4msiPath
197 });
198
199 result.AssertSuccess();
200
201 Assert.True(File.Exists(v4msiPath));
202
203 var v3results = Query.QueryDatabase(v3msiPath, new[] { "_SummaryInformation", "Property" });
204 var v4results = Query.QueryDatabase(v4msiPath, new[] { "_SummaryInformation", "Property" });
205 WixAssert.CompareLineByLine(v3results, v4results);
206 }
207 }
208 }
209}
diff --git a/src/test/WixToolsetTest.Converters/TestData/PackageSummaryInformation/TypicalV3.msi b/src/test/WixToolsetTest.Converters/TestData/PackageSummaryInformation/TypicalV3.msi
new file mode 100644
index 00000000..0d7e1b21
--- /dev/null
+++ b/src/test/WixToolsetTest.Converters/TestData/PackageSummaryInformation/TypicalV3.msi
Binary files differ
diff --git a/src/test/WixToolsetTest.Converters/TestData/PackageSummaryInformation/TypicalV3.wxs b/src/test/WixToolsetTest.Converters/TestData/PackageSummaryInformation/TypicalV3.wxs
new file mode 100644
index 00000000..8c5027b4
--- /dev/null
+++ b/src/test/WixToolsetTest.Converters/TestData/PackageSummaryInformation/TypicalV3.wxs
@@ -0,0 +1,37 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3 <?define Name = "Package and summary information testing" ?>
4
5 <Product Id="*"
6 Name="$(var.Name)"
7 Language="1033"
8 Version="1.0"
9 Manufacturer="Example Corporation"
10 UpgradeCode="D86CAC27-51EA-46BD-8105-C465109AFA74">
11
12 <Package InstallerVersion="500"
13 Compressed="yes"
14 InstallScope="perMachine"
15 Platform="x64"
16 InstallPrivileges="elevated" />
17
18 <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
19 <MediaTemplate EmbedCab="yes" />
20
21 <Feature Id="Feature" Title="Installer" Level="1">
22 <ComponentGroupRef Id="ProductComponents" />
23 </Feature>
24
25 <Directory Id="TARGETDIR" Name="SourceDir">
26 <Directory Id="ProgramFiles64Folder">
27 <Directory Id="INSTALLFOLDER" Name="$(var.Name)" />
28 </Directory>
29 </Directory>
30
31 <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
32 <Component>
33 <RegistryValue Root="HKLM" Key="SOFTWARE\Example\$(var.Name)" Name="Installed" Value="1" Type="integer" />
34 </Component>
35 </ComponentGroup>
36 </Product>
37</Wix> \ No newline at end of file
diff --git a/src/test/WixToolsetTest.Converters/TestData/Preprocessor/ConvertedPreprocessor.wxs b/src/test/WixToolsetTest.Converters/TestData/Preprocessor/ConvertedPreprocessor.wxs
index ea52c71f..e601ae2a 100644
--- a/src/test/WixToolsetTest.Converters/TestData/Preprocessor/ConvertedPreprocessor.wxs
+++ b/src/test/WixToolsetTest.Converters/TestData/Preprocessor/ConvertedPreprocessor.wxs
@@ -1,12 +1,12 @@
1<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> 1<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
2 2
3 3
4 4
5<?include WixVer.wxi ?> 5<?include WixVer.wxi ?>
6 6
7<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:swid="http://wixtoolset.org/schemas/v4/wxs/tag" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"> 7<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:swid="http://wixtoolset.org/schemas/v4/wxs/tag" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
8 <Product Name="!(loc.ShortProduct) v$(var.WixMajorMinor) Core" Language="1033" Manufacturer="!(loc.Company)" Version="$(var.WixMsiProductVersion)" UpgradeCode="3618724B-2523-44F9-A908-866AA619504D"> 8 <Package Name="!(loc.ShortProduct) v$(var.WixMajorMinor) Core" Language="1033" Manufacturer="!(loc.Company)" Version="$(var.WixMsiProductVersion)" UpgradeCode="3618724B-2523-44F9-A908-866AA619504D" Compressed="yes" InstallerVersion="200">
9 <Package Compressed="yes" InstallerVersion="200" SummaryCodepage="1252" InstallScope="perMachine" /> 9
10 <swid:Tag Regid="!(loc.Regid)" InstallDirectory="INSTALLFOLDER" /> 10 <swid:Tag Regid="!(loc.Regid)" InstallDirectory="INSTALLFOLDER" />
11 11
12 <MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed." /> 12 <MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed." />
@@ -57,5 +57,5 @@
57 <FeatureRef Id="Feature_Intellisense2012" /> 57 <FeatureRef Id="Feature_Intellisense2012" />
58 <FeatureRef Id="Feature_Intellisense2013" /> 58 <FeatureRef Id="Feature_Intellisense2013" />
59 <FeatureRef Id="Feature_Intellisense2015" /> 59 <FeatureRef Id="Feature_Intellisense2015" />
60 </Product> 60 </Package>
61</Wix> 61</Wix>
diff --git a/src/test/WixToolsetTest.Converters/TestData/QtExec.bad/v4_expected.wxs b/src/test/WixToolsetTest.Converters/TestData/QtExec.bad/v4_expected.wxs
index 0266e177..169eb07e 100644
--- a/src/test/WixToolsetTest.Converters/TestData/QtExec.bad/v4_expected.wxs
+++ b/src/test/WixToolsetTest.Converters/TestData/QtExec.bad/v4_expected.wxs
@@ -1,12 +1,12 @@
1<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> 1<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
2 2
3 3
4 4
5<?include WixVer.wxi ?> 5<?include WixVer.wxi ?>
6 6
7<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:swid="http://wixtoolset.org/schemas/v4/wxs/tag" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"> 7<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:swid="http://wixtoolset.org/schemas/v4/wxs/tag" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
8 <Product Name="!(loc.ShortProduct) v$(var.WixMajorMinor) Core" Language="1033" Manufacturer="!(loc.Company)" Version="$(var.WixMsiProductVersion)" UpgradeCode="3618724B-2523-44F9-A908-866AA619504D"> 8 <Package Name="!(loc.ShortProduct) v$(var.WixMajorMinor) Core" Language="1033" Manufacturer="!(loc.Company)" Version="$(var.WixMsiProductVersion)" UpgradeCode="3618724B-2523-44F9-A908-866AA619504D" Compressed="yes" InstallerVersion="200">
9 <Package Compressed="yes" InstallerVersion="200" SummaryCodepage="1252" InstallScope="perMachine" /> 9
10 <swid:Tag Regid="!(loc.Regid)" InstallDirectory="INSTALLFOLDER" /> 10 <swid:Tag Regid="!(loc.Regid)" InstallDirectory="INSTALLFOLDER" />
11 11
12 <MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed." /> 12 <MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed." />
@@ -59,5 +59,5 @@
59 <FeatureRef Id="Feature_Intellisense2012" /> 59 <FeatureRef Id="Feature_Intellisense2012" />
60 <FeatureRef Id="Feature_Intellisense2013" /> 60 <FeatureRef Id="Feature_Intellisense2013" />
61 <FeatureRef Id="Feature_Intellisense2015" /> 61 <FeatureRef Id="Feature_Intellisense2015" />
62 </Product> 62 </Package>
63</Wix> 63</Wix>
diff --git a/src/test/WixToolsetTest.Converters/TestData/QtExec/v4_expected.wxs b/src/test/WixToolsetTest.Converters/TestData/QtExec/v4_expected.wxs
index da4f5135..71df9fd9 100644
--- a/src/test/WixToolsetTest.Converters/TestData/QtExec/v4_expected.wxs
+++ b/src/test/WixToolsetTest.Converters/TestData/QtExec/v4_expected.wxs
@@ -1,12 +1,12 @@
1<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> 1<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
2 2
3 3
4 4
5<?include WixVer.wxi ?> 5<?include WixVer.wxi ?>
6 6
7<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:swid="http://wixtoolset.org/schemas/v4/wxs/tag" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"> 7<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:swid="http://wixtoolset.org/schemas/v4/wxs/tag" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
8 <Product Name="!(loc.ShortProduct) v$(var.WixMajorMinor) Core" Language="1033" Manufacturer="!(loc.Company)" Version="$(var.WixMsiProductVersion)" UpgradeCode="3618724B-2523-44F9-A908-866AA619504D"> 8 <Package Name="!(loc.ShortProduct) v$(var.WixMajorMinor) Core" Language="1033" Manufacturer="!(loc.Company)" Version="$(var.WixMsiProductVersion)" UpgradeCode="3618724B-2523-44F9-A908-866AA619504D" Compressed="yes" InstallerVersion="200">
9 <Package Compressed="yes" InstallerVersion="200" SummaryCodepage="1252" InstallScope="perMachine" /> 9
10 <swid:Tag Regid="!(loc.Regid)" InstallDirectory="INSTALLFOLDER" /> 10 <swid:Tag Regid="!(loc.Regid)" InstallDirectory="INSTALLFOLDER" />
11 11
12 <MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed." /> 12 <MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed." />
@@ -58,5 +58,5 @@
58 <FeatureRef Id="Feature_Intellisense2012" /> 58 <FeatureRef Id="Feature_Intellisense2012" />
59 <FeatureRef Id="Feature_Intellisense2013" /> 59 <FeatureRef Id="Feature_Intellisense2013" />
60 <FeatureRef Id="Feature_Intellisense2015" /> 60 <FeatureRef Id="Feature_Intellisense2015" />
61 </Product> 61 </Package>
62</Wix> 62</Wix>
diff --git a/src/test/WixToolsetTest.Converters/TestData/SingleFile/ConvertedSingleFile.wxs b/src/test/WixToolsetTest.Converters/TestData/SingleFile/ConvertedSingleFile.wxs
index ec4d84d5..b52f5855 100644
--- a/src/test/WixToolsetTest.Converters/TestData/SingleFile/ConvertedSingleFile.wxs
+++ b/src/test/WixToolsetTest.Converters/TestData/SingleFile/ConvertedSingleFile.wxs
@@ -1,12 +1,12 @@
1<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> 1<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
2 2
3 3
4 4
5<?include WixVer.wxi ?> 5<?include WixVer.wxi ?>
6 6
7<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:swid="http://wixtoolset.org/schemas/v4/wxs/tag" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"> 7<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:swid="http://wixtoolset.org/schemas/v4/wxs/tag" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
8 <Product Name="!(loc.ShortProduct) v$(var.WixMajorMinor) Core" Language="1033" Manufacturer="!(loc.Company)" Version="$(var.WixMsiProductVersion)" UpgradeCode="3618724B-2523-44F9-A908-866AA619504D"> 8 <Package Name="!(loc.ShortProduct) v$(var.WixMajorMinor) Core" Language="1033" Manufacturer="!(loc.Company)" Version="$(var.WixMsiProductVersion)" UpgradeCode="3618724B-2523-44F9-A908-866AA619504D" Compressed="yes" InstallerVersion="200">
9 <Package Compressed="yes" InstallerVersion="200" SummaryCodepage="1252" InstallScope="perMachine" /> 9
10 <swid:Tag Regid="!(loc.Regid)" InstallDirectory="INSTALLFOLDER" /> 10 <swid:Tag Regid="!(loc.Regid)" InstallDirectory="INSTALLFOLDER" />
11 11
12 <MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed." /> 12 <MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed." />
@@ -55,5 +55,5 @@
55 <FeatureRef Id="Feature_Intellisense2012" /> 55 <FeatureRef Id="Feature_Intellisense2012" />
56 <FeatureRef Id="Feature_Intellisense2013" /> 56 <FeatureRef Id="Feature_Intellisense2013" />
57 <FeatureRef Id="Feature_Intellisense2015" /> 57 <FeatureRef Id="Feature_Intellisense2015" />
58 </Product> 58 </Package>
59</Wix> 59</Wix>
diff --git a/src/test/WixToolsetTest.Converters/WixToolsetTest.Converters.csproj b/src/test/WixToolsetTest.Converters/WixToolsetTest.Converters.csproj
index 9f761738..b09b5418 100644
--- a/src/test/WixToolsetTest.Converters/WixToolsetTest.Converters.csproj
+++ b/src/test/WixToolsetTest.Converters/WixToolsetTest.Converters.csproj
@@ -23,6 +23,8 @@
23 <Content Include="TestData\QtExec.bad\v4_expected.wxs" CopyToOutputDirectory="PreserveNewest" /> 23 <Content Include="TestData\QtExec.bad\v4_expected.wxs" CopyToOutputDirectory="PreserveNewest" />
24 <Content Include="TestData\SingleFile\ConvertedSingleFile.wxs" CopyToOutputDirectory="PreserveNewest" /> 24 <Content Include="TestData\SingleFile\ConvertedSingleFile.wxs" CopyToOutputDirectory="PreserveNewest" />
25 <Content Include="TestData\SingleFile\SingleFile.wxs" CopyToOutputDirectory="PreserveNewest" /> 25 <Content Include="TestData\SingleFile\SingleFile.wxs" CopyToOutputDirectory="PreserveNewest" />
26 <Content Include="TestData\PackageSummaryInformation\TypicalV3.wxs" CopyToOutputDirectory="PreserveNewest" />
27 <Content Include="TestData\PackageSummaryInformation\TypicalV3.msi" CopyToOutputDirectory="PreserveNewest" />
26 </ItemGroup> 28 </ItemGroup>
27 29
28 <ItemGroup> 30 <ItemGroup>