MddDeletePackageDependency function (msixdynamicdependency.h)

Deletes the install-time reference for the framework package dependency you created earlier by using the MddTryCreatePackageDependency method. This method informs the OS that it is safe to remove the framework package if no other apps have a dependency on it.

Syntax

void MddDeletePackageDependency(
  PCWSTR packageDependencyId
) noexcept;

Parameters

packageDependencyId

Type: PCWSTR

The ID of the package dependency to remove.

Return value

Return code Description
E_INVALIDARG The packageDependencyId parameter is NULL on input.

Remarks

Removing a package dependency is typically done when an app is uninstalled. A package dependency is implicitly removed if its lifetime artifact (specified via the lifetimeArtifact parameter of the MddTryCreatePackageDependency function) is deleted. Package dependencies that are not referenced by other packages are elegible to be removed.

The caller of this function must have administrative privileges if the package dependency was created using ScopeIsSystem.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1809 (with Windows App SDK 1.0 or later)
Header msixdynamicdependency.h

See also

MddTryCreatePackageDependency

Use the dynamic dependency API to reference MSIX packages at run time