[Config-FBWF]
If,%SourceArch%,Equal,x86,Begin
If,%cmb_FBWFSize%,>,1024,Begin
Echo,"32bit WinPE does not support a FBWF cache larger then 1024 MB",WARN
WriteInterface,Value,%ScriptFile%,Interface,cmb_FBWFSize,1024
End
End
If,%SourceVer%,<=,10.0.22000.0,Begin
// Source is Win10
If,%cmb_FBWFSize%,Equal,4096,Begin
Echo,"Configuring FBWF for [4094 MB]..."
RegWrite,HKLM,0x4,"Tmp_System\ControlSet001\Services\FBWF","WinPECacheThreshold",4094
End
**Else,If,%cmb_FBWFSize%,<,4096,Begin
RegWrite,HKLM,0x4,"Tmp_System\ControlSet001\Services\FBWF","WinPECacheThreshold",%cmb_FBWFSize%
End**
Else,If,%cmb_FBWFSize%,>,4096,Begin
Echo,"Win10 based WinPE does not support a FBWF cache larger then 4094 MB",WARN
WriteInterface,Value,%ScriptFile%,Interface,cmb_FBWFSize,4096
End
End
Else,Begin
// Source is Win11+
Echo,"Configuring FBWF for [%cmb_FBWFSize% MB]..."
RegWrite,HKLM,0x4,"Tmp_System\ControlSet001\Services\FBWF","WinPECacheThreshold",%cmb_FBWFSize%
End
Checklist
Report
Core Config - WinPE Cache Threshold or FBWF Cache Size
FBWF Cache Size smaller than 4096 never gets written to registry
missing is the bold part i added