Open in the explorer

Prohibit flyweight patching

Interdire la mise à jour corrective optimisée

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Windows Installer FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Windows Installer
Supported on
Windows Installer v3.0 FR: Windows Installer version 3.0
ADMX file
MSI.admx
Internal name
MSI/DisableFlyweightPatching

Explanation

This policy setting controls the ability to turn off all patch optimizations.

If you enable this policy setting, all Patch Optimization options are turned off during the installation.

If you disable or do not configure this policy setting, it enables faster application of patches by removing execution of unnecessary actions. The flyweight patching mode is primarily designed for patches that just update a few files or registry values. The Installer will analyze the patch for specific changes to determine if optimization is possible. If so, the patch will be applied using a minimal set of processing.

French text from Windows 11 26H2

Ce paramètre de stratégie contrôle la possibilité de désactiver toutes les optimisations de correctifs.

Si vous activez ce paramètre de stratégie, toutes les options d’optimisation des correctifs sont désactivées pendant l’installation.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, l’application des correctifs est accélérée, car l’exécution d’actions inutiles n’a pas lieu. Le mode de mise à jour corrective optimisée concerne surtout les correctifs qui mettent simplement à jour quelques fichiers ou valeurs de Registre. Windows Installer recherche des modifications spécifiques dans le correctif pour déterminer si l’optimisation est possible. Si c’est le cas, le correctif est appliqué avec un traitement minimal.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: MSI/DisableFlyweightPatching
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Installer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Prohibit Flyweight Patching
# Possible options:
#   Patch Optimization Off = 1
#   Patch Optimization On = 0
Set-ItemProperty -Path $k -Name 'DisableFlyweightPatching' -Value 0 -Type DWord

Disable

# Disable: MSI/DisableFlyweightPatching
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": MSI/DisableFlyweightPatching
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Installer'
Remove-ItemProperty -Path $k -Name 'DisableFlyweightPatching' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Prohibit Flyweight PatchingInterdire la mise à jour corrective optimiséeDisableFlyweightPatchingDrop-down listenumDisableFlyweightPatchingREG_DWORD
Required · Default choice (UI): #1
LabelValue
Patch Optimization OffREG_DWORD = 1
Patch Optimization OnREG_DWORD = 0

Availability