question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pre-appx\AppXManifest.xml is wrong

See original GitHub issue

Im getting an error when im creating the win store package

win-unpacked is ths built electron app target is the win-store folder both is on my desktop

Im running this with Windows PowerShell as Admin

C:\Users\jonas\Desktop> electron-windows-store --input-directory win-unpacked --output-directory win-store --flatten
true --package-version 1.0.0.0

Configuration:
Desktop Converter Location:    false
Expanded Base Image:           false
Publisher:                     CN=developmentca
Dev Certificate:               C:\Users\jonas\AppData\Roaming\electron-windows-store\developmentca\developmentca.pfx
Windows Kit Location:          C:\Program Files (x86)\Windows Kits\10\bin\x64

? Please enter your app's package name (name of your exe - without '.exe'):  somePackageName
Flattening modules...
Starting Conversion...
Cleaning pre-appx output folder...
Copying data...
Creating manifest..
Creating appx package...
Microsoft (R) MakeAppx Tool
Copyright (C) 2013 Microsoft.  All rights reserved.

The path (/p) parameter is: "win-store\somePackageName.appx"
The content directory (/d) parameter is: "win-store\pre-appx"
Enumerating files from directory "win-store\pre-appx"
Packing 123 file(s) in "win-store\pre-appx" (content directory) to "win-store\somePackageName.appx" (output file name).
Using "win-store\pre-appx\AppXManifest.xml" as the manifest for the package.
MakeAppx : error: Manifest validation error: Line 26, Column 39, Reason: The file name "app\somePackageName.exe" declared for element "*[local-name()='Applications']/*[local-name()='Application']" doesn't exist in the package.
MakeAppx : error: Package creation failed.
MakeAppx : error: 0x80080204 - The specified package format is not valid: The package manifest is not valid.

Error: C:\Program Files (x86)\Windows Kits\10\bin\x64\makeappx.exe exited with code: 1
    at ChildProcess.child.on (C:\Users\jonas\AppData\Roaming\npm\node_modules\electron-windows-store\lib\utils.js:74:23)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
Error: C:\Program Files (x86)\Windows Kits\10\bin\x64\makeappx.exe exited with code: 1
    at ChildProcess.child.on (C:\Users\jonas\AppData\Roaming\npm\node_modules\electron-windows-store\lib\utils.js:74:23)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)

those are my folders: https://drive.google.com/open?id=1xSQDKYoZWxHBvZmW50cP6ld8KiRwLf44

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:6

github_iconTop GitHub Comments

3reactions
LotuxPunkcommented, Jul 9, 2019

Hi ! I have the same issue. How can I generate the .exe required ?

1reaction
Excigmacommented, Jun 5, 2020

I ran into the same problem and solved it by adding --package-executable app/your exe name.exe Go to the pre/appx folder (even it has failed) and find the name of the exe from there

Read more comments on GitHub >

github_iconTop Results From Across the Web

pre-appx\AppXManifest.xml is wrong · Issue #99 - GitHub
Im getting an error when im creating the win store package. win-unpacked is ths built electron app target is the win-store folder
Read more >
Package Error with MSIX File. Created my own app. Trying to ...
The error seems to indicate an issue with the AppXManifest.xml file that you must include at the root folder. The file has "application" ......
Read more >
Windows Application Packaging fails if ...
appxmanifest at the package project level, works fine if i do it at the Universal App level. Visual Studiowindows 10.0xamlprojectvisual studio 2017 version...
Read more >
Windows 10 Store Won't Open (Fix) - Appuals
The AppXManifest does not exist issue arises if the Windows installation of your system is corrupt or outdated. Moreover, the corrupt Windows ...
Read more >
MSIX Introduction: A comprehensive 24-chapter guide
(hardcoded paths are bad and will crash your app). ... AppxManifest.xml - This XML file is the main resource from the package, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found