Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
5d2a8a7
Added start of common errors / solutions
DrusTheAxe Feb 27, 2024
44d8dc0
Added StringToSid() and SidToString()
DrusTheAxe Feb 27, 2024
ff364b2
Added Is*ReadyOrNewerAvailable*(). Implemented RemovePackageByFullNam…
DrusTheAxe Feb 27, 2024
9b8b0ff
Fixed parameter name
DrusTheAxe Mar 2, 2024
4734bbc
Incorporated API Review feedback
DrusTheAxe Mar 2, 2024
1523bc6
Fixed build error
DrusTheAxe Mar 26, 2024
25d78a7
Added Progress variants
DrusTheAxe Mar 26, 2024
c783711
Refactored common code into WaitForDeploymentOperation
DrusTheAxe Mar 26, 2024
3135fd0
Fixed progress reporting incorrect .progress percentage values
DrusTheAxe Mar 28, 2024
8548473
Merge branch 'main' into user/drustheaxe/pkgmgmt-fwudk-and-isreadyorn…
DrusTheAxe Mar 28, 2024
ccb8ed6
Bumped Microsoft.FrameworkUdk to latest 1.6.1-CI-27587.1000.240327-10…
DrusTheAxe Mar 29, 2024
71dcb2c
Added more tests. Added IsPackageRegistrationPending. Removed dead co…
DrusTheAxe Mar 29, 2024
a7c31e8
Fixed Pending tests. Success!
DrusTheAxe Mar 29, 2024
5b7f878
Updated FrUdk to the right version
DrusTheAxe Mar 29, 2024
6b6aebd
Added PackageFamilyName() property to PackageIdentity
DrusTheAxe Apr 1, 2024
8fbbb0b
Initial updates using Uup_*() from FrameworkUdk
DrusTheAxe Apr 1, 2024
cef87f6
Added IsPackageDeploymentFeatureSupported and initial support for Con…
DrusTheAxe Apr 2, 2024
5bdef1b
Refactored test files in preparation of even more explosion
DrusTheAxe Apr 2, 2024
c92b718
Fixed RemovePackageOptions.FailIfNotFound. Added more tests
DrusTheAxe Apr 4, 2024
f1ae151
Fixed RemovePackageSetAsync tests feature check
DrusTheAxe Apr 4, 2024
5231072
Added partial tests for Reset+Repair. Fixed IsPackage*Ready(pkgfullname)
DrusTheAxe Apr 5, 2024
0844d9f
Updated Is*ReadyOrNewerAvailable() using FrameworkUdk. Tests. Lots of…
DrusTheAxe Apr 5, 2024
774033f
Improved logging
DrusTheAxe Apr 8, 2024
afb26c8
Containment doesn't do what it seemed to do; changed to alternative m…
DrusTheAxe Apr 22, 2024
c62a1d0
Updated the IsSupported machinery
DrusTheAxe Apr 23, 2024
b71c2cb
Refactored tests
DrusTheAxe Apr 24, 2024
522d61a
Merge branch 'main' into user/drustheaxe/pkgmgmt-fwudk-and-isreadyorn…
DrusTheAxe May 5, 2024
c307ee1
Fixed up some logging. Improved IsSupported verification
DrusTheAxe May 6, 2024
627df24
Expanded tests. Fixed some PackageSet parameter validations. Fixed Re…
DrusTheAxe May 13, 2024
875d4a0
Updated to latest FrameworkUdk
DrusTheAxe May 14, 2024
4da437d
Patched tests to deal with RemovePackage is awaiting updated Platform…
DrusTheAxe May 18, 2024
9a70d36
Removed dead code. Updated some not-impl to impl :-)
DrusTheAxe May 19, 2024
4f71112
Implement Repair notimpls
DrusTheAxe May 19, 2024
87d7d06
Repair!
DrusTheAxe May 19, 2024
8dfcb85
Added Repair tests
DrusTheAxe May 19, 2024
9e037c9
Added IsProvisioned
DrusTheAxe May 19, 2024
58cf1a0
Added Provisioning tests and support
DrusTheAxe May 21, 2024
23e6496
Added provision tests. Something's wrong with the options object not …
DrusTheAxe May 24, 2024
4355a4a
Added Deprovision tests (in progress). Added IsFeatureSupported.Provi…
DrusTheAxe May 27, 2024
32ddcf4
Test updates
DrusTheAxe May 27, 2024
2446155
Fixed typo
DrusTheAxe May 28, 2024
df6e346
Optimized test code
DrusTheAxe Jun 10, 2024
a1fcde5
Fix DevUnlock check on a machine w/o DeveloperMode enabled (last regi…
DrusTheAxe Jun 10, 2024
084d1e9
Upgraded TAEF to 10.92.240405002
DrusTheAxe Jun 10, 2024
8ad312f
Updated to use (require) latest Windows SDK (10.0.26100.0)
DrusTheAxe Jun 11, 2024
3b03cf6
Merge branch 'main' into user/drustheaxe/pkgmgmt-fwudk-and-isreadyorn…
DrusTheAxe Jun 11, 2024
2b62344
Updated DevCheck to verify Windows SDK 10.0.26100.0 is installed
DrusTheAxe Jun 11, 2024
f7d7c30
Fixed typo
DrusTheAxe Jun 11, 2024
03408ac
Improved reporting
DrusTheAxe Jun 11, 2024
1f1e9c4
Tweak build logic to support Windows SDK 10.0.26100.0 but not fail if…
DrusTheAxe Jun 11, 2024
a2728f5
Backoff requiring the latest SDK until the build image is updated to …
DrusTheAxe Jun 11, 2024
b387295
Tweaked SDK detection
DrusTheAxe Jun 12, 2024
ff6a378
Fixed some feature checks. Fixed test error reporting
DrusTheAxe Jun 12, 2024
b834117
Feature check for RemovePackageByUri can't succeed until we have the …
DrusTheAxe Jun 14, 2024
0ed6c01
Refactored tests
DrusTheAxe Jun 14, 2024
20f527e
Trap not-found condition in RepairPackageByUriAsync
DrusTheAxe Jun 14, 2024
51e702b
Fixed some URI handling
DrusTheAxe Jun 14, 2024
771a24a
Patched some provisioning code
DrusTheAxe Jun 15, 2024
d09af6c
Test fixes
DrusTheAxe Jun 15, 2024
8b91dc0
More test fixes
DrusTheAxe Jun 15, 2024
951e1b0
Merge branch 'main' into user/drustheaxe/pkgmgmt-fwudk-and-isreadyorn…
DrusTheAxe Jun 15, 2024
ad4a25f
Fixed ResetPackageByUriAsync to directly handle the operation w/o goi…
DrusTheAxe Jun 17, 2024
eb55b14
Fixed ResetPackageByUriAsync similar to the previous RepairPackageByU…
DrusTheAxe Jun 17, 2024
307472f
Fixed a couple of tests
DrusTheAxe Jun 18, 2024
45f53f2
Moar test hackery
DrusTheAxe Jun 18, 2024
6e28ddd
Added option to install Windows (Platform) SDK if desired
DrusTheAxe Jun 19, 2024
150909c
Fixed Repair+Reset if given a package family name that's not register…
DrusTheAxe Jun 22, 2024
21927b7
Fixed error reporting
DrusTheAxe Jun 23, 2024
5665683
Fixed missing errorText
DrusTheAxe Jun 23, 2024
07b57b3
More testing
DrusTheAxe Jun 23, 2024
7f0e02c
Yet more error fixes
DrusTheAxe Jun 23, 2024
34a8def
Once more unto the breach
DrusTheAxe Jun 23, 2024
14bcf7f
Maybe thistime
DrusTheAxe Jun 23, 2024
d45fca6
Reset test fixes
DrusTheAxe Jun 23, 2024
ef15be1
Reset error reporting fix
DrusTheAxe Jun 23, 2024
b78d16a
Reset test fixes
DrusTheAxe Jun 23, 2024
08e50f2
Fixed ResetPackageByUriAsync to directly handle the operation w/o goi…
DrusTheAxe Jun 17, 2024
f3e6107
Merge branch 'user/drustheaxe/pkgmgmt-fwudk-and-isreadyorneweravailab…
DrusTheAxe Jun 23, 2024
bc0c590
Fixed Remove ExtendedError if not found
DrusTheAxe Jun 23, 2024
4e5b76b
Testing fix to Reset+Repair
DrusTheAxe Jun 24, 2024
89a23b7
Let's try this for Reset
DrusTheAxe Jun 24, 2024
03819a8
Fix Repair to fail if the package isn't registered for the caller
DrusTheAxe Jun 24, 2024
4c3567c
Expanded Register tests
DrusTheAxe Jun 24, 2024
6949698
Temporarily disabled some failing Reset tests. Added Register info to…
DrusTheAxe Jun 25, 2024
414c254
Merge branch 'main' into user/drustheaxe/pkgmgmt-fwudk-and-isreadyorn…
DrusTheAxe Jun 25, 2024
e0f2ff3
Add docs re PackageSet properties
DrusTheAxe Jun 25, 2024
8dd1e7a
Fixed typo
DrusTheAxe Jun 25, 2024
d4e3df8
Added workaround for tests not wired to work on 20H2/Vb
DrusTheAxe Jun 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 93 additions & 1 deletion WindowsAppRuntime.sln
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,13 @@ EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PackageManagerTests", "test\PackageManager\API\PackageManagerTests.vcxproj", "{4A38CB80-3580-4960-9B31-3301058B7AFE}"
ProjectSection(ProjectDependencies) = postProject
{09DDAE21-397F-4263-8561-7F2FF28127CF} = {09DDAE21-397F-4263-8561-7F2FF28127CF}
{28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF} = {28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF}
{39277B4C-4FB5-45F6-B0AA-EE8086590CDA} = {39277B4C-4FB5-45F6-B0AA-EE8086590CDA}
{4626E11F-A7A4-41A2-B22D-5A108BC369AC} = {4626E11F-A7A4-41A2-B22D-5A108BC369AC}
{58E95711-A12F-4C0E-A978-C6B4A0842AC8} = {58E95711-A12F-4C0E-A978-C6B4A0842AC8}
{66D0D8B1-FAF4-4C6A-8303-07F3BA356FE3} = {66D0D8B1-FAF4-4C6A-8303-07F3BA356FE3}
{AC79B8FF-4C27-4326-AD20-BBC70059FF51} = {AC79B8FF-4C27-4326-AD20-BBC70059FF51}
{AD7D0A19-44B9-41D6-A68A-9FECAC28078D} = {AD7D0A19-44B9-41D6-A68A-9FECAC28078D}
{B73AD907-6164-4294-88FB-F3C9C10DA1F1} = {B73AD907-6164-4294-88FB-F3C9C10DA1F1}
{D0A1DFB8-8CEE-4CFC-B57B-B7C574B411C2} = {D0A1DFB8-8CEE-4CFC-B57B-B7C574B411C2}
{F2946790-DAF7-4DFF-A754-BA471A12E494} = {F2946790-DAF7-4DFF-A754-BA471A12E494}
Expand Down Expand Up @@ -493,6 +497,22 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Windows.Managemen
{B73AD907-6164-4294-88FB-F3C9C10DA1F1} = {B73AD907-6164-4294-88FB-F3C9C10DA1F1}
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "PackageManager.Test.M.Black.msix", "PackageManager.Test.M.Black.msix", "{1AC589D7-FA54-470E-8640-AB2477CA844C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "PackageManager.Test.M.Blacker.msix", "PackageManager.Test.M.Blacker.msix", "{4567CD12-A0A7-4E65-8075-B17C09261767}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PackageManager.Test.M.Black.msix", "test\PackageManager\data\PackageManager.Test.M.Black.msix\PackageManager.Test.M.Black.msix.vcxproj", "{39277B4C-4FB5-45F6-B0AA-EE8086590CDA}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PackageManager.Test.M.Blacker.msix", "test\PackageManager\data\PackageManager.Test.M.Blacker.msix\PackageManager.Test.M.Blacker.msix.vcxproj", "{AD7D0A19-44B9-41D6-A68A-9FECAC28078D}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "PackageManager.Test.M.White.msix", "PackageManager.Test.M.White.msix", "{6759ECC6-9381-4172-89E6-853F81A03D28}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "PackageManager.Test.M.Whiter.msix", "PackageManager.Test.M.Whiter.msix", "{7C240089-0F22-4247-9C91-51255C8DC18B}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PackageManager.Test.M.Whiter.msix", "test\PackageManager\data\PackageManager.Test.M.Whiter.msix\PackageManager.Test.M.Whiter.msix.vcxproj", "{AC79B8FF-4C27-4326-AD20-BBC70059FF51}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PackageManager.Test.M.White.msix", "test\PackageManager\data\PackageManager.Test.M.White.msix\PackageManager.Test.M.White.msix.vcxproj", "{28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -1739,6 +1759,70 @@ Global
{57E6CCBE-EDEB-4300-8334-98A591D11B3F}.Release|x64.Build.0 = Release|x64
{57E6CCBE-EDEB-4300-8334-98A591D11B3F}.Release|x86.ActiveCfg = Release|x86
{57E6CCBE-EDEB-4300-8334-98A591D11B3F}.Release|x86.Build.0 = Release|x86
{39277B4C-4FB5-45F6-B0AA-EE8086590CDA}.Debug|Any CPU.ActiveCfg = Debug|x64
{39277B4C-4FB5-45F6-B0AA-EE8086590CDA}.Debug|Any CPU.Build.0 = Debug|x64
{39277B4C-4FB5-45F6-B0AA-EE8086590CDA}.Debug|ARM64.ActiveCfg = Debug|ARM64
{39277B4C-4FB5-45F6-B0AA-EE8086590CDA}.Debug|ARM64.Build.0 = Debug|ARM64
{39277B4C-4FB5-45F6-B0AA-EE8086590CDA}.Debug|x64.ActiveCfg = Debug|x64
{39277B4C-4FB5-45F6-B0AA-EE8086590CDA}.Debug|x64.Build.0 = Debug|x64
{39277B4C-4FB5-45F6-B0AA-EE8086590CDA}.Debug|x86.ActiveCfg = Debug|Win32
{39277B4C-4FB5-45F6-B0AA-EE8086590CDA}.Debug|x86.Build.0 = Debug|Win32
{39277B4C-4FB5-45F6-B0AA-EE8086590CDA}.Release|Any CPU.ActiveCfg = Release|x64
{39277B4C-4FB5-45F6-B0AA-EE8086590CDA}.Release|Any CPU.Build.0 = Release|x64
{39277B4C-4FB5-45F6-B0AA-EE8086590CDA}.Release|ARM64.ActiveCfg = Release|ARM64
{39277B4C-4FB5-45F6-B0AA-EE8086590CDA}.Release|ARM64.Build.0 = Release|ARM64
{39277B4C-4FB5-45F6-B0AA-EE8086590CDA}.Release|x64.ActiveCfg = Release|x64
{39277B4C-4FB5-45F6-B0AA-EE8086590CDA}.Release|x64.Build.0 = Release|x64
{39277B4C-4FB5-45F6-B0AA-EE8086590CDA}.Release|x86.ActiveCfg = Release|Win32
{39277B4C-4FB5-45F6-B0AA-EE8086590CDA}.Release|x86.Build.0 = Release|Win32
{AD7D0A19-44B9-41D6-A68A-9FECAC28078D}.Debug|Any CPU.ActiveCfg = Debug|x64
{AD7D0A19-44B9-41D6-A68A-9FECAC28078D}.Debug|Any CPU.Build.0 = Debug|x64
{AD7D0A19-44B9-41D6-A68A-9FECAC28078D}.Debug|ARM64.ActiveCfg = Debug|ARM64
{AD7D0A19-44B9-41D6-A68A-9FECAC28078D}.Debug|ARM64.Build.0 = Debug|ARM64
{AD7D0A19-44B9-41D6-A68A-9FECAC28078D}.Debug|x64.ActiveCfg = Debug|x64
{AD7D0A19-44B9-41D6-A68A-9FECAC28078D}.Debug|x64.Build.0 = Debug|x64
{AD7D0A19-44B9-41D6-A68A-9FECAC28078D}.Debug|x86.ActiveCfg = Debug|Win32
{AD7D0A19-44B9-41D6-A68A-9FECAC28078D}.Debug|x86.Build.0 = Debug|Win32
{AD7D0A19-44B9-41D6-A68A-9FECAC28078D}.Release|Any CPU.ActiveCfg = Release|x64
{AD7D0A19-44B9-41D6-A68A-9FECAC28078D}.Release|Any CPU.Build.0 = Release|x64
{AD7D0A19-44B9-41D6-A68A-9FECAC28078D}.Release|ARM64.ActiveCfg = Release|ARM64
{AD7D0A19-44B9-41D6-A68A-9FECAC28078D}.Release|ARM64.Build.0 = Release|ARM64
{AD7D0A19-44B9-41D6-A68A-9FECAC28078D}.Release|x64.ActiveCfg = Release|x64
{AD7D0A19-44B9-41D6-A68A-9FECAC28078D}.Release|x64.Build.0 = Release|x64
{AD7D0A19-44B9-41D6-A68A-9FECAC28078D}.Release|x86.ActiveCfg = Release|Win32
{AD7D0A19-44B9-41D6-A68A-9FECAC28078D}.Release|x86.Build.0 = Release|Win32
{AC79B8FF-4C27-4326-AD20-BBC70059FF51}.Debug|Any CPU.ActiveCfg = Debug|x64
{AC79B8FF-4C27-4326-AD20-BBC70059FF51}.Debug|Any CPU.Build.0 = Debug|x64
{AC79B8FF-4C27-4326-AD20-BBC70059FF51}.Debug|ARM64.ActiveCfg = Debug|ARM64
{AC79B8FF-4C27-4326-AD20-BBC70059FF51}.Debug|ARM64.Build.0 = Debug|ARM64
{AC79B8FF-4C27-4326-AD20-BBC70059FF51}.Debug|x64.ActiveCfg = Debug|x64
{AC79B8FF-4C27-4326-AD20-BBC70059FF51}.Debug|x64.Build.0 = Debug|x64
{AC79B8FF-4C27-4326-AD20-BBC70059FF51}.Debug|x86.ActiveCfg = Debug|Win32
{AC79B8FF-4C27-4326-AD20-BBC70059FF51}.Debug|x86.Build.0 = Debug|Win32
{AC79B8FF-4C27-4326-AD20-BBC70059FF51}.Release|Any CPU.ActiveCfg = Release|x64
{AC79B8FF-4C27-4326-AD20-BBC70059FF51}.Release|Any CPU.Build.0 = Release|x64
{AC79B8FF-4C27-4326-AD20-BBC70059FF51}.Release|ARM64.ActiveCfg = Release|ARM64
{AC79B8FF-4C27-4326-AD20-BBC70059FF51}.Release|ARM64.Build.0 = Release|ARM64
{AC79B8FF-4C27-4326-AD20-BBC70059FF51}.Release|x64.ActiveCfg = Release|x64
{AC79B8FF-4C27-4326-AD20-BBC70059FF51}.Release|x64.Build.0 = Release|x64
{AC79B8FF-4C27-4326-AD20-BBC70059FF51}.Release|x86.ActiveCfg = Release|Win32
{AC79B8FF-4C27-4326-AD20-BBC70059FF51}.Release|x86.Build.0 = Release|Win32
{28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF}.Debug|Any CPU.ActiveCfg = Debug|x64
{28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF}.Debug|Any CPU.Build.0 = Debug|x64
{28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF}.Debug|ARM64.ActiveCfg = Debug|ARM64
{28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF}.Debug|ARM64.Build.0 = Debug|ARM64
{28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF}.Debug|x64.ActiveCfg = Debug|x64
{28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF}.Debug|x64.Build.0 = Debug|x64
{28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF}.Debug|x86.ActiveCfg = Debug|Win32
{28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF}.Debug|x86.Build.0 = Debug|Win32
{28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF}.Release|Any CPU.ActiveCfg = Release|x64
{28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF}.Release|Any CPU.Build.0 = Release|x64
{28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF}.Release|ARM64.ActiveCfg = Release|ARM64
{28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF}.Release|ARM64.Build.0 = Release|ARM64
{28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF}.Release|x64.ActiveCfg = Release|x64
{28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF}.Release|x64.Build.0 = Release|x64
{28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF}.Release|x86.ActiveCfg = Release|Win32
{28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -1885,9 +1969,17 @@ Global
{4626E11F-A7A4-41A2-B22D-5A108BC369AC} = {266AE21F-0D59-4422-A95C-4B3D2BA32A4C}
{39A17DBB-F1DB-4D0C-B90E-D5F9BEC2283A} = {6213B1A3-E854-498F-AAFA-4CFC1E71023E}
{FBAE1876-C50A-4EFC-A686-3008B6438731} = {39A17DBB-F1DB-4D0C-B90E-D5F9BEC2283A}
{B6B68924-6A0B-457E-AD53-018696EC8889} = {B03C7C69-0A52-4553-B465-04C995161E42}
{B6B68924-6A0B-457E-AD53-018696EC8889} = {6213B1A3-E854-498F-AAFA-4CFC1E71023E}
{D0A1DFB8-8CEE-4CFC-B57B-B7C574B411C2} = {B6B68924-6A0B-457E-AD53-018696EC8889}
{57E6CCBE-EDEB-4300-8334-98A591D11B3F} = {716C26A0-E6B0-4981-8412-D14A4D410531}
{1AC589D7-FA54-470E-8640-AB2477CA844C} = {6213B1A3-E854-498F-AAFA-4CFC1E71023E}
{4567CD12-A0A7-4E65-8075-B17C09261767} = {6213B1A3-E854-498F-AAFA-4CFC1E71023E}
{39277B4C-4FB5-45F6-B0AA-EE8086590CDA} = {1AC589D7-FA54-470E-8640-AB2477CA844C}
{AD7D0A19-44B9-41D6-A68A-9FECAC28078D} = {4567CD12-A0A7-4E65-8075-B17C09261767}
{6759ECC6-9381-4172-89E6-853F81A03D28} = {6213B1A3-E854-498F-AAFA-4CFC1E71023E}
{7C240089-0F22-4247-9C91-51255C8DC18B} = {6213B1A3-E854-498F-AAFA-4CFC1E71023E}
{AC79B8FF-4C27-4326-AD20-BBC70059FF51} = {7C240089-0F22-4247-9C91-51255C8DC18B}
{28DCF9CE-D9F4-4A7D-8AD1-F2EFC0D3B4DF} = {6759ECC6-9381-4172-89E6-853F81A03D28}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {4B3D7591-CFEC-4762-9A07-ABE99938FB77}
Expand Down
17 changes: 17 additions & 0 deletions dev/Common/AppModel.Identity.h
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,14 @@ class PackageIdentity
return m_packageId->publisherId;
}

std::wstring PackageFamilyName() const
{
WCHAR packageFamilyName[PACKAGE_FAMILY_NAME_MAX_LENGTH + 1]{};
UINT32 packageFamilyNameLength{ ARRAYSIZE(packageFamilyName) };
THROW_IF_WIN32_ERROR_MSG(::PackageFamilyNameFromId(m_packageId, &packageFamilyNameLength, packageFamilyName), "%ls", m_packageFullName.c_str());
return packageFamilyName;
}

explicit operator bool() const
{
return m_packageId != nullptr;
Expand All @@ -384,6 +392,15 @@ class PackageIdentity
PACKAGE_RESOURCEID_MAX_LENGTH + 1 +
PACKAGE_PUBLISHERID_MAX_LENGTH + 1) * sizeof(WCHAR)]{};
};

