What does Windows error code 15640 (ERROR_INSTALL_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE_FULLTRUST_CAPABILITY) mean?

 
Previous Next
ERROR_INSTALL_INVALID_RELATED_SET_UPDATE ERROR_DEPLOYMENT_BLOCKED_BY_USER_LOG_OFF

ERROR_INSTALL_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE_FULLTRUST_CAPABILITY

ERROR_INSTALL_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE_FULLTRUST_CAPABILITY means an optional package contains a FullTrust entry point, but the main package does not declare the required runFullTrust capability.

This is a package-manifest consistency requirement. Update the main package manifest and rebuild the entire related set; the optional package cannot supply the main package capability by itself.

What to check

  • Inspect the main package manifest for the required restricted capability declaration.
  • Verify that the optional package is part of the intended related set and that all package manifests were built from the same configuration.
  • Retest on a supported Windows version and use the deployment log to confirm no other capability or trust requirement remains.

Microsoft: App package deployment troubleshooting

Microsoft: Get-AppxLog

Microsoft: Add-AppxPackage

Microsoft: Full-trust desktop app package capability

Microsoft: Optional packages and related sets


Looking for a different code? Search another status or error code.