Upravit

Sdílet prostřednictvím


Group Policy and packaged apps

Developers who use MSIX can leverage Group Policy in a similar way to other installer types.

If you have packaged your Win32 app into an MSIX (or if you built your app using the Desktop Bridge), your app has the full trust capability enabled. This allows you to read from the Group Policy registry keys. At run time, your app will have the same view of the Group Policy registry as it would if it had been installed using a different method. Starting in Windows 10, version 1809, if your app is a Universal Windows Platform (UWP) app it can access the same Group Policy keys. For more information about creating Group Policy, see this article.

If you are converting an existing installer to MSIX by using the MSIX Packaging Tool, there is no new work needed for your app to support Group Policy. Continue to manage Group Policies as you normally would for the original installer. Apps converted to MSIX will still be able to read from existing Group Policy registry keys.

Group Policy does not have native support to install MSIX applications.

Policies for blocking Microsoft Store and MSIX

You may have your own requirements on how you want to configure app updates from the Microsoft Store app. The Store app triggers updates for apps, including third-party apps as well as first-party apps such as Calculator and Photos. If the Store app is removed from a computer, that can lead to no app updates on that computer.

Here is the list of Store policies and how it impacts your MSIX packages.

Turn off Automatic Download and Install of updates

This policy enables or disables the automatic download and installation of app updates. If you enable this setting, the automatic download and installation of app updates is turned off. If you disable this setting, the automatic download and installation of app updates is turned on. If you don't configure this setting, the automatic download and installation of app updates is determined by a registry setting that the user can change using Settings in the Store.

  • GPO: Computer Configuration\Administrative Templates\Windows Components\Store
  • Registry: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore AutoDownload REG_DWORD (Data: enable = 2 = apps will not be updated, disable = 4 = app will be automatically updated)
  • App updates: If enabled, the automatic download and install of app updates will be turned off. If disabled, the automatic download and install of app updates will be turned on.

Turn off Store application

This policy denies or allows access to the Store application. If you enable this setting, access to the Store application is denied. Access to the Store is required for installing app updates. If you disable or don't configure this setting, access to the Store application is allowed.

  • GPO: Computer Configuration\Administrative Templates\Windows Components\Store or User Configuration\Administrative Templates\Windows Components\Store
  • Registry: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStoreRemoveWindowsStore REG_DWORD or HKEY_CURRENT_USER\Software\Policies\Microsoft\WindowsStoreRemoveWindowsStore REG_DWORD
  • App updates: If configured in the computer context, this policy turns off app updates.

Overview of both Store signed and Trusted non-Store apps on Windows 10 2004 Enterprise

The table below demonstartes what happens when BlockNonAdminUserInstall policy is Enabled, AllowAllTrustedApps is Enabled and AllowDevelopmentWithoutDevLicense is Enabled

App Installation Results
Store Signed Package (Double-Click) Blocked
Trusted Non-Store Package (Double-Click) Blocked
Store Signed Package (PowerShell standard) Blocked
Trusted Non-Store Package (PowerShell standard) Blocked
Store Signed Package (PowerShell elevated) Installed
Trusted Non-Store Package (PowerShell elevated) Installed

The table below demonstartes what happens when BlockNonAdminUserInstall policy is Enabled, AllowAllTrustedApps is Enabled and AllowDevelopmentWithoutDevLicense is Disabled

App Installation Results
Store Signed Package (Double-Click) Blocked
Trusted Non-Store Package (Double-Click) Blocked
Store Signed Package (PowerShell standard) Blocked
Trusted Non-Store Package (PowerShell standard) Blocked
Store Signed Package (PowerShell elevated) Installed
Trusted Non-Store Package (PowerShell elevated) Installed

The table below demonstartes what happens when BlockNonAdminUserInstall policy is Enabled, AllowAllTrustedApps is Disabled and AllowDevelopmentWithoutDevLicense is Enabled

App Installation Results
Store Signed Package (Double-Click) Blocked
Trusted Non-Store Package (Double-Click) Blocked
Store Signed Package (PowerShell standard) Blocked
Trusted Non-Store Package (PowerShell standard) Blocked
Store Signed Package (PowerShell elevated) Installed
Trusted Non-Store Package (PowerShell elevated) Installed

The table below demonstartes what happens when BlockNonAdminUserInstall policy is Enabled, AllowAllTrustedApps is Disabled and AllowDevelopmentWithoutDevLicense is Enabled

App Installation Results
Store Signed Package (Double-Click) Blocked
Trusted Non-Store Package (Double-Click) Blocked
Store Signed Package (PowerShell standard) Blocked
Trusted Non-Store Package (PowerShell standard) Blocked
Store Signed Package (PowerShell elevated) Installed
Trusted Non-Store Package (PowerShell elevated) Installed

The table below demonstartes what happens when BlockNonAdminUserInstall policy is Enabled, AllowAllTrustedApps is Disabled and AllowDevelopmentWithoutDevLicense is Disabled

App Installation Results
Store Signed Package (Double-Click) Blocked
Trusted Non-Store Package (Double-Click) Blocked
Store Signed Package (PowerShell standard) Blocked
Trusted Non-Store Package (PowerShell standard) Blocked
Store Signed Package (PowerShell elevated) Installed
Trusted Non-Store Package (PowerShell elevated) Blocked

The table below demonstartes what happens when BlockNonAdminUserInstall policy is Disabled, AllowAllTrustedApps is Enabled and AllowDevelopmentWithoutDevLicense is Enabled

App Installation Results
Store Signed Package (Double-Click) Installed
Trusted Non-Store Package (Double-Click) Installed
Store Signed Package (PowerShell standard) Installed
Trusted Non-Store Package (PowerShell standard) Installed
Store Signed Package (PowerShell elevated) Installed
Trusted Non-Store Package (PowerShell elevated) Installed

The table below demonstartes what happens when BlockNonAdminUserInstall policy is Disabled, AllowAllTrustedApps is Enabled and AllowDevelopmentWithoutDevLicense is Disabled

App Installation Results
Store Signed Package (Double-Click) Installed
Trusted Non-Store Package (Double-Click) Installed
Store Signed Package (PowerShell standard) Installed
Trusted Non-Store Package (PowerShell standard) Installed
Store Signed Package (PowerShell elevated) Installed
Trusted Non-Store Package (PowerShell elevated) Installed

The table below demonstartes what happens when BlockNonAdminUserInstall policy is Disabled, AllowAllTrustedApps is Disabled and AllowDevelopmentWithoutDevLicense is Enabled

App Installation Results
Store Signed Package (Double-Click) Installed
Trusted Non-Store Package (Double-Click) Installed
Store Signed Package (PowerShell standard) Installed
Trusted Non-Store Package (PowerShell standard) Installed
Store Signed Package (PowerShell elevated) Installed
Trusted Non-Store Package (PowerShell elevated) Installed

The table below demonstartes what happens when BlockNonAdminUserInstall policy is Disabled, AllowAllTrustedApps is Disabled and AllowDevelopmentWithoutDevLicense is Disabled

App Installation Results
Store Signed Package (Double-Click) Installed
Trusted Non-Store Package (Double-Click) Blocked
Store Signed Package (PowerShell standard) Installed
Trusted Non-Store Package (PowerShell standard) Blocked
Store Signed Package (PowerShell elevated) Installed
Trusted Non-Store Package (PowerShell elevated) Blocked