UWP Export Executable or Installer

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:
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?