UWP Export Executable or Installer

Oliver Häusermann 0 Reputation points
2023-05-16T12:52:20.5366667+00:00

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?

Developer technologies | Universal Windows Platform (UWP)
Developer technologies | Visual Studio | Other
Developer technologies | C#
{count} votes

2 answers

Sort by: Most helpful
  1. Nils Berghs 6 Reputation points
    2023-10-17T12:05:23.8566667+00:00

    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)

    1 person found this answer helpful.
    0 comments No comments

  2. Anonymous
    2023-06-22T02:57:00.6666667+00:00

    Hello,

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.