Force-remove a Windows 10 Appx package, skipping any errors that might occur












3















I bought the pre-order version of Forza Motorsport 7 in September. During installation of the pre-order, an error occurred which left the installation mostly installed. Forza Motorsport is delivered via the Windows Store, and is distributed via the Appx App Packager.



Now that Forza Motorsport 7 has "gone gold", I'd like to install the full version of the game. Typically this automatically occurs when you run the pre-order "stub" application, however because of the problem during the initial installation, the full game is not downloading.



My first thought was do a simple "uninstall and re-install", however attempting to uninstall the app using the "Apps and Features" page in Settings results in this error:




We couldn't uninstall Forza Motorsport 7.

The operation did not complete successfully. Try again in a bit.

The error code is 0x8000000e, in case you need it.




Not helpful. Next I used Get-AppxPackage *Apollo* (Apollo is the code name for this game) via PowerShell to obtain the Appx Package Name for the game, then used Remove-AppxPackage "Microsoft.ApolloBaseGame_1.0.2.2_64__xwekyb3d8bbwe" to uninstall the app. That doesn't work with the following error:




PS C:WINDOWSsystem32> Remove-AppxPackage Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe

Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact your software vendor.

Deployment Remove operation with target volume E: on Package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe from: failed with error 0x80070002. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.

NOTE: For additional information, look for [ActivityId] 59ff267b-3c76-0002-2d54-ff59763cd301 in the Event Log or use the command line Get-AppxLog -ActivityID 59ff267b-3c76-0002-2d54-ff59763cd301

At line:1 char:1

+ Remove-AppxPackage Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbw ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : WriteError: (Microsoft.Apoll...__8wekyb3d8bbwe:String) [Remove-AppxPackage], IOException

+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand




As recommended in the output above, I ran Get-Appxlog to see the actual error:




PS C:WINDOWSsystem32> Get-AppxLog -ActivityID 59ff267b-3c76-0002-2d54-ff59763cd301

Time ID Message
---- -- -------
2017-10-03 2:43:13 PM 603 Started deployment Remove operation on a package with main parameter: Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe and Options: 0. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
deployment issues.
2017-10-03 2:43:13 PM 10002 Creating Resiliency File C:ProgramDataMicrosoftWindowsAppRepositoryb5d59b38-d0ce-4730-a93c-da39a1a1d34e_S-1-5-21-2808904017-3304153599-3912926511-1001_2.rslc for Remove Operation on Package
Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe.
2017-10-03 2:43:13 PM 607 Deployment Remove operation on package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe has been de-queued and is running for user SID S-1-5-21-2808904017-3304153599-3912926511-1001.
2017-10-03 2:43:13 PM 605 The last successful state reached was BundleProcessed. Failure occurred before reaching the next state Indexed. hr: 0x80070002
2017-10-03 2:43:13 PM 401 Deployment Remove operation with target volume E: on Package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe from: failed with error 0x80070002. See http://go.microsoft.com/fwlink/?LinkId=235160 for help
diagnosing app deployment issues.
2017-10-03 2:43:13 PM 404 AppX Deployment operation failed for package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe with error 0x80073CFA. The specific error text for this failure is: Deployment Remove operation with target volume E: on
Package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe from: failed with error 0x80070002. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.


Error: 0x80070002 seems to indicate a "file not found" error. Although the messaging doesn't show which file was not found. So helpful.



Next, I tried using DISM.exe to remove the package:



C:WINDOWSsystem32>C:Windowssystem32Dism.exe /online /remove-provisionedappxpackage /packagename:Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe

Deployment Image Servicing and Management tool
Version: 10.0.15063.0

Image Version: 10.0.15063.0


Error: 2

The system cannot find the file specified.

The DISM log file can be found at C:WINDOWSLogsDISMdism.log


Relevant content from the DISM log file:



