Flyweight Patching を禁止する のレジストリ値 DisableFlyweightPatchingコンピューターHKLM\Software\Policies\Microsoft\Windows\Installer

ポリシー ID
DisableFlyweightPatching
適用対象
コンピューターの構成
サポートされるバージョン
Windows インストーラー v3.0
出典
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
カテゴリ
Windows コンポーネント › Windows インストーラー

レジストリ

DisableFlyweightPatching

REG_DWORDコンピューター
有効時の値
オプションの値に依存
要素
Flyweight Patching を禁止する
オプション
項目保存される値
修正プログラムの最適化をオフにする1
修正プログラムの最適化をオンにする0
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer]

; 選択項目 (1 つだけ使用)
; 修正プログラムの最適化をオフにする
"DisableFlyweightPatching"=dword:00000001
; 修正プログラムの最適化をオンにする
"DisableFlyweightPatching"=dword:00000000
CMD
:: 選択項目 (1 つだけ使用)

:: 修正プログラムの最適化をオフにする
reg add "HKLM\Software\Policies\Microsoft\Windows\Installer" /v "DisableFlyweightPatching" /t REG_DWORD /d 1 /f
:: 修正プログラムの最適化をオンにする
reg add "HKLM\Software\Policies\Microsoft\Windows\Installer" /v "DisableFlyweightPatching" /t REG_DWORD /d 0 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\Installer' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# 修正プログラムの最適化をオフにする
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Installer' -Name 'DisableFlyweightPatching' -PropertyType DWord -Value 1 -Force | Out-Null
# 修正プログラムの最適化をオンにする
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Installer' -Name 'DisableFlyweightPatching' -PropertyType DWord -Value 0 -Force | Out-Null