May 27 2023 12:10 AM
the appinstaller file for my c++ winrt app is not working and gives error saying "error in parsing app package" but the appx bundle file works fine
the appinstallers of any c++ apps do not work but they work for c# apps
Jun 06 2023 05:37 AM
Jun 18 2023 03:51 AM - edited Jun 18 2023 03:54 AM
I did not say you need this, but only that you might. Read the error to know what is wrong and fix the manifest appropriately.
If full trust is needed, in the manifest, you need to first set the capability like this,
<Capabilities>
<rescap:Capability Name="runFullTrust" />
...
</Capabilities>
which is what starts the container to allow for msix. Then on the application,
<Applications>
<Application Id="XXX" Executable="YYY.exe" EntryPoint="Windows.FullTrustApplication">
...
</Application>
...
</Applications
which makes the application run using full trust (which really means more trust than AppX gets).
rescap, aka "restrictedcapabilities" must also be added to the schema list on the <Package> element.