template<typename T>
T ToPackageFamilyName(PCWSTR packageFullName)
{
WCHAR packageFamilyName[PACKAGE_FAMILY_NAME_MAX_LENGTH + 1]{};
UINT32 packageFamilyNameLength{ ARRAYSIZE(packageFamilyName) };
THROW_IF_WIN32_ERROR_MSG(::PackageFamilyNameFromFullName(packageFullName, &packageFamilyNameLength, packageFamilyName), "%ls", packageFullName);
return T{ packageFamilyName };
}
}

#endif // __APPMODEL_IDENTITY_H
2 changes: 1 addition & 1 deletion dev/Common/IsWindowsVersion.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ inline bool IsWindows11_22H2OrGreater()
inline bool IsWindows11_23H1OrGreater()
{
// TryCreatePackageDependency2() added to in NTDDI_WIN10_GE (aka Windows 11 23H1)
return IsExportPresent(L"api-ms-win-appmodel-runtime-l1-1-7.dll", "TryCreatePackageDependency2");
return IsExportPresent(L"kernelbase.dll", "TryCreatePackageDependency2");
}
}

Expand Down
26 changes: 26 additions & 0 deletions dev/Common/Security.User.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,32 @@ inline bool IsLocalSystem(HANDLE token = nullptr)

return !!EqualSid(userSid, localSystemSid);
}

/// @return sid. Allocated via LocalAlloc; use LocalFree to deallocate
inline PSID StringToSid(PCWSTR sidString)
{
if (!sidString || (sidString[0] == L'\0'))
{
return nullptr;
}

PSID sid{};
THROW_IF_WIN32_BOOL_FALSE(::ConvertStringSidToSidW(sidString, &sid));
return sid;
}

/// @return sid as a string. Allocated via LocalAlloc; use LocalFree to deallocate
inline PWSTR SidToString(PSID sid)
{
if (!sid)
{
return nullptr;
}

PWSTR sidString{};
THROW_IF_WIN32_BOOL_FALSE(::ConvertSidToStringSidW(sid, &sidString));
return sidString;
}
}

#endif // __SECURITY_USER_H
4 changes: 2 additions & 2 deletions dev/Deployment/DeploymentManager.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation and Contributors.
// Copyright (c) Microsoft Corporation and Contributors.
// Licensed under the MIT License.

#include <pch.h>
Expand Down Expand Up @@ -403,7 +403,7 @@ namespace winrt::Microsoft::Windows::ApplicationModel::WindowsAppRuntime::implem
HRESULT deploymentOperationHResult{};
HRESULT deploymentOperationExtendedHResult{};

if (deploymentOperation.Status() != AsyncStatus::Completed)
if (deploymentOperation.Status() != winrt::Windows::Foundation::AsyncStatus::Completed)
{
deploymentOperationHResult = static_cast<HRESULT>(deploymentOperation.ErrorCode());
deploymentOperationExtendedHResult = deploymentResult.ExtendedErrorCode();
Expand Down
2 changes: 1 addition & 1 deletion dev/MRTCore/mrt/Core/unittests/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.Taef" version="10.82.230714001" targetFramework="native" />
<package id="Microsoft.Taef" version="10.92.240405002" targetFramework="native" />
</packages>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.Taef" version="10.82.230714001" targetFramework="net45" />
<package id="Microsoft.Taef" version="10.92.240405002" targetFramework="net45" />
</packages>
2 changes: 1 addition & 1 deletion dev/MRTCore/mrt/mrm/UnitTests/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.Windows.ImplementationLibrary" version="1.0.220914.1" targetFramework="native" />
<package id="Microsoft.Taef" version="10.82.230714001" targetFramework="native" />
<package id="Microsoft.Taef" version="10.92.240405002" targetFramework="native" />
</packages>
8 changes: 8 additions & 0 deletions dev/PackageManager/API/M.W.M.D.EnsureReadyOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,12 @@ namespace winrt::Microsoft::Windows::Management::Deployment::implementation
{
return m_addPackageOptions;
}
bool EnsureReadyOptions::RegisterNewerIfAvailable()
{
return m_registerNewerIfAvailable;
}
void EnsureReadyOptions::RegisterNewerIfAvailable(bool value)
{
m_registerNewerIfAvailable = value;
}
}
3 changes: 3 additions & 0 deletions dev/PackageManager/API/M.W.M.D.EnsureReadyOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ namespace winrt::Microsoft::Windows::Management::Deployment::implementation
EnsureReadyOptions() = default;

winrt::Microsoft::Windows::Management::Deployment::AddPackageOptions AddPackageOptions();
bool RegisterNewerIfAvailable();
void RegisterNewerIfAvailable(bool value);
private:
winrt::Microsoft::Windows::Management::Deployment::AddPackageOptions m_addPackageOptions{};
bool m_registerNewerIfAvailable{};
};
}
namespace winrt::Microsoft::Windows::Management::Deployment::factory_implementation
Expand Down
Loading