应用包管理指南Guidance for app package management

了解如何向你的客户提供应用的程序包,以及如何管理特定的程序包方案。Learn how your app's packages are made available to your customers, and how to manage specific package scenarios.

操作系统版本和程序包分发OS versions and package distribution

不同的操作系统可以运行不同类型的程序包。Different operating systems can run different types of packages. 如果有多个程序包可在客户的设备上运行,则 Microsoft Store 将提供最佳的可用匹配。If more than one of your packages can run on a customer's device, the Microsoft Store will provide the best available match.

通常来说,较高的操作系统版本可运行适用于相同设备系列的面向以前操作系统版本的程序包。Generally speaking, later OS versions can run packages that target previous OS versions for the same device family. Windows 10 设备可以运行所有以前支持的 OS 版本 (每个设备系列)。Windows 10 devices can run all previous supported OS versions (per device family). Windows 10 桌面版设备可以运行 Windows 8.1 或 Windows 8; 生成的应用程序Windows 10 移动设备可以运行的应用程序生成为 Windows Phone 8.1 和 Windows Phone 8,甚至 Windows Phone 7.x。Windows 10 desktop devices can run apps that were built for Windows 8.1 or Windows 8; Windows 10 mobile devices can run apps that were built for Windows Phone 8.1, Windows Phone 8, and even Windows Phone 7.x. 但是,Windows 10 上的客户将仅获得这些包,如果应用程序不包括 UWP 包以适用的设备系列为目标。However, customers on Windows 10 will only get those packages if the app doesn't include UWP packages targeting the applicable device family.

重要

自 2018 年 10 月 31 日起,新创建的产品不能包括面向 Windows 8.x/Windows 包 Phone 8.x 或更早版本。As of October 31, 2018, newly-created products cannot include packages targeting Windows 8.x/Windows Phone 8.x or earlier. 有关详细信息,请参阅此博客文章For more info, see this blog post.

从应用商店中删除应用Removing an app from the Store

有时,你可能想要停止向客户提供应用,即有效地“取消发布”它。At times, you may want to stop offering an app to customers, effectively "unpublishing" it. 若要执行此操作,请从应用概述页上单击禁止提供应用To do so, click Make app unavailable from the App overview page. 在你对禁止提供的应用进行确认后,数小时内它不会再出现在 Microsoft Store 中,并且新客户将无法获取它(除非他们拥有促销代码并使用 Windows 10 设备)。After you confirm that you want to make the app unavailable, within a few hours it will no longer be visible in the Store, and no new customers will be able to get it (unless they have a promotional code and are using a Windows 10 device).

重要

此选项将覆盖你在提交中选定的任何可见性设置。This option will override any visibility settings that you have selected in your submissions.

此选项与你创建提交并通过停止获取选项选择使此产品在 Microsoft Store 中可用,但不可被发现具有相同效果。This option has the same effect as if you created a submission and chose Make this product available but not discoverable in the Store with the Stop acquisition option. 但是,它不需要你创建新提交。However, it does not require you to create a new submission.

请注意,任何已拥有该应用的客户仍然可以使用并重新下载它(如果你以后提交新程序包,甚至还可以获取更新)。Note that any customers who already have the app will still be able to use it and can download it again (and could even get updates if you submit new packages later).

使应用程序不可用之后, 您将仍看到它在合作伙伴中心。After making the app unavailable, you'll still see it in Partner Center. 如果决定将应用重新提供给客户,你可以从“应用概述”页中单击“提供应用” 。If you decide to offer the app to customers again, you can click Make app available from the App overview page. 确认后,应用将在数小时内提供给新客户(除非受上一次提交中的设置的限制)。After you confirm, the app will be available to new customers (unless restricted by the settings in your last submission) within a few hours.

备注

如果你想要保持应用可用,但又不想继续将它提供给使用特定操作系统版本的新用户,你可以创建新提交,并删除要阻止新获取的操作系统版本的所有程序包。If you want to keep your app available, but don't want to continuing offering it to new customers on a particular OS version, you can create a new submission and remove all packages for the OS version on which you want to prevent new acquisitions. 例如,如果不想要保留到 Windows Phone 8.1 上的新客户提供应用适用于 Windows Phone 8.1 和 Windows 10 上有包,删除所有的 Windows Phone 8.1 包从提交。For example, if you previously had packages for Windows Phone 8.1 and Windows 10, and you don't want to keep offering the app to new customers on Windows Phone 8.1, remove all of your Windows Phone 8.1 packages from the submission. 发布此更新后,Windows Phone 8.1 上的任何新客户将不能够获取该应用程序,尽管已有的客户可以继续使用它)。After the update is published, no new customers on Windows Phone 8.1 will be able to acquire the app though customers who already have it can continue to use it). 但是,应用程序仍将适用于 Windows 10 上的新客户。However, the app will still be available for new customers on Windows 10.

删除以前受支持的设备系列中的程序包Removing packages for a previously-supported device family

如果你删除所有包的某一特定设备系列,您的应用程序以前支持,系统将提示你确认这是您的意图,然后才能保存所做的更改上页。If you remove all packages for a certain device family that your app previously supported, you'll be prompted to confirm that this is your intention before you can save your changes on the Packages page.

在发布中移除所有可以在您的应用程序以前支持的设备系列运行的包的提交时,新客户不能获取该设备系列上的应用程序。When you publish a submission that removes all of the packages that could run on a device family that your app previously supported, new customers will not be able to acquire the app on that device family. 稍后您可以始终发布其他更新以为该设备系列重新提供程序包。You can always publish another update later to provide packages for that device family again.

请注意,即使您删除支持某些设备系列的所有程序包,已在该设备类型上安装应用的任何现有客户仍可以使用它,并且他们将获取您以后提供的任何更新。Be aware that even if you remove all of the packages that support a certain device family, any existing customers who have already installed the app on that type of device can still use it, and they will get any updates you provide later.

适用于 Windows 10 的包添加到以前发布的应用程序Adding packages for Windows 10 to a previously-published app

如果已有的应用的 Windows,仅包含包的存储区中 8.x 和/或 Windows Phone 8.x 以及你想要更新适用于 Windows 10 的应用程序、 创建新的提交并添加期间你 UWP.msixupload 或.appxupload 包步骤。If you have an app in the Store that only included packages for Windows 8.x and/or Windows Phone 8.x, and you want to update your app for Windows 10, create a new submission and add your UWP .msixupload or .appxupload package(s) during the Packages step. 您的应用程序都要通过认证过程后,UWP 包也将适用于 Windows 10 上的客户的新收购。After your app goes through the certification process, the UWP package will also be available for new acquisitions by customers on Windows 10.

备注

Windows 10 上的客户获得 UWP 包之后, 不能将该客户鼠标移回使用包的任何以前的操作系统版本。Once a customer on Windows 10 gets your UWP package, you can't roll that customer back to using a package for any previous OS version.

请注意,Windows 10 包的版本号必须高于这些已使用任何 Windows 8/Windows 8.1 或 Windows Phone 8.1 的包。Note that the version number of your Windows 10 packages must be higher than those for any Windows 8, Windows 8.1, and/or Windows Phone 8.1 packages you have used. 有关详细信息,请参阅程序包版本编号For more info, see Package version numbering.

有关如何包装 UWP 应用以上架 Microsoft Store 的详细信息,请参阅包装应用For more info about packaging UWP apps for the Store, see Packaging apps.