-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Appx manifest not found or is invalid #74
Comments
hello @gutisalex im trying to understand this error, flutter pub run msix:create also, if its okay can you send me the .msix file for debugging (only if its open source/public/not sensitive data..) |
hey I just reverted back to 2.0.0 and the problem still occured, its weird because it was working a month ago and I did not change the pfx neither the config in pubspec, anyway here a full log of msix:create with version 2.0:
And here on 2.8.1 which is slightly different:
Unfortanatly its not open source... all company related names have been replaced |
the problem is with the Ampersand('&') in the i will try to find a solution for this.. |
ok thanks for the info... I tried to remove the ampersands in the pubspec for testing purposes but that did not do the trick... I guess the issue sits in the pfx file then?! I checket out an older state of the application and for some reason it still works there. In that version I use an older dart sdk (sdk: ">=2.7.0 <3.0.0") than now (sdk: '>=2.12.0 <3.0.0') and msix version 2.0.0. Dont know if this could be related?! Just trying to provide as much info as possible. If you need more let me know.... |
the latest version extract automatically the you can try different certificate without Ampersand in the certificate Subject |
thank you 👍 i will check it.. |
ah ok, I get the certificate from the company I work with and the & is part of their brand name... I think I cannot change that! |
Ok I went through several of my commits and localized the one which broke msix to work... I found out eventhough I used msix 2.0.0 (it was declared like ^2.0.0, ^probably means it used the newest 2.x.x) it got updated in pubspec.lock from 2.3.1 to 2.6.2 and there it stopped working. So now I use 2.3.1 and msix:create is working again... I hope it helps you to narrow down the issue?! |
Very good thorough investigation 🥇 Thank you |
I have a same issue. |
This package uses certutil to automatically generate the publisher. but it doesn't handle special characters correctly. certutil:
But what I need:
|
Oh I also just faced it. Seems HTML entities aren't being encoded properly in the manifest. In my case, I had an ampersand in my package description. |
Hello guys I publish new version (2.8.14) with @Baw-Appie fix,
Please try 2.8.14 to see if its works with your certificates, Thank You 👍 |
Did you test this fix against whitespaces in publisher names? Because exactly 2.8.13 is working for me, but at >= 2.8.14 its failing with
which is an indication for missmatched publisher name. Otherwise, i would open another issue. |
Hello White space is not special character.. Can you please run it again (with >= 2.8.14) and paste here the content of thanks |
That's strange, i dont have a I will try and test it on a new created demo flutter project, maybe it's because my windows folder is too old / missconfigured. When the error persists, i will open a new issue. |
sorry, my bad the \build\windows\runner\Release\AppxManifest.xml file is delete after successfully creation of the msix file, BUT the sign step is after the deleting/cleaning step, so is deleted for you anyway sorry again |
What is your certificate Subject value? |
My subject value indeed includes an umlaut ST=Thüringen, encoding is utf-8 (
(i replaced my companies exact name) |
Hello @khainke A lot of digging but a simple fix, published in version 3.0.0-dev.8 please check it out |
Thank you, when running without But when using the options
(corresponding line tries to find |
ℹ️ Info
Version: 2.8.1
💬 Description
msix:create fails
ERROR: PRI191: 0x80004005 - Appx manifest not found or is invalid. Please ensure well-formed manifest file is present. Or specify an index name with /in switch.
An dieser Stelle sind keine Leerzeichen zugelassen.
📜 Pubspec.yaml
msix_config:
display_name: MyApp
publisher_display_name: MyApp
identity_name: de.myapp.togo
msix_version: 1.0.4.49
certificate_path: .\windows\runner\resources\windows_certificate.pfx
certificate_password: aPassword
publisher: CN=MyApp & Co. KG, O=MyApp & Co. KG, L=Hamburg, S=Hamburg, C=DE
logo_path: .\windows\runner\resources\app_icon.png
start_menu_icon_path: .\windows\runner\resources\app_icon.png
tile_icon_path: .\windows\runner\resources\app_icon.png
#vs_generated_images_folder_path: C:<PathToFolder>\Images
languages: de-de
icons_background_color: "#003976"
architecture: x64
capabilities: "internetClient"
The text was updated successfully, but these errors were encountered: