<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[gOxiA=苏繁=SuFan Blog]]></title> 
<link>https://goxia.maytide.net/index.php</link> 
<description><![CDATA[gOxiA,苏繁,sufan,Microsoft MVP]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[gOxiA=苏繁=SuFan Blog]]></copyright>
<item>
<link>https://goxia.maytide.net/read.php/2119.htm</link>
<title><![CDATA[HOWTO: 使用 WinGet 从 Microsoft Store Apps 下载 Windows App 进行脱机分发]]></title> 
<author>gOxiA &lt;sufan_cn@msn.com&gt;</author>
<category><![CDATA[Deployment]]></category>
<pubDate>Sat, 07 Sep 2024 04:55:52 +0000</pubDate> 
<guid>https://goxia.maytide.net/read.php/2119.htm</guid> 
<description>
<![CDATA[ 
	<p><a href="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/Windows_Package_Manager_Banner.png"><img width="580" height="80" title="Windows_Package_Manager_Banner" style="border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="Windows_Package_Manager_Banner" src="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/Windows_Package_Manager_Banner_thumb.png" border="0"></a></p><p><strong><font color="#fd3f0d" size="4">HOWTO: 使用 WinGet 从 Microsoft Store Apps 下载 Windows App 进行脱机分发</font></strong></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WinGet 即 Windows Package Manager（Windows程序包管理器），一款微软原生的以命令行方式运行的应用程序包管理，它还提供了 <a href="https://github.com/microsoft/winget-cli" target="_blank">open source client</a>，可用于应用程序的云安装。WinGet 发布于 2020 年的 Microsoft Build 大会上，当时 <a href="https://goxia.maytide.net" target="_blank">gOxiA</a> 还写了一篇介绍的日志“<a href="https://goxia.maytide.net/read.php/1985.htm" target="_blank">体验新的 Windows 程序包管理器</a>”。过去 WinGet 由于处于预览阶段，其 WinGet-cli 当时未内置于系统中，所以还曾写过一篇日志来讲解如何通过 Intune 分发 WinGet-cli “<a href="https://goxia.maytide.net/read.php/2008.htm" target="_blank">HOWTO: 通过 Intune 分发 WinGet 测试版</a>”。在经过了几年的演进后，WinGet-cli 已经内置于系统，且不断在更新完善！就在前不久发布的 v1.8 版本开始还提供了对下载 <a href="https://apps.microsoft.com" target="_blank">Microsoft Store apps</a> 的支持。这是一个令人兴奋的消息，它将提高企业 IT 在动态和现代部署方面的灵活性。此外，专注于 Intune 和 MSStore Apps 部署的朋友也许已经注意到 <a href="https://businessstore.microsoft.com/en-us/store" target="_blank">Microsoft Store for Business</a> 已经退役下线，WinGet v1.8 就像及时雨一般，解决了当前下载 MSStore Apps 的问题。</p><p><a href="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/MSStore_for_Business_retired.png"><img width="630" height="192" title="MSStore_for_Business_retired" style="border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="MSStore_for_Business_retired" src="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/MSStore_for_Business_retired_thumb.png" border="0"></a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 今天 gOxiA 将与大家分享的是如何使用 WinGet 下载微软应用商店中的应用安装包。以 “Windows App”为例，首先我们可以使用 WinGet Search 进行应用的搜索。从下图我们获得了一个搜索结果列表，位于第一行的便是要下载的“Windows App”，包含了它的 ID 信息，可能包含的版本信息，以及源于 MSStore。</p><p><a href="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/winget-search.png"><img width="630" height="255" title="winget-search" style="border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="winget-search" src="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/winget-search_thumb.png" border="0"></a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 然后，我们可以使用 WinGet Show 显示应用的详细信息，其中我们可以检索该应用是否支持脱机分发，如下图所示 “Windows App” 的 “支持脱机分发” 状态为 “true”。</p><p><a href="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/winget-show.png"><img width="630" height="460" title="winget-show" style="border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="winget-show" src="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/winget-show_thumb.png" border="0"></a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 接下来，我们可以使用 WinGet Download 进行下载。注意，虽然 WinGet 支持从 MSStore 下载应用安装包，但需要进行身份验证。</p><p><a href="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/winget-download-error-1.png"><img width="630" height="508" title="winget-download-error-1" style="border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="winget-download-error-1" src="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/winget-download-error-1_thumb.png" border="0"></a></p><p><a href="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/winget-download-error.png"><img width="630" height="614" title="winget-download-error" style="border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="winget-download-error" src="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/winget-download-error_thumb.png" border="0"></a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 只有完成身份验证后才能进行应用安装包的下载。在下载的过程除了会下载应用安装包，还会下载其依赖包以及应用许可证。注意，应用许可证会再进行一次身份验证。</p><p><a href="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/winget-download.png"><img width="539" height="732" title="winget-download" style="border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="winget-download" src="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/winget-download_thumb.png" border="0"></a></p><p><a href="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/winget-download-license.png"><img width="630" height="124" title="winget-download-license" style="border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="winget-download-license" src="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/winget-download-license_thumb.png" border="0"></a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 成功下载所有文件后，我们可以在“下载”目录看到它，WinGet 会以应用 ID 新生成一个目录，其中包含了所有相关的文件。</p><p><a href="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/winget-download-1.png"><img width="630" height="406" title="winget-download-1" style="border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="winget-download-1" src="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/winget-download-1_thumb.png" border="0"></a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 最后，企业 IT 便可以通过 <a href="https://learn.microsoft.com/en-us/windows/configuration/provisioning-packages/provision-pcs-with-apps/?WT.mc_id=WDIT-MVP-4000544" target="_blank">PPKG</a> 或 <a href="https://learn.microsoft.com/en-us/mem/intune/apps/lob-apps-windows/?WT.mc_id=WDIT-MVP-4000544" target="_blank">Intune 的 Windows 业务线应用</a>进行部署。</p><p>PPKG - </p><p><a href="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/ppkg-uwp.png"><img width="634" height="717" title="ppkg-uwp" style="border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="ppkg-uwp" src="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/ppkg-uwp_thumb.png" border="0"></a></p><p>Intune -</p><p><a href="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/intune-lob.png"><img width="552" height="736" title="intune-lob" style="border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="intune-lob" src="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/intune-lob_thumb.png" border="0"></a></p><p><a href="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/intune-lob-1.png"><img width="634" height="605" title="intune-lob-1" style="border: 0px currentcolor; border-image: none; display: inline; background-image: none;" alt="intune-lob-1" src="http://goxia.maytide.net/ftpup/2018/fcc01ae3a33b_96C9/intune-lob-1_thumb.png" border="0"></a></p><p>推荐官方文档：</p><p><a href="https://learn.microsoft.com/en-us/windows/package-manager/winget//?WT.mc_id=WDIT-MVP-4000544" target="_blank">Use the WinGet Tool to install and manage applications &#124; Microsoft Learn</a></p>
]]>
</description>
</item>
</channel>
</rss>