With WinUI3 Desktop Applications in 2025 I've found that I had to publish using MSIX. You need to publish your app to local or a UNC or trusted file system for your intended install users' destination OS. On the destination install OS you need some way for the host or destination OS to verify that your application's publisher is trusted.