diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2020-07-19 15:05:27 +1000 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2020-07-19 19:19:36 +1000 |
commit | 2a87b3e728fb56202d21d402cecc0bceeac49ade (patch) | |
tree | cf74ce123fc184aae60a2e0bdffaa958895ef245 /src/test | |
parent | f4cefb9ac9a6911ee0a1ad035e6ee50b7f28e5c5 (diff) | |
download | wix-2a87b3e728fb56202d21d402cecc0bceeac49ade.tar.gz wix-2a87b3e728fb56202d21d402cecc0bceeac49ade.tar.bz2 wix-2a87b3e728fb56202d21d402cecc0bceeac49ade.zip |
Generate the bundle's application manifest in the Burn backend.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs b/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs index cf57eae1..9c5ec6ec 100644 --- a/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/BundleFixture.cs | |||
@@ -13,6 +13,7 @@ namespace WixToolsetTest.CoreIntegration | |||
13 | using WixToolset.Data; | 13 | using WixToolset.Data; |
14 | using WixToolset.Data.Burn; | 14 | using WixToolset.Data.Burn; |
15 | using WixToolset.Data.Symbols; | 15 | using WixToolset.Data.Symbols; |
16 | using WixToolset.Dtf.Resources; | ||
16 | using Xunit; | 17 | using Xunit; |
17 | 18 | ||
18 | public class BundleFixture | 19 | public class BundleFixture |
@@ -115,6 +116,19 @@ namespace WixToolsetTest.CoreIntegration | |||
115 | "<Arp Register='yes' DisplayName='~TestBundle' DisplayVersion='1.0.0.0' Publisher='Example Corporation' />" + | 116 | "<Arp Register='yes' DisplayName='~TestBundle' DisplayVersion='1.0.0.0' Publisher='Example Corporation' />" + |
116 | "</Registration>", registrationElement.GetTestXml()); | 117 | "</Registration>", registrationElement.GetTestXml()); |
117 | } | 118 | } |
119 | |||
120 | var manifestResource = new Resource(ResourceType.Manifest, "#1", 1033); | ||
121 | manifestResource.Load(exePath); | ||
122 | var actualManifestData = Encoding.UTF8.GetString(manifestResource.Data); | ||
123 | Assert.Equal("<?xml version=\"1.0\" encoding=\"utf-8\"?>" + | ||
124 | "<assembly manifestVersion=\"1.0\" xmlns=\"urn:schemas-microsoft-com:asm.v1\">" + | ||
125 | "<assemblyIdentity name=\"test.exe\" version=\"1.0.0.0\" processorArchitecture=\"x86\" type=\"win32\" />" + | ||
126 | "<description>~TestBundle</description>" + | ||
127 | "<dependency><dependentAssembly><assemblyIdentity name=\"Microsoft.Windows.Common-Controls\" version=\"6.0.0.0\" processorArchitecture=\"x86\" publicKeyToken=\"6595b64144ccf1df\" language=\"*\" type=\"win32\" /></dependentAssembly></dependency>" + | ||
128 | "<compatibility xmlns=\"urn:schemas-microsoft-com:compatibility.v1\"><application><supportedOS Id=\"{e2011457-1546-43c5-a5fe-008deee3d3f0}\" /><supportedOS Id=\"{35138b9a-5d96-4fbd-8e2d-a2440225f93a}\" /><supportedOS Id=\"{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}\" /><supportedOS Id=\"{1f676c76-80e1-4239-95bb-83d0f6d0da78}\" /><supportedOS Id=\"{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}\" /></application></compatibility>" + | ||
129 | "<trustInfo xmlns=\"urn:schemas-microsoft-com:asm.v3\"><security><requestedPrivileges><requestedExecutionLevel level=\"asInvoker\" uiAccess=\"false\" /></requestedPrivileges></security></trustInfo>" + | ||
130 | "<application xmlns=\"urn:schemas-microsoft-com:asm.v3\"><windowsSettings><dpiAware xmlns=\"http://schemas.microsoft.com/SMI/2005/WindowsSettings\">true</dpiAware></windowsSettings></application>" + | ||
131 | "</assembly>", actualManifestData); | ||
118 | } | 132 | } |
119 | } | 133 | } |
120 | 134 | ||