question

stevehero-0159 avatar image
0 Votes"
stevehero-0159 asked ·

The package doesn't contain any Application elements in the app manifest file

I used the MSIX Packaging tool to generate an MSIX file from an existing .exe file.

This .exe only installs a cursor pack therefore only copying files over to the C:\Windows\Cursors directory.

There is no GUI with this app.

When uploading the .msix to the Microsoft partner center I get following error:

 Package acceptance validation error: The package abc.msix doesn't contain any Application elements in the app manifest file.

How can I solve this? I can manually modify the manifest file but what to change/add?

Here's my current manifest file with a screenshot of the issue in the MS partner center.

 <?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:uap2="http://schemas.microsoft.com/appx/manifest/uap/windows10/2" xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3" xmlns:uap4="http://schemas.microsoft.com/appx/manifest/uap/windows10/4" xmlns:uap6="http://schemas.microsoft.com/appx/manifest/uap/windows10/6" xmlns:uap7="http://schemas.microsoft.com/appx/manifest/uap/windows10/7" xmlns:uap8="http://schemas.microsoft.com/appx/manifest/uap/windows10/8" xmlns:uap10="http://schemas.microsoft.com/appx/manifest/uap/windows10/10" xmlns:mobile="http://schemas.microsoft.com/appx/manifest/mobile/windows10" xmlns:iot="http://schemas.microsoft.com/appx/manifest/iot/windows10" xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10" xmlns:desktop2="http://schemas.microsoft.com/appx/manifest/desktop/windows10/2" xmlns:desktop6="http://schemas.microsoft.com/appx/manifest/desktop/windows10/6" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" xmlns:rescap3="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities/3" xmlns:rescap6="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities/6" xmlns:com="http://schemas.microsoft.com/appx/manifest/com/windows10" xmlns:com2="http://schemas.microsoft.com/appx/manifest/com/windows10/2" xmlns:com3="http://schemas.microsoft.com/appx/manifest/com/windows10/3" IgnorableNamespaces="uap uap2 uap3 uap4 uap6 uap7 uap8 uap10 mobile iot desktop desktop2 desktop6 rescap rescap3 rescap6 com com2 com3">
   <!--Package created by MSIX Packaging Tool version: 1.2019.1220.0-->
   <Identity Name="myAppName" Publisher="CN=pubName" Version="1.0.0.0" ProcessorArchitecture="x64" />
   <Properties>
     <DisplayName>My App Name</DisplayName>
     <PublisherDisplayName>Pub Name</PublisherDisplayName>
     <Description></Description>
     <Logo>Assets\StoreLogo.png</Logo>
   </Properties>
   <Resources>
     <Resource Language="en-us" />
   </Resources>
   <Dependencies>
     <TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.18335.0" />
   </Dependencies>
   <Capabilities>
     <rescap:Capability Name="runFullTrust" />
   </Capabilities>
 </Package>


8671-chrome-lfhojnxc4k.png













windows-uwp
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RichardZhang-MSFT avatar image
0 Votes"
RichardZhang-MSFT answered ·

Hello,

Welcome to Microsoft Q&A!

If you plan to create a package that is uploaded to the Microsoft Store, the recommended way is to use the Windows Application Package template to create the project and import your application executable file.

In this project, if you open package.appxmanifest (code mode), you can find what you are missing:

 <Applications>
   <Application Id="App"
     Executable="$targetnametoken$.exe"
     EntryPoint="$targetentrypoint$">
     <uap:VisualElements
       DisplayName="WapProjTemplate3"
       Description="WapProjTemplate3"
       BackgroundColor="transparent"
       Square150x150Logo="Images\Square150x150Logo.png"
       Square44x44Logo="Images\Square44x44Logo.png">
       <uap:DefaultTile Wide310x150Logo="Images\Wide310x150Logo.png" />
       <uap:SplashScreen Image="Images\SplashScreen.png" />
     </uap:VisualElements>
   </Application>
 </Applications>

For how to use the project to create your upload package, you can refer to this document:

Thanks.

· 6 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

How do I merge that code into my existing? I've tried various different things.

The 1st thing I did was paste your code at the top of my manifest file inbetween

How do I merge that code into my existing? I've tried various different things.

The 1st thing I did was paste your code at the top of my manifest file like:

 <REST_OFCODEHERE/>...ProcessorArchitecture="x64" />
 your code here...
 <Properties>...<REST_OFCODEHERE/>

This then throws an error saying those images are missing.

After removing those images from the manifest, I get another error.

I can't add more code examples as I've a limit of 1000 chars.


This then throws an error saying those images are missing.

After removing those images from the manifest, I get another error.

I can't add more code examples as I've a limit of 1000 chars.

0 Votes 0 ·

Apps uploaded to the app store need to have icons, app entrances, app names and other basic app information. This is what the Application tag defines. You must provide these contents, so my suggestion is to build a packaged project, which already provides default icon resources and application names. You only need to import your exe file and simply modify the application content (such as replacing your Icon, modify the application name, etc.) to package a store application.

1 Vote 1 ·

Thank you.

I automatically thought that the MSIX packaging tool would take care of this but I suppose it's not just geared towards uploading to the store.

I shall add placement files for those you have given to see if this works.

0 Votes 0 ·
Show more comments