YehudaKremer / msix

Create Msix installer for flutter windows-build files.
https://pub.dev/packages/msix
MIT License
273 stars 64 forks source link

Error during Add-AppxPackage –Register AppxManifest.xml #246

Closed xenSlayer closed 8 months ago

xenSlayer commented 8 months ago

msix config:

msix_config:
  display_name: xenmusic
  publisher_display_name: xen lab
  identity_name: xxxxxxxxxxxxxxxxxxxxxxxxxxxx
  languages: en-us, ja-jp
  publisher: CN=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
  logo_path: ../../resources/icons/logo.png
  store: true
  enable_at_startup: true
  capabilities: internetClient, broadFileSystemAccess, internetClientServer, musicLibrary
  sign_msix: false
  install_certificate: false
  output_path: ../../release

Add-AppxPackage –Register AppxManifest.xml output:

Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF6, Package could not be registered.
error 0x80070057: While processing the request, the system failed to register the windows.firewall extension due to the following 
error: The parameter is incorrect.
.
NOTE: For additional information, look for [ActivityId] d746d640-09d2-0003-ff99-c9dbd209da01 in the Event Log or use the command 
line Get-AppPackageLog -ActivityID d746d640-09d2-0003-ff99-c9dbd209da01
At line:1 char:2
+  Add-AppxPackage –Register AppxManifest.xml
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (C:\users\kiran\...ppxManifest.xml:String) [Add-AppxPackage], IOException
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

Get-AppPackageLog -ActivityID d746d640-09d2-0003-ff99-c9dbd209da01 output:


Time                      ID           Message                                                                                                         
----                      --           -------                                                                                                         
11/15/2023 9:56:35 PM     603          Started deployment Register operation on a package with main parameter AppxManifest.xml and Options             
                                       DevelopmentModeOption and 0. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app          
                                       deployment issues.                                                                                              
11/15/2023 9:56:35 PM     216          App manifest validation warning: Declared namespace http://schemas.microsoft.com/appx/manifest/iot/windows10 is 
                                       inapplicable, it will be ignored during manifest processing.                                                    
11/15/2023 9:56:35 PM     10002        Creating Resiliency File C:\ProgramData\Microsoft\Windows\AppRepository\25a277f8-409b-4a50-a8b0-a73782536414_S-1
                                       -5-21-121959150-808464863-484860483-1001_6.rslc for Register Operation on Package                               
                                       11353xenlab.xenmusictheultimatemusicapp_0.0.1.0_x64__q216zsm0wmyb2.                                             
11/15/2023 9:56:35 PM     607          Deployment Register operation on package 11353xenlab.xenmusictheultimatemusicapp_0.0.1.0_x64__q216zsm0wmyb2 has 
                                       been de-queued and is running for user SID S-1-5-21-121959150-808464863-484860483-1001.                         
11/15/2023 9:56:35 PM     854          Successfully added the following uri(s) to be processed:  C:\users\kiran\desktop\xmusic-test\AppxManifest.xml.  
11/15/2023 9:56:35 PM     855          Finished resolving action lists. DeploymentRequest action lists: addPackageList:                                
                                       11353xenlab.xenmusictheultimatemusicapp_0.0.1.0_x64__q216zsm0wmyb2.                                             
11/15/2023 9:56:35 PM     10000        About to service package 11353xenlab.xenmusictheultimatemusicapp_0.0.1.0_x64__q216zsm0wmyb2. Setting the        
                                       package state to disabled returned with 0x0.                                                                    
11/15/2023 9:56:35 PM     306          error 0x80070057: While processing the request, the system failed to register the windows.firewall extension    
                                       due to the following error: The parameter is incorrect.                                                         
                                       .                                                                                                               
11/15/2023 9:56:35 PM     316          error 0x80070057: Cannot register the request because the following error was encountered during the            
                                       registration of the windows.firewall extension: The parameter is incorrect.                                     
                                       .                                                                                                               
11/15/2023 9:56:35 PM     5507         11353xenlab.xenmusictheultimatemusicapp_0.0.1.0_x64__q216zsm0wmyb2 : C:\users\kiran\desktop\xmusic-test\microsof
                                       t.system.package.metadata\S-1-5-21-121959150-808464863-484860483-1001-MergedResources-*.pri : No user-specific  
                                       merged files found                                                                                              
11/15/2023 9:56:35 PM     5507         11353xenlab.xenmusictheultimatemusicapp_0.0.1.0_x64__q216zsm0wmyb2 :                                            
                                       C:\users\kiran\desktop\xmusic-test\microsoft.system.package.metadata\Resources.????????.pri : No shared merged  
                                       files found                                                                                                     
11/15/2023 9:56:35 PM     5507         11353xenlab.xenmusictheultimatemusicapp_0.0.1.0_x64__q216zsm0wmyb2 : C:\users\kiran\desktop\xmusic-test\microsof
                                       t.system.package.metadata\S-1-5-21-121959150-808464863-484860483-1001-MergedResources-*.pri : No user-specific  
                                       merged files found                                                                                              
11/15/2023 9:56:35 PM     5507         11353xenlab.xenmusictheultimatemusicapp_0.0.1.0_x64__q216zsm0wmyb2 :                                            
                                       C:\users\kiran\desktop\xmusic-test\microsoft.system.package.metadata\Resources.????????.pri : No shared merged  
                                       files found                                                                                                     
11/15/2023 9:56:35 PM     300          error 0x80073CF6: Cannot register the 11353xenlab.xenmusictheultimatemusicapp_q216zsm0wmyb2 package due to the  
                                       following error: Package could not be registered.                                                               
                                       .                                                                                                               
11/15/2023 9:56:35 PM     605          The last successful state reached was SingletonRegisterAdd. Failure occurred before reaching the next state     
                                       RegistrationChanged. hr: 0x80073CF6                                                                             
11/15/2023 9:56:35 PM     330          error 0x80070002: While removing the request, the system failed to de-register the windows.MRT extension due to 
                                       the following error: The system cannot find the file specified.                                                 
                                       .                                                                                                               
11/15/2023 9:56:35 PM     10001        Finished servicing package 11353xenlab.xenmusictheultimatemusicapp_0.0.1.0_x64__q216zsm0wmyb2. Setting the      
                                       package state to enabled returned with 0x0.                                                                     
11/15/2023 9:56:35 PM     401          Deployment Register operation with target volume C: on Package                                                  
                                       11353xenlab.xenmusictheultimatemusicapp_0.0.1.0_x64__q216zsm0wmyb2 from:  (AppxManifest.xml)  failed with error 
                                       0x80073CF6. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.        
11/15/2023 9:56:35 PM     698          Deployment Register operation with target volume C: on Package                                                  
                                       11353xenlab.xenmusictheultimatemusicapp_0.0.1.0_x64__q216zsm0wmyb2 from:  (AppxManifest.xml)  failed with error 
                                       0x80073CF6. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.        
11/15/2023 9:56:35 PM     404          AppX Deployment operation failed for package 11353xenlab.xenmusictheultimatemusicapp_0.0.1.0_x64__q216zsm0wmyb2 
                                       with error 0x80073CF6. The specific error text for this failure is: error 0x80070057: While processing the      
                                       request, the system failed to register the windows.firewall extension due to the following error: The parameter 
                                       is incorrect.                                                                                                   
                                       .                                                                                                               
xenSlayer commented 8 months ago

could this be capabilities related issue?