Alternatives for the application to make it as a packaged application?

Rohan Pande 210 Reputation points
2024-03-13T04:17:56.3366667+00:00

Hi,

I am currently building a WinUI3 C++ application using Windows App SDK. But currently the application is unpackaged mode.

I am currently thinking to shift to packaged mode as it is recommended by the Microsoft currently I have tried the sample packaged application (WinUI3 blank app) of Visual Studio.

User's image

Reference: https://learn.microsoft.com/en-us/windows/apps/package-and-deploy/

During publishing the application, internally it uses MSIX to generates this '.msix' file which launches the application.

My question is can I make my application packaged myself via command line something... instead of using MSIX?

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
720 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,516 questions
{count} votes

Accepted answer
  1. Jeanine Zhang-MSFT 9,026 Reputation points Microsoft Vendor
    2024-03-13T08:22:09.1066667+00:00

    Hello,

    Welcome to Microsoft Q&A!

    In the packaged mode, you need to package your app via MISX. And you can only get an .msix file not a .exe file.

    If you want to double click on the exe to launch the application, it can be done in unpackaged mode. You just need to add the lines to your *.csproj .

     <PropertyGroup>
    
        ...
    
        <WindowsPackageType>None</WindowsPackageType>
        <WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
      </PropertyGroup>
    

    Thank you.

    Jeanine


    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 additional answers

Sort by: Most helpful