UWP Export Executable or Installer

Oliver Häusermann 0 Reputation points

I have a simple app in Visual Studio 2022 UWP C#. I simply want to be able to export it and install it.

When I try to run the exe in the bin order in the release nothing happens.

Then I tried to publish it and it looked like this:User's image

User's image

When I try to run the .appinstaller file I get a window that is like saying translated to english: "This App package cannot be oppened. Reason: Issues while analysing the app-packages"

When I go into a folder like the top one with "_Test" at the end and try to run a installer there I got a new windodw saying publisher is unknown and the certificate of the app-package couldn't be verified. How can I fix this issue?

Universal Windows Platform (UWP)
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,765 questions
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,483 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Roy Li - MSFT 32,721 Reputation points Microsoft Vendor


    Welcome to Microsoft Q&A!

    First of all, UWP apps can't be launched directly via .exe file. If you want to package your UWP app and install it somewhere else, you will need to create a MSIX package for your UWP app. You could follow the steps here: Package a desktop or UWP app in Visual Studio to create a package you need.

    Thank you.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Nils Berghs 1 Reputation point

    The SINGLE reasons why UWP failed an why MAUI on windors will fail as well

    First of all, UWP apps can't be launched directly via .exe file.

    No matter how good the platform is without easy and decent deployment capabilities, EVERY windows application technology is guaranteed to fail! (And the store is not easy, nor decent, nor usefull in LOB (internal) applications, which is a huge chunk off all windows application out in the wild)

    0 comments No comments