Skip to content

Core Config - FBWF Cache Size smaller than 4096 never gets written to the registry #74

@Whatslp

Description

@Whatslp

Checklist

  • I looked at https://github.com/PhoenixPE/PhoenixPE/wiki/FAQ to see if my question has already been answered.
  • I performed a search in the issue tracker for similar issues using keywords relevant to my problem, such as the error message I got from the log.

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

[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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions