The AppxManifest.xml defines the identity, capabilities, and entry points of your packaged application. Key elements include:
<Identity>: Defines the Name, Version, and Publisher.<Capabilities>: Grants permissions like runFullTrust or systemAIModels.<Application>: Specifies the Executable (e.g., python.exe), the EntryPoint (e.g., Windows.FullTrustApplication), and the uap10:RuntimeBehavior (e.g., packagedClassicApp).<Extensions>: Can define appExecutionAlias to allow running the app via a custom alias like testapp.exe.
Note: If you are creating a self-contained package, remove the <PackageDependency> entry from the <Dependencies> section.
<?xml version="1.0" encoding="utf-8"?>
<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:uap5="http://schemas.microsoft.com/appx/manifest/uap/windows10/5"
xmlns:uap10="http://schemas.microsoft.com/appx/manifest/uap/windows10/10"
xmlns:desktop4="http://schemas.microsoft.com/appx/manifest/desktop/windows10/4"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
xmlns:systemai="http://schemas.microsoft.com/appx/manifest/systemai/windows10"
IgnorableNamespaces="uap rescap systemai desktop4">
<Identity Name="Win32more.TestApp" Version="1.0.0.0" Publisher="CN=CommonName, O=Organization, L=City, S=State, C=Country" ProcessorArchitecture="x64" />
<Properties>
<DisplayName>Win32more.TestApp</DisplayName>
<PublisherDisplayName>Win32more</PublisherDisplayName>
<Description>TestApp</Description>
<Logo>logo.png</Logo>
</Properties>
<Resources>
<Resource Language="en-us" />
</Resources>
<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.26226.0" />
<!-- Specify your dependency. Remove this line for self-contained package. -->
<PackageDependency Name="Microsoft.WindowsAppRuntime.1.8" MinVersion="8000.0.0.0" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" />
</Dependencies>
<Capabilities>
<rescap:Capability Name="runFullTrust"/>
<systemai:Capability Name="systemAIModels"/>
</Capabilities>
<Applications>
<Application
Id="TestApp"
Executable="python.exe"
EntryPoint="Windows.FullTrustApplication"
uap10:RuntimeBehavior="packagedClassicApp"
uap10:TrustLevel="mediumIL">
<uap:VisualElements
DisplayName="TestApp"
Description="TestApp"
BackgroundColor="#464646"
Square150x150Logo="logo.png"
Square44x44Logo="logo.png"
/>
<Extensions>
<uap5:Extension Category="windows.appExecutionAlias">
<uap5:AppExecutionAlias desktop4:Subsystem="windows">
<uap5:ExecutionAlias Alias="testapp.exe" />
</uap5:AppExecutionAlias>
</uap5:Extension>
</Extensions>
</Application>
</Applications>
</Package>