2017-10-03 14:57:36, Info                  DISM   DISM Appx Provider: PID=8912 TID=10092 Processing 'packagename' option at index 2 - CAppxManager::ProcessCommandRemoveAllUserAppx
2017-10-03 14:57:36, Info DISM DISM Appx Provider: PID=8912 TID=10092 packagename='Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe' - CAppxManager::ProcessCommandRemoveAllUserAppx
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to open 'C:Program FilesWindowsAppsMicrosoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbweAppxMetadataAppxBundleManifest.xml'. - CPackageAdapter::GetOptionalPackagesForMainPackage(hr:0x80070002)
2017-10-03 14:57:36, Warning DISM DISM Appx Provider: PID=8912 TID=10092 Getting optional package list for 'Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe' hit error 0x80070002 - CAppxManager::RemoveAllUserAppx
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to get the list of packages to remove - CPackageAdapter::DeregisterMainPackageAndGetDependencyPackages(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to deregister main package and get its dependent packages - CPackageAdapter::DeregisterPackageOnline(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to deregister packages. - CPackageAdapter::RemovePackageOnline(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Encountered failure while removing package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe - CAppxManager::RemoveAllUserAppx(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to remove package 'Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe' - CAppxManager::ProcessCommandRemoveAllUserAppx(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed processing command to remove Appx package - CAppxManager::ExecuteCmdLine(hr:0x80070002)


Using the command-line, I can verify that C:Program FilesWindowsAppsMicrosoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbweAppxMetadataAppxBundleManifest.xml does not exist. However, I cannot create the file, nor can I copy a file into that location. Even if I run cmd.exe as system, via PsExec:



psexec -e -i -h -s cmd.exe


Is there some way to manually get rid of an Appx package that cannot be uninstalled? Alternately, is there some way to manually trigger a re-install of an appx?



I could boot from a Windows PE environment and create a fake AppxBundleManifest.xml file, but I feel like a fake xml manifest will likely just make things worse. Presumably that manifest file typically contains dependency information that is needed by the uninstall process.



Do I have to format C: and re-install? Really?










share|improve this question























  • Command: Remove-AppXProvisionedPackage -Online -PackageName <PackageName>

    – Biswapriyo
    Oct 3 '17 at 20:41
















3















I bought the pre-order version of Forza Motorsport 7 in September. During installation of the pre-order, an error occurred which left the installation mostly installed. Forza Motorsport is delivered via the Windows Store, and is distributed via the Appx App Packager.



Now that Forza Motorsport 7 has "gone gold", I'd like to install the full version of the game. Typically this automatically occurs when you run the pre-order "stub" application, however because of the problem during the initial installation, the full game is not downloading.



My first thought was do a simple "uninstall and re-install", however attempting to uninstall the app using the "Apps and Features" page in Settings results in this error:




We couldn't uninstall Forza Motorsport 7.

The operation did not complete successfully. Try again in a bit.

The error code is 0x8000000e, in case you need it.




Not helpful. Next I used Get-AppxPackage *Apollo* (Apollo is the code name for this game) via PowerShell to obtain the Appx Package Name for the game, then used Remove-AppxPackage "Microsoft.ApolloBaseGame_1.0.2.2_64__xwekyb3d8bbwe" to uninstall the app. That doesn't work with the following error:




PS C:WINDOWSsystem32> Remove-AppxPackage Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe

Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact your software vendor.

Deployment Remove operation with target volume E: on Package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe from: failed with error 0x80070002. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.

NOTE: For additional information, look for [ActivityId] 59ff267b-3c76-0002-2d54-ff59763cd301 in the Event Log or use the command line Get-AppxLog -ActivityID 59ff267b-3c76-0002-2d54-ff59763cd301

At line:1 char:1

+ Remove-AppxPackage Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbw ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : WriteError: (Microsoft.Apoll...__8wekyb3d8bbwe:String) [Remove-AppxPackage], IOException

+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand




As recommended in the output above, I ran Get-Appxlog to see the actual error:




PS C:WINDOWSsystem32> Get-AppxLog -ActivityID 59ff267b-3c76-0002-2d54-ff59763cd301

Time ID Message
---- -- -------
2017-10-03 2:43:13 PM 603 Started deployment Remove operation on a package with main parameter: Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe and Options: 0. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
deployment issues.
2017-10-03 2:43:13 PM 10002 Creating Resiliency File C:ProgramDataMicrosoftWindowsAppRepositoryb5d59b38-d0ce-4730-a93c-da39a1a1d34e_S-1-5-21-2808904017-3304153599-3912926511-1001_2.rslc for Remove Operation on Package
Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe.
2017-10-03 2:43:13 PM 607 Deployment Remove operation on package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe has been de-queued and is running for user SID S-1-5-21-2808904017-3304153599-3912926511-1001.
2017-10-03 2:43:13 PM 605 The last successful state reached was BundleProcessed. Failure occurred before reaching the next state Indexed. hr: 0x80070002
2017-10-03 2:43:13 PM 401 Deployment Remove operation with target volume E: on Package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe from: failed with error 0x80070002. See http://go.microsoft.com/fwlink/?LinkId=235160 for help
diagnosing app deployment issues.
2017-10-03 2:43:13 PM 404 AppX Deployment operation failed for package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe with error 0x80073CFA. The specific error text for this failure is: Deployment Remove operation with target volume E: on
Package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe from: failed with error 0x80070002. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.


Error: 0x80070002 seems to indicate a "file not found" error. Although the messaging doesn't show which file was not found. So helpful.



Next, I tried using DISM.exe to remove the package:



C:WINDOWSsystem32>C:Windowssystem32Dism.exe /online /remove-provisionedappxpackage /packagename:Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe

Deployment Image Servicing and Management tool
Version: 10.0.15063.0

Image Version: 10.0.15063.0


Error: 2

The system cannot find the file specified.

The DISM log file can be found at C:WINDOWSLogsDISMdism.log


Relevant content from the DISM log file:



2017-10-03 14:57:36, Info                  DISM   DISM Appx Provider: PID=8912 TID=10092 Processing 'packagename' option at index 2 - CAppxManager::ProcessCommandRemoveAllUserAppx
2017-10-03 14:57:36, Info DISM DISM Appx Provider: PID=8912 TID=10092 packagename='Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe' - CAppxManager::ProcessCommandRemoveAllUserAppx
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to open 'C:Program FilesWindowsAppsMicrosoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbweAppxMetadataAppxBundleManifest.xml'. - CPackageAdapter::GetOptionalPackagesForMainPackage(hr:0x80070002)
2017-10-03 14:57:36, Warning DISM DISM Appx Provider: PID=8912 TID=10092 Getting optional package list for 'Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe' hit error 0x80070002 - CAppxManager::RemoveAllUserAppx
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to get the list of packages to remove - CPackageAdapter::DeregisterMainPackageAndGetDependencyPackages(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to deregister main package and get its dependent packages - CPackageAdapter::DeregisterPackageOnline(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to deregister packages. - CPackageAdapter::RemovePackageOnline(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Encountered failure while removing package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe - CAppxManager::RemoveAllUserAppx(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to remove package 'Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe' - CAppxManager::ProcessCommandRemoveAllUserAppx(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed processing command to remove Appx package - CAppxManager::ExecuteCmdLine(hr:0x80070002)


Using the command-line, I can verify that C:Program FilesWindowsAppsMicrosoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbweAppxMetadataAppxBundleManifest.xml does not exist. However, I cannot create the file, nor can I copy a file into that location. Even if I run cmd.exe as system, via PsExec:



psexec -e -i -h -s cmd.exe


Is there some way to manually get rid of an Appx package that cannot be uninstalled? Alternately, is there some way to manually trigger a re-install of an appx?



I could boot from a Windows PE environment and create a fake AppxBundleManifest.xml file, but I feel like a fake xml manifest will likely just make things worse. Presumably that manifest file typically contains dependency information that is needed by the uninstall process.



Do I have to format C: and re-install? Really?










share|improve this question























  • Command: Remove-AppXProvisionedPackage -Online -PackageName <PackageName>

    – Biswapriyo
    Oct 3 '17 at 20:41














3












3








3








I bought the pre-order version of Forza Motorsport 7 in September. During installation of the pre-order, an error occurred which left the installation mostly installed. Forza Motorsport is delivered via the Windows Store, and is distributed via the Appx App Packager.



Now that Forza Motorsport 7 has "gone gold", I'd like to install the full version of the game. Typically this automatically occurs when you run the pre-order "stub" application, however because of the problem during the initial installation, the full game is not downloading.



My first thought was do a simple "uninstall and re-install", however attempting to uninstall the app using the "Apps and Features" page in Settings results in this error:




We couldn't uninstall Forza Motorsport 7.

The operation did not complete successfully. Try again in a bit.

The error code is 0x8000000e, in case you need it.




Not helpful. Next I used Get-AppxPackage *Apollo* (Apollo is the code name for this game) via PowerShell to obtain the Appx Package Name for the game, then used Remove-AppxPackage "Microsoft.ApolloBaseGame_1.0.2.2_64__xwekyb3d8bbwe" to uninstall the app. That doesn't work with the following error:




PS C:WINDOWSsystem32> Remove-AppxPackage Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe

Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact your software vendor.

Deployment Remove operation with target volume E: on Package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe from: failed with error 0x80070002. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.

NOTE: For additional information, look for [ActivityId] 59ff267b-3c76-0002-2d54-ff59763cd301 in the Event Log or use the command line Get-AppxLog -ActivityID 59ff267b-3c76-0002-2d54-ff59763cd301

At line:1 char:1

+ Remove-AppxPackage Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbw ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : WriteError: (Microsoft.Apoll...__8wekyb3d8bbwe:String) [Remove-AppxPackage], IOException

+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand




As recommended in the output above, I ran Get-Appxlog to see the actual error:




PS C:WINDOWSsystem32> Get-AppxLog -ActivityID 59ff267b-3c76-0002-2d54-ff59763cd301

Time ID Message
---- -- -------
2017-10-03 2:43:13 PM 603 Started deployment Remove operation on a package with main parameter: Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe and Options: 0. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
deployment issues.
2017-10-03 2:43:13 PM 10002 Creating Resiliency File C:ProgramDataMicrosoftWindowsAppRepositoryb5d59b38-d0ce-4730-a93c-da39a1a1d34e_S-1-5-21-2808904017-3304153599-3912926511-1001_2.rslc for Remove Operation on Package
Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe.
2017-10-03 2:43:13 PM 607 Deployment Remove operation on package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe has been de-queued and is running for user SID S-1-5-21-2808904017-3304153599-3912926511-1001.
2017-10-03 2:43:13 PM 605 The last successful state reached was BundleProcessed. Failure occurred before reaching the next state Indexed. hr: 0x80070002
2017-10-03 2:43:13 PM 401 Deployment Remove operation with target volume E: on Package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe from: failed with error 0x80070002. See http://go.microsoft.com/fwlink/?LinkId=235160 for help
diagnosing app deployment issues.
2017-10-03 2:43:13 PM 404 AppX Deployment operation failed for package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe with error 0x80073CFA. The specific error text for this failure is: Deployment Remove operation with target volume E: on
Package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe from: failed with error 0x80070002. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.


Error: 0x80070002 seems to indicate a "file not found" error. Although the messaging doesn't show which file was not found. So helpful.



Next, I tried using DISM.exe to remove the package:



C:WINDOWSsystem32>C:Windowssystem32Dism.exe /online /remove-provisionedappxpackage /packagename:Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe

Deployment Image Servicing and Management tool
Version: 10.0.15063.0

Image Version: 10.0.15063.0


Error: 2

The system cannot find the file specified.

The DISM log file can be found at C:WINDOWSLogsDISMdism.log


Relevant content from the DISM log file:



2017-10-03 14:57:36, Info                  DISM   DISM Appx Provider: PID=8912 TID=10092 Processing 'packagename' option at index 2 - CAppxManager::ProcessCommandRemoveAllUserAppx
2017-10-03 14:57:36, Info DISM DISM Appx Provider: PID=8912 TID=10092 packagename='Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe' - CAppxManager::ProcessCommandRemoveAllUserAppx
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to open 'C:Program FilesWindowsAppsMicrosoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbweAppxMetadataAppxBundleManifest.xml'. - CPackageAdapter::GetOptionalPackagesForMainPackage(hr:0x80070002)
2017-10-03 14:57:36, Warning DISM DISM Appx Provider: PID=8912 TID=10092 Getting optional package list for 'Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe' hit error 0x80070002 - CAppxManager::RemoveAllUserAppx
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to get the list of packages to remove - CPackageAdapter::DeregisterMainPackageAndGetDependencyPackages(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to deregister main package and get its dependent packages - CPackageAdapter::DeregisterPackageOnline(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to deregister packages. - CPackageAdapter::RemovePackageOnline(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Encountered failure while removing package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe - CAppxManager::RemoveAllUserAppx(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to remove package 'Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe' - CAppxManager::ProcessCommandRemoveAllUserAppx(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed processing command to remove Appx package - CAppxManager::ExecuteCmdLine(hr:0x80070002)


Using the command-line, I can verify that C:Program FilesWindowsAppsMicrosoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbweAppxMetadataAppxBundleManifest.xml does not exist. However, I cannot create the file, nor can I copy a file into that location. Even if I run cmd.exe as system, via PsExec:



psexec -e -i -h -s cmd.exe


Is there some way to manually get rid of an Appx package that cannot be uninstalled? Alternately, is there some way to manually trigger a re-install of an appx?



I could boot from a Windows PE environment and create a fake AppxBundleManifest.xml file, but I feel like a fake xml manifest will likely just make things worse. Presumably that manifest file typically contains dependency information that is needed by the uninstall process.



Do I have to format C: and re-install? Really?










share|improve this question














I bought the pre-order version of Forza Motorsport 7 in September. During installation of the pre-order, an error occurred which left the installation mostly installed. Forza Motorsport is delivered via the Windows Store, and is distributed via the Appx App Packager.



Now that Forza Motorsport 7 has "gone gold", I'd like to install the full version of the game. Typically this automatically occurs when you run the pre-order "stub" application, however because of the problem during the initial installation, the full game is not downloading.



My first thought was do a simple "uninstall and re-install", however attempting to uninstall the app using the "Apps and Features" page in Settings results in this error:




We couldn't uninstall Forza Motorsport 7.

The operation did not complete successfully. Try again in a bit.

The error code is 0x8000000e, in case you need it.




Not helpful. Next I used Get-AppxPackage *Apollo* (Apollo is the code name for this game) via PowerShell to obtain the Appx Package Name for the game, then used Remove-AppxPackage "Microsoft.ApolloBaseGame_1.0.2.2_64__xwekyb3d8bbwe" to uninstall the app. That doesn't work with the following error:




PS C:WINDOWSsystem32> Remove-AppxPackage Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe

Remove-AppxPackage : Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact your software vendor.

Deployment Remove operation with target volume E: on Package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe from: failed with error 0x80070002. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.

NOTE: For additional information, look for [ActivityId] 59ff267b-3c76-0002-2d54-ff59763cd301 in the Event Log or use the command line Get-AppxLog -ActivityID 59ff267b-3c76-0002-2d54-ff59763cd301

At line:1 char:1

+ Remove-AppxPackage Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbw ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : WriteError: (Microsoft.Apoll...__8wekyb3d8bbwe:String) [Remove-AppxPackage], IOException

+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand




As recommended in the output above, I ran Get-Appxlog to see the actual error:




PS C:WINDOWSsystem32> Get-AppxLog -ActivityID 59ff267b-3c76-0002-2d54-ff59763cd301

Time ID Message
---- -- -------
2017-10-03 2:43:13 PM 603 Started deployment Remove operation on a package with main parameter: Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe and Options: 0. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app
deployment issues.
2017-10-03 2:43:13 PM 10002 Creating Resiliency File C:ProgramDataMicrosoftWindowsAppRepositoryb5d59b38-d0ce-4730-a93c-da39a1a1d34e_S-1-5-21-2808904017-3304153599-3912926511-1001_2.rslc for Remove Operation on Package
Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe.
2017-10-03 2:43:13 PM 607 Deployment Remove operation on package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe has been de-queued and is running for user SID S-1-5-21-2808904017-3304153599-3912926511-1001.
2017-10-03 2:43:13 PM 605 The last successful state reached was BundleProcessed. Failure occurred before reaching the next state Indexed. hr: 0x80070002
2017-10-03 2:43:13 PM 401 Deployment Remove operation with target volume E: on Package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe from: failed with error 0x80070002. See http://go.microsoft.com/fwlink/?LinkId=235160 for help
diagnosing app deployment issues.
2017-10-03 2:43:13 PM 404 AppX Deployment operation failed for package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe with error 0x80073CFA. The specific error text for this failure is: Deployment Remove operation with target volume E: on
Package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe from: failed with error 0x80070002. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.


Error: 0x80070002 seems to indicate a "file not found" error. Although the messaging doesn't show which file was not found. So helpful.



Next, I tried using DISM.exe to remove the package:



C:WINDOWSsystem32>C:Windowssystem32Dism.exe /online /remove-provisionedappxpackage /packagename:Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe

Deployment Image Servicing and Management tool
Version: 10.0.15063.0

Image Version: 10.0.15063.0


Error: 2

The system cannot find the file specified.

The DISM log file can be found at C:WINDOWSLogsDISMdism.log


Relevant content from the DISM log file:



2017-10-03 14:57:36, Info                  DISM   DISM Appx Provider: PID=8912 TID=10092 Processing 'packagename' option at index 2 - CAppxManager::ProcessCommandRemoveAllUserAppx
2017-10-03 14:57:36, Info DISM DISM Appx Provider: PID=8912 TID=10092 packagename='Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe' - CAppxManager::ProcessCommandRemoveAllUserAppx
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to open 'C:Program FilesWindowsAppsMicrosoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbweAppxMetadataAppxBundleManifest.xml'. - CPackageAdapter::GetOptionalPackagesForMainPackage(hr:0x80070002)
2017-10-03 14:57:36, Warning DISM DISM Appx Provider: PID=8912 TID=10092 Getting optional package list for 'Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe' hit error 0x80070002 - CAppxManager::RemoveAllUserAppx
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to get the list of packages to remove - CPackageAdapter::DeregisterMainPackageAndGetDependencyPackages(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to deregister main package and get its dependent packages - CPackageAdapter::DeregisterPackageOnline(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to deregister packages. - CPackageAdapter::RemovePackageOnline(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Encountered failure while removing package Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe - CAppxManager::RemoveAllUserAppx(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed to remove package 'Microsoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbwe' - CAppxManager::ProcessCommandRemoveAllUserAppx(hr:0x80070002)
2017-10-03 14:57:36, Error DISM DISM Appx Provider: PID=8912 TID=10092 Failed processing command to remove Appx package - CAppxManager::ExecuteCmdLine(hr:0x80070002)


Using the command-line, I can verify that C:Program FilesWindowsAppsMicrosoft.ApolloBaseGame_1.0.2.2_x64__8wekyb3d8bbweAppxMetadataAppxBundleManifest.xml does not exist. However, I cannot create the file, nor can I copy a file into that location. Even if I run cmd.exe as system, via PsExec:



psexec -e -i -h -s cmd.exe


Is there some way to manually get rid of an Appx package that cannot be uninstalled? Alternately, is there some way to manually trigger a re-install of an appx?



I could boot from a Windows PE environment and create a fake AppxBundleManifest.xml file, but I feel like a fake xml manifest will likely just make things worse. Presumably that manifest file typically contains dependency information that is needed by the uninstall process.



Do I have to format C: and re-install? Really?







windows-10 uninstall uwp






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 3 '17 at 20:17









Max VernonMax Vernon

358619




358619













  • Command: Remove-AppXProvisionedPackage -Online -PackageName <PackageName>

    – Biswapriyo
    Oct 3 '17 at 20:41



















  • Command: Remove-AppXProvisionedPackage -Online -PackageName <PackageName>

    – Biswapriyo
    Oct 3 '17 at 20:41

















Command: Remove-AppXProvisionedPackage -Online -PackageName <PackageName>

– Biswapriyo
Oct 3 '17 at 20:41





Command: Remove-AppXProvisionedPackage -Online -PackageName <PackageName>

– Biswapriyo
Oct 3 '17 at 20:41










2 Answers
2






active

oldest

votes


















2














The only way I was able to resolve this was by reinstalling Windows cleanly. In my opinion, Microsoft should create a way to force re-install an app.






share|improve this answer































    0














    No need to Reinstall Windows 10, I had the same problem, the difference is that all my games are installed in another HD on an external HD, this way, just disconnect the HD restart windows, click on the button to run the game and it will appear a message to reinstall, just connect the HD again and reinstall the Game.






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1255903%2fforce-remove-a-windows-10-appx-package-skipping-any-errors-that-might-occur%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2














      The only way I was able to resolve this was by reinstalling Windows cleanly. In my opinion, Microsoft should create a way to force re-install an app.






      share|improve this answer




























        2














        The only way I was able to resolve this was by reinstalling Windows cleanly. In my opinion, Microsoft should create a way to force re-install an app.






        share|improve this answer


























          2












          2








          2







          The only way I was able to resolve this was by reinstalling Windows cleanly. In my opinion, Microsoft should create a way to force re-install an app.






          share|improve this answer













          The only way I was able to resolve this was by reinstalling Windows cleanly. In my opinion, Microsoft should create a way to force re-install an app.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 3 '18 at 2:17









          Max VernonMax Vernon

          358619




          358619

























              0














              No need to Reinstall Windows 10, I had the same problem, the difference is that all my games are installed in another HD on an external HD, this way, just disconnect the HD restart windows, click on the button to run the game and it will appear a message to reinstall, just connect the HD again and reinstall the Game.






              share|improve this answer




























                0














                No need to Reinstall Windows 10, I had the same problem, the difference is that all my games are installed in another HD on an external HD, this way, just disconnect the HD restart windows, click on the button to run the game and it will appear a message to reinstall, just connect the HD again and reinstall the Game.






                share|improve this answer


























                  0












                  0








                  0







                  No need to Reinstall Windows 10, I had the same problem, the difference is that all my games are installed in another HD on an external HD, this way, just disconnect the HD restart windows, click on the button to run the game and it will appear a message to reinstall, just connect the HD again and reinstall the Game.






                  share|improve this answer













                  No need to Reinstall Windows 10, I had the same problem, the difference is that all my games are installed in another HD on an external HD, this way, just disconnect the HD restart windows, click on the button to run the game and it will appear a message to reinstall, just connect the HD again and reinstall the Game.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 26 at 12:44









                  Alexandre GG - HighTechAlexandre GG - HighTech

                  1




                  1






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1255903%2fforce-remove-a-windows-10-appx-package-skipping-any-errors-that-might-occur%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Plaza Victoria

                      In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                      How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...