WSA-Community / WSAGAScript

Scripts to install Google Apps into a WSA image. Plus optional root
The Unlicense
3.57k stars 3.51k forks source link

error in command Add-AppxPackage my terminal is in administrator #50

Open CarlosGtzOf opened 2 years ago

CarlosGtzOf commented 2 years ago

Add-AppxPackage : Error de implementación con HRESULT: 0x80073CFF, Para instalar esta aplicación, es necesaria una licencia de desarrollador para Windows o un sistema habilitado para la instalación de prueba. Deployment of package MicrosoftCorporationII.WindowsSubsystemForAndroid_1.7.32815.0_x64__8wekyb3d8bbwe with package origin Unsigned failed because no valid license or sideloading policy could be applied. A developer license (http://go.microsoft.com/fwlink/?LinkId=233074) or enterprise sideloading configuration (http://go.microsoft.com/fwlink/?LinkId=231020) may be required. NOTA: Para obtener información adicional, consulta [ActivityId] b624e370-ca09-0000-c698-26b609cad701 en el registro de eventos o usa la línea de comandos Get-AppPackageLog-ActivityId b624e370-ca09-0000-c698-26b609cad701 En línea: 1 Carácter: 1

that is in spanish

and here is in english

Add-AppxPackage: Deployment error with HRESULT: 0x80073CFF, To install this application, a developer license for Windows or a system enabled for trial installation is required. Deployment of package MicrosoftCorporationII.WindowsSubsystemForAndroid_1.7.32815.0_x64__8wekyb3d8bbwe with package origin Unsigned failed because no valid license or sideloading policy could be applied. A developer license (http://go.microsoft.com/fwlink/?LinkId=233074) or enterprise sideloading configuration (http://go.microsoft.com/fwlink/?.Commands.AddAppxPackageCommandmay be required. NOTE: For additional information, see [ActivityId] b624e370-ca09-0000-c698-26b609cad701 in the events or uses the Get-AppPackageLog-ActivityId b624e370-ca09-0000-c698-26b609cad701 command line Line: 1 Character: 1

image

rakion99 commented 2 years ago

you forgot to enable developer mode in windows settings image

andyearnshaw commented 2 years ago

I have enabled Developer Mode but still hit this problem:

PS C:\Users\andye> Add-AppxPackage -Register .\Downloads\wsa-bundle\wsa-wix\AppxManifest.xml
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CFF, To install this application you need either a Windows
developer license or a sideloading-enabled system.
Package MicrosoftCorporationII.WindowsSubsystemForAndroid_1.7.32815.0_x64__8wekyb3d8bbwe with Windows Store origin
cannot be sideloaded or installed using developer mode option.
NOTE: For additional information, look for [ActivityId] 485efbe5-c8f9-0004-0108-d748f9c8d701 in the Event Log or use
the command line Get-AppPackageLog -ActivityID 485efbe5-c8f9-0004-0108-d748f9c8d701
At line:1 char:1
+ Add-AppxPackage -Register .\Downloads\wsa-bundle\wsa-wix\AppxManifest ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (C:\Users\andye\...ppxManifest.xml:String) [Add-AppxPackage], Exception
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

This seems to be the key part:

Package MicrosoftCorporationII.WindowsSubsystemForAndroid_1.7.32815.0_x64__8wekyb3d8bbwe with Windows Store origin cannot be sideloaded or installed using developer mode option.

Developer mode is definitely enabled:

image

DvaMishkiLapa commented 2 years ago

Faced the same problem :(

Windows 11 Pro 21H2
22000.282
Windows Feature Experience Pack 1000.22000.282.0
phobrla commented 2 years ago

I am also experiencing the same issue with Developer Mode enabled and having used Get-WindowsDeveloperLicense as well

image

image

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows
PS C:\Users\phil> Add-AppxPackage -Register "C:\WindowsSubsytemAndroid\AppxManifest.xml"
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CFF, To install this application you need either a Windows developer license or a sideloading-enabled system.
Package MicrosoftCorporationII.WindowsSubsystemForAndroid_1.7.32815.0_x64__8wekyb3d8bbwe with Windows Store origin cannot be sideloaded or installed using developer mode option.
NOTE: For additional information, look for [ActivityId] 366adf41-cabf-0002-dd04-6f36bfcad701 in the Event Log or use the command line Get-AppPackageLog -ActivityID 366adf41-cabf-0002-dd04-6f36bfcad701
At line:1 char:1
+ Add-AppxPackage -Register "C:\WindowsSubsytemAndroid\AppxManifest.xml ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (C:\WindowsSubsy...ppxManifest.xml:String) [Add-AppxPackage], Exception
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

PS C:\Users\phil> Get-AppPackageLog -ActivityID 366adf41-cabf-0002-dd04-6f36bfcad701

Time                      ID           Message
----                      --           -------
10/26/2021 7:19:39 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.
10/26/2021 7:19:39 PM     216          App manifest validation warning: Declared namespace http://schemas.microsoft.com/developer/appx/2015/build is inapplicable, it will be ignored during manifest processing.
10/26/2021 7:19:39 PM     10002        Creating Resiliency File C:\ProgramData\Microsoft\Windows\AppRepository\ea9990ac-58ce-46fc-baa5-8c281900e065_S-1-5-21-1037042551-3115551453-1687588347-1001_6.rslc for Register Operation on Package MicrosoftCorporationII.WindowsSubsystemForAndroid_1.7.32815.0_x64__8wekyb3d8bbwe.
10/26/2021 7:19:39 PM     607          Deployment Register operation on package MicrosoftCorporationII.WindowsSubsystemForAndroid_1.7.32815.0_x64__8wekyb3d8bbwe has been de-queued and is running for user SID S-1-5-21-1037042551-3115551453-1687588347-1001. 10/26/2021 7:19:39 PM     854          Successfully added the following uri(s) to be processed: C:\WindowsSubsytemAndroid\AppxManifest.xml.
10/26/2021 7:19:41 PM     216          App manifest validation warning: Declared namespace http://schemas.microsoft.com/developer/appx/2015/build is inapplicable, it will be ignored during manifest processing.
10/26/2021 7:19:41 PM     216          App manifest validation warning: Declared namespace http://schemas.microsoft.com/developer/appx/2015/build is inapplicable, it will be ignored during manifest processing.
10/26/2021 7:19:41 PM     216          App manifest validation warning: Declared namespace http://schemas.microsoft.com/developer/appx/2015/build is inapplicable, it will be ignored during manifest processing.
10/26/2021 7:19:41 PM     216          App manifest validation warning: Declared namespace http://schemas.microsoft.com/developer/appx/2015/build is inapplicable, it will be ignored during manifest processing.
10/26/2021 7:19:41 PM     216          App manifest validation warning: Declared namespace http://schemas.microsoft.com/developer/appx/2015/build is inapplicable, it will be ignored during manifest processing.
10/26/2021 7:19:41 PM     216          App manifest validation warning: Declared namespace http://schemas.microsoft.com/developer/appx/2015/build is inapplicable, it will be ignored during manifest processing.
10/26/2021 7:19:41 PM     855          Finished resolving action lists. DeploymentRequest action lists: addPackageList: MicrosoftCorporationII.WindowsSubsystemForAndroid_1.7.32815.0_x64__8wekyb3d8bbwe.
10/26/2021 7:19:42 PM     440          Package MicrosoftCorporationII.WindowsSubsystemForAndroid_1.7.32815.0_x64__8wekyb3d8bbwe with Windows Store origin cannot be sideloaded or installed using developer mode option.
10/26/2021 7:19:42 PM     605          The last successful state reached was UndockedDEHEvaluated. Failure occurred before reaching the next state Approved. hr: 0x80073CFF
10/26/2021 7:19:43 PM     401          Deployment Register operation with target volume C: on Package MicrosoftCorporationII.WindowsSubsystemForAndroid_1.7.32815.0_x64__8wekyb3d8bbwe from: (AppxManifest.xml)  failed with error 0x80073CFF. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
10/26/2021 7:19:43 PM     404          AppX Deployment operation failed for package MicrosoftCorporationII.WindowsSubsystemForAndroid_1.7.32815.0_x64__8wekyb3d8bbwe with error 0x80073CFF. The specific error text for this failure is: Package MicrosoftCorporationII.WindowsSubsystemForAndroid_1.7.32815.0_x64__8wekyb3d8bbwe with Windows Store origin cannot be sideloaded or installed using developer mode option.
vsxed commented 2 years ago

I am also experiencing the same issue with Developer Mode enabled and having used Get-WindowsDeveloperLicense as well

https://github.com/ADeltaX/WSAGAScript/issues/21#issuecomment-950187916

This one was my issue. Just overlooked it.

PauloDanielCarneiro commented 2 years ago

https://github.com/ADeltaX/WSAGAScript/issues/50#issuecomment-952893504

I have this same problem. Can't run the Add-AppxPackage command

Add-AppxPackage : Deployment failed with HRESULT: 0x80073CFF, To install this application you need either a Windows
developer license or a sideloading-enabled system.
Package MicrosoftCorporationII.WindowsSubsystemForAndroid_1.7.32815.0_x64__8wekyb3d8bbwe with Windows Store origin
cannot be sideloaded or installed using developer mode option.
NOTE: For additional information, look for [ActivityId] dc199e14-ccae-0005-22e4-1ddcaeccd701 in the Event Log or use
the command line Get-AppPackageLog -ActivityID dc199e14-ccae-0005-22e4-1ddcaeccd701
At line:1 char:1
+ Add-AppxPackage -Register C:\WSA\msix\WsaPackage\AppxManifest.xml
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (C:\WSA\msix\WsaPackage\AppxManifest.xml:String) [Add-AppxPackage], Except
   ion
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand
Ecorous commented 2 years ago

Same issue here. Any ideas?

azumukupoe commented 2 years ago

you guys probably didn't follow the instructions carefully I once got the same error but was able to run the command after starting over from the beginning

rg0 commented 2 years ago

https://answers.microsoft.com/en-us/windows/forum/all/help-with-0x80073cf9-on-windows-10/a1bd57d1-4bfe-4f9d-91c2-0a87c596f983