Skip to content

Add dependencies-only COM install option - #6544

Merged
JohnMcPMS merged 5 commits into
microsoft:masterfrom
Trenly:feature/com-install-dependencies-only-438766
Oct 1, 2026
Merged

JohnMcPMS merged 5 commits into
microsoft:masterfrom
Trenly:feature/com-install-dependencies-only-438766

Conversation

@Trenly

@Trenly Kaleb Luedtke (Trenly) commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

📖 Description

Adds InstallOptions.InstallDependenciesOnly to the Windows Package Manager COM API under WindowsPackageManagerContract version 30.

The option maps InstallPackageAsync to the existing dependency-only workflow, installing package dependencies without installing the requested package. It is disabled by default, does not affect UpgradePackageAsync, and returns InstallResultStatus.InvalidOptions when combined with SkipDependencies.

This change also adds COM interop coverage for a successful dependencies-only install and the conflicting-options case, and updates the release notes.

Copilot assisted with implementation and test development.

🔗 References

Resolves #6555

🔍 Validation

  • git diff --check
  • Added InstallWithInstallDependenciesOnly COM interop coverage.
  • Added InstallWithConflictingDependencyOptions COM interop coverage.
  • Attempted to build src\Microsoft.Management.Deployment\Microsoft.Management.Deployment.vcxproj for Debug x64 after restoring NuGet packages. The build is blocked by the local Windows SDK configuration because windows.foundation.foundationcontract\4.0.0.0 is missing from the configured SDK reference path.

✅ Checklist

📋 Issue Type

  • Bug fix
  • Feature
  • Task
Microsoft Reviewers: Open in CodeFlow

* Expose InstallDependenciesOnly in contract version 30
* Map dependency-only installs and reject conflicting options
* Add interop coverage and release notes

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@Trenly
Kaleb Luedtke (Trenly) marked this pull request as ready for review September 22, 2026 02:54
@Trenly
Kaleb Luedtke (Trenly) requested a review from a team as a code owner September 22, 2026 02:54
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
JohnMcPMS
JohnMcPMS previously approved these changes Sep 29, 2026
@JohnMcPMS

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@JohnMcPMS

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@JohnMcPMS
JohnMcPMS merged commit 4111be6 into microsoft:master Oct 1, 2026
9 checks passed
@Trenly
Kaleb Luedtke (Trenly) deleted the feature/com-install-dependencies-only-438766 branch October 1, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[New Feature]: Add dependencies-only option to COM install API

2 participants