Allow winget to install MS Store packages without account#2095
Allow winget to install MS Store packages without account#2095yao-msft merged 10 commits intomicrosoft:masterfrom
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 <johnmcp@microsoft.com>
Co-authored-by: JohnMcPMS <johnmcp@microsoft.com>
addressed feedback
zachcwillson
left a comment
There was a problem hiding this comment.
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(); |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
JohnMcPMS
left a comment
There was a problem hiding this comment.
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. |
wingetto install MS Store packages without account just like the MS Store #1585enr.Status() == GetEntitlementStatus::NoStoreAccountto indicate it is okay to not have a store account.GetFreeUserEntitlementto return true ifenr.Status() == GetEntitlementStatus::NoStoreAccountMicrosoft Reviewers: Open in CodeFlow