Skip to content

Conversation

@DrusTheAxe
Copy link
Member

@DrusTheAxe DrusTheAxe commented Oct 2, 2025

API spec for FindPackageFile*() APIs

https://task.ms/59424502

@DrusTheAxe DrusTheAxe added this to the 2.0 milestone Oct 2, 2025
@DrusTheAxe DrusTheAxe self-assigned this Oct 2, 2025
@DrusTheAxe DrusTheAxe added the area-WinAppSDKDeployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged) label Oct 2, 2025
@DrusTheAxe DrusTheAxe changed the title Package API Spec - FindPackageFile*() MSIX FindPackageFile*() API Spec - Oct 3, 2025
@DrusTheAxe DrusTheAxe changed the title MSIX FindPackageFile*() API Spec - MSIX FindPackageFile*() API Spec Oct 3, 2025
@Scottj1s
Copy link
Member

Scottj1s commented Oct 3, 2025

Do any of these APIs require admin, as e.g. PM.FindPackage does? Would be really nice to not have that restriction (and a selling point!)

@DrusTheAxe
Copy link
Member Author

Do any of these APIs require admin, as e.g. PM.FindPackage does? Would be really nice to not have that restriction (and a selling point!)

No

PM.FindPackage requires admin privilege because it access per-machine and other-user information (not just current user).

These APIs only use current-user information thus no admin privilege needed.

@DrusTheAxe
Copy link
Member Author

How will these APIs play out when Administrator Protection is turned on?

No different than if you call existing APIs today e.g. GetCurrentPackagePath2(), GetPackagePathByFullName2(), GetCurrentPackageInfo2, GetPackageInfo2(), Windows.ApplicationModel.Package.EffectivePath and so on. Administrator Protection should handle these or have a good explanation why not and what to do about it.

@DrusTheAxe
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@DrusTheAxe DrusTheAxe requested a review from nieubank October 10, 2025 19:57
@DrusTheAxe DrusTheAxe merged commit a11b776 into main Oct 10, 2025
2 checks passed
@DrusTheAxe DrusTheAxe deleted the user/drustheaxe/FindPackageFile-spec branch October 10, 2025 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-WinAppSDKDeployment Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged) needs-triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants