This message can occur if you don't have Microsoft App Installer installed. It can be downloaded from within the Microsoft Store here.
If you’re using Affinity by Canva, please refer to the corresponding help article: Fix MSIX installation problems with Affinity for Windows