Windows: Choose Where To Get Apps
好的,我现在要帮用户总结一篇文章的内容,控制在100字以内。用户的要求很明确,不需要用“文章内容总结”之类的开头,直接写描述即可。 首先,我需要通读整篇文章,抓住主要信息。文章讲的是Windows的“选择应用安装来源”设置,内部称为“Smart Install”。默认设置是允许从任何地方安装应用,但用户可以选择其他选项来限制来源。 接下来,文章详细介绍了三个选项:提醒、警告和仅限微软商店。特别是仅限微软商店的选项会阻止从其他来源安装应用,并且在命令行环境中也会生效。此外,还提到了对危险文件类型的处理和故障排除方法。 现在,我需要将这些要点浓缩到100字以内。重点包括功能名称、默认设置、选项及其效果,特别是命令行和危险文件的处理。同时要保持语言简洁明了。 最后,检查字数是否符合要求,并确保没有遗漏关键信息。 </think> Windows 提供“选择应用安装来源”设置(内部称“Smart Install”),默认允许从任何位置安装应用。用户可选择提醒、警告或仅限微软商店三种模式限制安装来源。该功能还可扩展至命令行环境,并对危险文件类型提供额外保护。 2026-3-24 22:6:37 Author: textslashplain.com(查看原文) 阅读量:2 收藏

Modern versions of Windows offer a setting named “Choose where to get apps” which can reduce attack surface by limiting the locations from which applications can be installed. Internally, we’ve called this feature “Smart Install”.

By default, this option is set to “Anywhere“, which means that Windows will allow an executable downloaded from the Internet to run.

Beyond the default, there are three other options.

Option: Let me know or Warn

The verbosely-named options:

  • Anywhere, but let me know if there’s a comparable app in the Microsoft Store
  • Anywhere, but warn me before installing an app that’s not from the Microsoft Store

…mean the SmartScreen Application Reputation call is sent specifying either appControl/level=preferStore (Warn) or appControl/level=recommendations (LMK) values:

After the AppRep call, a followup query is sent to a webservice (at sfdataservice.microsoft.com/smartinstall) to determine whether there’s a Store app available that might satisfy the user’s needs.

If the Warn option is selected, the user is shown a prompt regardless of whether a Store-hosted equivalent of the app is available:

If the Let me know option is selected, a notice is shown only if a Store app is available. Note: I don’t know how well this option works. The Microsoft Store is lacks the majority of apps. The only app I know that’s available via the Store and a traditional EXE download (Paint.NET) does not result in Windows showing the Store suggestion.

Option: The Microsoft Store only

The simplest option is the “The Microsoft Store only” option. It means that after attempting to launch a downloaded app from Explorer, following the web service calls, Windows will show the following prompt:

Attempting to run such a file by calling ShellExecute with SEE_MASK_FLAG_NO_UI results in a silent failure (no prompt); the function will return an error code of ACCESS_DENIED.

Surprise #1 – Plumbed into extra surfaces!

One truly wild aspect of this is that it means it behaves differently than most features powered by the Mark of the Web.

When any option other than Anywhere is enabled, the SmartScreen Application Reputation service can1 be consulted even when running a binary from the Command Prompt:

…and if the execution is disallowed by the setting, execution can be blocked:

When run from PowerShell, no UI is shown but the execution is blocked:

Surprise #2 – Blocking Dangerous File types!

Another interesting surprise is the behavior in Windows when the filetype is a “Dangerous” one but not an “App.” Those dangerous file types may be specified in the registry by an application’s developer, or manually using the HighRiskFileTypes registry key:

Normally, attempting to use Explorer to open a downloaded file of a dangerous extension would result in a legacy Attachment Execution Services prompt like this:

However, if Windows is configured to Get Apps from Store Only, the opening of an Internet Zone MotW-bearing file is blocked silently, providing a kludgy version of one of the most exciting aspects of the Smart App Control feature.

Troubleshooting Smart Install UI

In some cases, users complain that this feature isn’t working as described above.

This can happen if the Microsoft.StorePurchaseApp is not installed, because that package contains the warning prompts.

Normally, running Get-AppxPackage *purchase* from PowerShell should show this:

…but when the package isn’t installed, the command will return no packages.

When the UI application is not installed, Windows falls back to showing the legacy (XP-era) Attachment Execution Services security prompts.

-Eric

1 The decision of whether the SmartInstall restrictions are enforced in the command prompt is an subtle one. If you download a simple executable and run it from the Command Prompt (cmd.exe) there’s no block or prompt. But if you rename that executable to setup.exe, then the prompt and block appear. Windows has a variety of code that attempts to recognize installers, and I’m guessing that code is responsible for the difference.


文章来源: https://textslashplain.com/2026/03/24/windows-choose-where-to-get-apps/
如有侵权请联系:admin#unsafe.sh