| Previous | Next |
| ERROR_DEV_SIDELOAD_LIMIT_EXCEEDED | ERROR_PACKAGE_NOT_SUPPORTED_ON_FILESYSTEM |
ERROR_INSTALL_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE
ERROR_INSTALL_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE means Windows was asked to install an optional package, but its required main package is not present.
Optional packages extend a main package and depend on its package identity. Install or provision the main package first, then deploy the optional package through the intended related-set workflow.
What to check
- Identify the main package family named by the optional package metadata.
- Verify that the main package is installed for the relevant user or provisioned as required by the deployment scenario.
- When distributing a related set, use an App Installer or bundle configuration that defines the main and optional packages together.
Get-AppxPackage -AllUsers
Microsoft: App package deployment troubleshooting
Microsoft: Optional packages and related sets
Looking for a different code? Search another status or error code.