- Установка приложений Windows 10 с веб-страницы Installing Windows 10 apps from a web page
- Схема активации протокола Protocol Activation Scheme
- Требования для схемы активации протокола Requirements for protocol activation scheme
- Как включить этот механизм на веб-странице How to enable this on a webpage
- Подпись пакета приложения Signing the app package
- Процесс веб-установки в предыдущих версиях Windows 10 Web install experience on previous versions of Windows 10
- Интеграция с Microsoft SmartScreen Microsoft SmartScreen integration
- Windows Installer
- Where applicable
- Developer audience
- Run-time requirements
Установка приложений Windows 10 с веб-страницы Installing Windows 10 apps from a web page
Как правило, приложение должно быть локально доступно на устройстве, прежде чем его можно будет установить с помощью Установщика приложений. Typically, an app needs to be locally available on a device before it can be installed with the App Installer. В веб-сценарии это означает, что пользователь должен скачать пакет приложения с веб-сервера, после чего приложение можно установить с помощью Установщика приложений. For the web scenario, this means that the user must download the app package from the web server, after which it can be installed with App Installer. Это неэффективный способ, который впустую расходует дисковое пространство. По этой причине в Установщике приложений появились встроенные функции для оптимизации этого процесса. This is inefficient and wastes disk space, which is why App Installer now has built in features to streamline the process.
Установщик приложений может установить приложение напрямую с веб-сервера. App Installer can install an app directly from a web server. Когда пользователь щелкает веб-ссылку на размещенный пакет приложения, Установщик приложений вызывается автоматически. When the user clicks on an app package hosted web link, App Installer is invoked automatically. Затем пользователь переходит в представление сведений о приложении в Установщике приложений, после чего остается лишь одно нажатие до прямого взаимодействия с приложением. The user is then taken to the app info view in App Installer and is then one click away from engaging directly with the app.
Установка приложения напрямую доступна только в Windows 10 Fall Creators Update и более поздних версиях. The direct app install is only available in the Windows 10 Fall Creators Update and newer. Предыдущие версии Windows (вплоть до юбилейного обновления Windows 10) будут поддерживаться процессом веб-установки на предыдущих версиях Windows 10. Previous versions of Windows (going back to the Windows 10 Anniversary Update) will be supported by the web install experience on previous versions of Windows 10. Этот процесс менее гибок, чем установка приложений напрямую, но он значительно улучшает существующую процедуру установки приложений. This experience is not as fluid as the direct app install, but it provides significant improvements to the existing app install procedure.
Для поддержки этой возможности требуется Установщик приложений версии выше 1.0.12271.0. App Installer version must be greater than 1.0.12271.0 to support this feature.
Схема активации протокола Protocol Activation Scheme
В этом механизме Установщик приложений регистрируется в операционной системе для получения схемы активации протокола. In this mechanism, App Installer registers with the operating system for a protocol activation scheme. Когда пользователь щелкает веб-ссылку, браузер сверяется с ОС на наличие приложений, зарегистрированных по этой веб-ссылке. When user clicks on a web link, the browser checks with the OS for apps that are registered to that web link. Если схема соответствует схеме активации протокола, указанной Установщиком приложений, вызывается Установщик приложений. If the scheme matches the protocol activation scheme specified by App Installer, then App Installer is invoked. Важно отметить, что этот механизм не зависит от браузера. It’s important to note that this mechanism is browser independent. Это полезно для администраторов сайтов, которым не нужно учитывать различия между веб-браузерами при внедрении этого механизма в веб-страницу. This is beneficial to site administrators, for example, who don’t need to consider web browser differences while incorporating this into a webpage.
Требования для схемы активации протокола Requirements for protocol activation scheme
- Веб-серверы должны иметь поддержку запросов диапазона байтов (HTTP/1.1) Web servers need to have support for byte range requests (HTTP/1.1)
- Серверы, поддерживающие протокол HTTP/1.1, должны иметь поддержку запросов диапазона байтов. Servers that support HTTP/1.1 protocol should have support for byte range requests
- Веб-серверы должны знать о типах содержимого пакета приложений Windows 10 Web servers will need to know about the Windows 10 app package content types
- Вот как объявить новые типы содержимого как часть файла веб-конфигурации Here’s how to declare the new content types as part of web config file
Как включить этот механизм на веб-странице How to enable this on a webpage
Разработчики приложений, которым требуется разместить пакеты приложений на веб-сайтах, должны сделать следующее. App developers who want to host app packages on their web sites need to follow this step:
При размещении ссылки на уникальные идентификаторы ресурса пакетов приложений на веб-странице им должен предшествовать префикс ‘ms-appinstaller:?source=’ схемы активации, на котором зарегистрирован Установщик приложений. Prefix your app package URIs with the activation scheme ‘ms-appinstaller:?source=’ that App Installer is registered to when referencing them on your webpage. Подробные сведения см. в примере веб-страницы MyApp. See the example for MyApp Web Page for details.
Подпись пакета приложения Signing the app package
Чтобы пользователи могли установить ваше приложение, необходимо подписать пакет приложения с помощью доверенного сертификата. For users to install your app, you will need to sign the app package with a trusted certificate. Чтобы подписать пакет приложения, можно использовать сторонний платный сертификат доверенного центра сертификации. You can use a third party paid certificate from a trusted certification authority to sign your app package. Если используется сторонний сертификат, для установки и запуска вашего приложения пользователю потребуется перевести устройство в режим загрузки неопубликованных приложений или режим разработчика. If a third party certificate is used, the user will need to have their device in either sideload or developer mode to install and run your app.
Если приложение развертывается для сотрудников организации, для подписи приложения можно использовать изданный этой организацией корпоративный сертификат. If you are deploying an app to employees within an enterprise, you can use an enterprise issued certificate to sign the app. Важно отметить, что корпоративный сертификат необходимо развертывать на любых устройствах, на которых будет установлено приложение. It’s important to note that the enterprise certificate must be deployed to any devices which the app will be installed on. Для получения дополнительной информации о развертывании корпоративных приложений обратитесь к разделу Управление корпоративными приложениями. For more information on deploying enterprise apps, see Enterprise app management.
Процесс веб-установки в предыдущих версиях Windows 10 Web install experience on previous versions of Windows 10
Вызов Установщика приложений из браузера поддерживается во всех версиях Windows 10, в которых доступен Установщик приложений (начиная с юбилейного обновления). Invoking App Installer from the browser is supported on all versions of Windows 10 where App Installer is available (starting with the Anniversary Update). Однако возможность установки напрямую из Интернета без необходимости предварительно скачивать пакет доступна только в Windows 10 Fall Creators Update. However, the functionality to install directly from the web without the need to download the package first is only available on the Windows 10 Fall Creators Update.
Пользователи предыдущих версий Windows 10 (с доступным установщиком приложений) также могут воспользоваться преимуществами веб-установки приложений Windows 10 через установщик приложений, но будут иметь разные возможности взаимодействия с пользователем. Users of previous versions of Windows 10 (with App Installer available) can also take advantage of web install of Windows 10 apps via App Installer, but will have a different user experience. Когда эти пользователи нажимают веб-ссылку, Установщик приложений предлагает Скачать пакет, а не Установить. When these users click the web link, App Installer will prompt to Download the package instead of Install. После скачивания Установщик приложений автоматически инициирует запуск скачанного пакета. After download, App Installer will initiate the launch of the downloaded package automatically. Поскольку пакет приложения скачивается из Интернета, эти файлы проходят проверку безопасности в Microsoft SmartScreen. Because the app package is downloaded from the web, these files will pass through Microsoft SmartScreen for a security check. Как только пользователь предоставит разрешение продолжить и нажмет кнопку Установить, приложение будет готово к использованию. Once the user provides permission to continue and then one more click on Install, the app is ready for use!
Несмотря на то что этот процесс менее удобен, чем установка напрямую в Windows 10 Fall Creators Update, с его помощью пользователи также могут быстро начать использовать приложение. Although this flow isn’t quite as seamless as the direct install on Windows 10 Fall Creators Update, users can still quickly engage with the app. Кроме того, при использовании этого процесса файлы пакета приложения не будут занимать дисковое пространство без необходимости. Additionally, with this flow the user doesn’t have to worry about app package files unnecessarily taking up space in drives. Установщик приложений эффективно управляет дисковым пространством путем скачивания пакета в папку данных соответствующего приложения и удаления ненужных пакетов. App Installer efficiently manages space by downloading the package to its app data folder and clearing packages when they are no longer needed.
Ниже представлено краткое сравнение версии Установщика приложений в Windows 10 Fall Creators Update и его предыдущей версии: Here’s a quick comparison of the Windows 10 Fall Creators update version of App Installer and the previous version of App Installer:
Последняя версия Установщика приложений App Installer, Latest Version | Предыдущая версия Установщика приложений App Installer, Previous Version |
---|---|
Установщик приложений отображает сведения о приложении перед началом скачивания App Installer shows app info before the download starts | Браузер предлагает пользователю выбрать скачивание Browser prompts the user to choose to download |
Установщик приложений выполняет скачивание App Installer performs the download | Пользователь должен вручную инициировать запуск пакета приложения User has to manually initiate the launch of the app package |
После скачивания пакета приложения Установщик приложений запускает его автоматически After package download, App Installer automatically launches the app package | Пользователь должен нажать кнопку Установить и вручную запустить пакет приложения User must click Install and manually launch the app package |
Установщик приложений отвечает за удаление скачанных пакетов App Installer will take care of disposal of downloaded packages | Пользователю необходимо вручную удалять скачанные пакеты User must manually delete the downloaded files |
В версиях до Windows 10 Fall Creators Update Установщик приложений не может напрямую установить приложение из Интернета. On versions prior to the Windows 10 Fall Creators Update, App Installer cannot directly install an app from the web. В этих версиях Установщик приложений может устанавливать только локально доступные пакеты приложений. On these versions, App Installer can only install app packages that are locally available. Вместо этого Установщик приложений скачает пакет и предложит пользователю дважды щелкнуть скачанный пакет, чтобы начать установку. Instead, App Installer will download the package and require the user to double click the downloaded package to install.
Интеграция с Microsoft SmartScreen Microsoft SmartScreen integration
Служба Microsoft SmartScreen всегда входила в состав процесса установки приложений через Установщик приложений. Microsoft SmartScreen has always been part of the installation process for installing apps via App Installer. SmartScreen защищает пользователей от вредоносного содержимого, которое может проникнуть на их устройства. SmartScreen ensures users are safeguarded from malcontent that can make its way on to their devices. В последнем обновлении Установщика приложений интеграция со службой SmartScreen стала еще более полной и эффективной: она предупреждает пользователя при установке неизвестных приложений и защищает устройства от вреда. With the latest update to App Installer, SmartScreen integration is more seamless and robust, providing warnings when installing unknown apps and protecting devices from harm.
Windows Installer
This documentation is intended for software developers who want to use Windows Installer to build installer packages for applications. If you’re looking for a redistributable for Windows Installer 4.5 and earlier, see this article. Note that there is no redistributable for Windows Installer 5.0. This version is included with the OS in Windows 7, Windows ServerВ 2008В R2, and later client and server releases (including Windows 10).
Microsoft Windows Installer is an installation and configuration service provided with Windows. The installer service enables customers to provide better corporate deployment and provides a standard format for component management. The installer also enables the advertisement of applications and features according to the operating system. For more information, see Platform Support of Advertisement.
This documentation describes Windows InstallerВ 5.0 and earlier versions. Not all the capabilities available in later Windows Installer versions are available in earlier versions. This documentation does not describe versions earlier than Windows InstallerВ 2.0. Installation packages and patches that are created for Windows InstallerВ 2.0 can still be installed by using Windows InstallerВ 3.0 and later.
Windows InstallerВ 3.0 and later, can install multiple patches with a single transaction that integrates installation progress, rollback, and reboots. The installer can apply patches in a specified order regardless of the order that the patches are provided to the system. Patching using Windows InstallerВ 3.0 only updates files affected by the patch and can be significantly faster than earlier installer versions. Patches installed with Windows Installer 3.0 or later can be uninstalled in any order to leave the state of the product the same as if the patch was never installed. Accounts with administrator privileges can use the API of Windows InstallerВ 3.0 and later to query and inventory product, feature, component, and patch information. The installer can be used to read, edit, and replace source lists for network, URL, and media sources. Administrators can enumerate across user and install contexts, and manage source lists from an external process.
Windows Installer 4.5 and later can install multiple installation packages using transaction processing. If all the packages in the transaction cannot be installed successfully, or if the user cancels the installation, the Windows Installer can roll back changes and restore the computer to its original state. The installer ensures that all the packages belonging to a multiple-package transaction are installed or none of the packages are installed.
Beginning with Windows Installer 5.0, a package can be authored to secure new accounts, Windows Services, files, folders, and registry keys. The package can specify a security descriptor that denies permissions, specifies inheritance of permissions from a parent resource, or specifies the permissions of a new account. For information, see Securing Resources. The Windows Installer 5.0 service can enumerate all components installed on the computer and obtain the key path for the component. For more information, see Enumerating Components. By Using Services Configuration, Windows Installer 5.0 packages can customize the services on a computer. Setup developers can use Windows Installer 5.0 and Single Package Authoring to develop single installation packages capable of installing an application in either the per-machine or per-user installation context.
Where applicable
Windows Installer enables the efficient installation and configuration of your products and applications running on Windows. The installer provides new capabilities to advertise features without installing them, to install products on demand, and to add user customizations.
Windows Installer 5.0 running on Windows ServerВ 2012 or WindowsВ 8 supports the installation of approved apps on WindowsВ RT. A Windows Installer package, patch, or transform that has not been signed by Microsoft cannot be installed on WindowsВ RT. The Template Summary property indicates the platform that is compatible with an installation database and in this case should include the value for WindowsВ RT.
Windows Installer is intended for the development of desktop style applications.
Developer audience
This documentation is intended for software developers who want to make applications that use Windows Installer. It provides general background information about installation packages and the installer service. It contains complete descriptions of the application programming interface and elements of the installer database. This documentation also contains supplemental information for developers who want to use a table editor or a package creation tool to make or maintain an installation.
Run-time requirements
Windows InstallerВ 5.0 is included with, Windows 7, Windows ServerВ 2008В R2, and later releases. There is no redistributable for Windows Installer 5.0.
Versions earlier than Windows Installer 5.0 were released with Windows ServerВ 2008, WindowsВ Vista, Windows ServerВ 2003, WindowsВ XP, and WindowsВ 2000. Windows Installer Redistributables are available for Windows Installer 4.5 and some earlier versions.
Windows InstallerВ 4.5 requires Windows ServerВ 2008, WindowsВ Vista, WindowsВ XP with Service PackВ 2 (SP2) and later, and Windows ServerВ 2003 with Service PackВ 1 (SP1) and later.
Windows InstallerВ 4.0 requires WindowsВ Vista or Windows ServerВ 2008. There is no redistributable for installing Windows InstallerВ 4.0 on other operating systems. An updated version of Windows InstallerВ 4.0, which does not add any new features, is available in WindowsВ Vista with Service PackВ 1 (SP1) and Windows ServerВ 2008.
Windows InstallerВ 3.1 requires Windows ServerВ 2003, WindowsВ XP, or WindowsВ 2000 with Service PackВ 3 (SP3).
Windows InstallerВ 3.0 requires Windows ServerВ 2003, WindowsВ XP, or WindowsВ 2000 with SP3. Windows InstallerВ 3.0 is included in WindowsВ XP with Service PackВ 2 (SP2). It is available as a redistributable for WindowsВ 2000 Server with Service PackВ 3 (SP3) and WindowsВ 2000 Server with Service PackВ 4 (SP4), WindowsВ XP RTM and WindowsВ XP with Service PackВ 1 (SP1), and Windows ServerВ 2003 RTM.
Windows InstallerВ 2.0 is contained in Windows ServerВ 2003 and WindowsВ XP.
Windows InstallerВ 2.0 is available as a package for installing or upgrading to Windows InstallerВ 2.0 on WindowsВ 2000. This package should not be used to install or upgrade Windows InstallerВ 2.0 on Windows ServerВ 2003 and WindowsВ XP.