在断开连接的环境中使用 MSIX 打包工具Using the MSIX Packaging Tool in a disconnected environment

虽然我们使用户能够非常轻松地通过 Microsoft store 获取 .MSIX 打包工具,但我们知道,并非每个人都有商店或连接环境,他们想要执行转换。While we make it super easy for users to acquire the MSIX Packaging Tool through the Microsoft store, but we know that not everyone has the store, or a connected environment where they want to perform conversions. 此功能仅适用于公共版本,不适用于我们的 预览体验计划 版本。This is only available for our public releases, not for our Insider program releases.

获取 MSIX 打包工具Get the MSIX Packaging Tool

可以从适用于企业的 Microsoft Store Web 门户下载 MSIX 打包工具供脱机使用。The MSIX Packaging Tool can be downloaded for offline use in the enterprise from the Microsoft Store for Business web portal. 可在此处详细了解离线分发。You can learn more about offline distribution here.

如果在使用打包工具的脱机副本时遇到问题,请确保你有该工具的许可证脱机副本If you are encountering issues with the offline copy of the packaging tool, make sure you have the offline copy of the license for the tool.

有了应用程序的脱机版本后,可以使用 PowerShell 将应用包和许可证添加到计算机。After you have the offline version of the application, you can use PowerShell to add the app package and license to your machine.

脱机安装的示例Example of offline installation

PS C:\> Add-AppxProvisionedPackage -Path C:\offline -PackagePath C:\MSIX\MyPackage.msix -LicensePath C:\MSIX\MyLicense.xml

获取 .MSIX 打包工具驱动程序Get the MSIX Packaging Tool driver

.MSIX 打包工具驱动程序将作为 按需 (FOD) 包的功能提供 Windows 更新,如果在计算机上禁用了 Windows 更新服务或 Windows 预览体验航班环设置与计算机的操作系统版本不匹配,则将无法安装。The MSIX Packaging Tool driver is delivered as a Feature on Demand (FOD) package from Windows Update and will fail to install if the Windows Update service is disabled on the machine or Windows Insider flight ring settings do not match the OS build of the computer.

如果你所在的企业环境中 Windows Server Update Services (WSUS) 或 Systems Center (现在为 Microsoft 端点管理器) 则可能需要修改 默认配置,或者只需手动下载并安装 FOD:If you are in an enterprise environment with Windows Server Update Services (WSUS) or Systems Center (now Microsoft Endpoint Manager) you may need to modify your default configuration, or just download and install the FOD manually:

IT 管理员还可以创建并列功能存储(共享文件夹),以允许访问 MSIX 打包工具驱动程序 FOD。IT admins can also create Side by side feature store (shared folder) to allow access to the MSIX Packaging tool driver FOD. 可在此博客文章的末尾找到更多详细信息。You can find additional details at the bottom of this blog post.

如果你有权访问企业渠道或 OEM 渠道,则可以通过以下来源之一,从 Windows 10 按需功能媒体获取该驱动程序:Otherwise, if you have access to enterprise or OEM channels you can obtain the driver from Windows 10 Features on Demand media from one of the following sources: