-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow winget to install MS Store packages without account #2095
Allow winget to install MS Store packages without account #2095
Conversation
update log message for NoStoreAccount and add or check for return statement to return true for GetFreeUserEntitlement if status was no store account
Fix formatting and return statement
We've been told that we should call GetFreeDeviceEntitlementAsync. I would assume that this would be in response to a |
Address feedback around usage of GetFreeDeviceEntitlementAsync, moved state checking logic to its own method
Thanks for the tip @JohnMcPMS :) |
Update to make logging clear over which entitlement type failed or succeeded
Co-authored-by: JohnMcPMS <[email protected]>
Co-authored-by: JohnMcPMS <[email protected]>
addressed feedback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed feedback
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
address feedback
/azp run |
Commenter does not have sufficient privileges for PR 2095 in repo microsoft/winget-cli |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
context.Reporter.Info() << Resource::String::MSStoreInstallGetEntitlementNoStoreAccount << std::endl; | ||
AICLI_LOG(CLI, Error, << "Get entitlement failed. No Store account."); | ||
AICLI_LOG(CLI, Error, << "Get device entitlement."); | ||
result = installManager.GetFreeUserEntitlementAsync(productId, winrt::hstring(), winrt::hstring()).get(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how to drop my "request changes" without approving. I agree with the code parts, just a few log lines that are mistargeted.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Did this not make it into 22H2? |
This is included in winget v1.3 stable release and later. Though winget is pre-installed in Windosw, all updates are distributed through Microsoft Store. They are available in our Github releases too https://github.com/microsoft/winget-cli/releases |
So when will a version of |
@alexchandel Windows has a long release cycle. We do check in the "latest" stable version of WinGet into the OS for the next release, but it's often the case that a newer version is available by the time the OS is available to the public. |
winget
to install MS Store packages without account just like the MS Store #1585enr.Status() == GetEntitlementStatus::NoStoreAccount
to indicate it is okay to not have a store account.GetFreeUserEntitlement
to return true ifenr.Status() == GetEntitlementStatus::NoStoreAccount
Microsoft Reviewers: Open in CodeFlow