apply winre.wim's WinPE-WiFi-Package for boot.wim

This commit is contained in:
slore 2024-11-17 23:09:58 +08:00
parent 9b2f07d72e
commit d8a8e9e85e
3 changed files with 35 additions and 18 deletions

View File

@ -0,0 +1,20 @@
call AddFiles %0 :[WinPE-WiFi-Package-Files]
call RegCopy "HKLM\System\ControlSet001\Control\Network\{4d36e974-e325-11ce-bfc1-08002be10318}\{5CBF81BF-5055-47CD-9055-A76B2B4E3698}"
call RegCopy "HKLM\System\ControlSet001\Control\WMI\Autologger\WiFiSession"
call RegCopyEx Services "vwifibus,vwififlt,wcncsvc,wdiwifi,WFPLWFS,WlanSvc,NativeWifiP"
goto :EOF
:[WinPE-WiFi-Package-Files]
@\Windows\System32\
mlang.dat,mlang.dll
WiFiConfigSP.dll,WiFiDisplay.dll
;WLAN
wlan*.dll
;vwifi
drivers\vwifibus.sys
drivers\vwifimp.sys
goto :EOF

View File

@ -1,27 +1,21 @@
if "x%opt[build.wim]%"=="xwinre" goto :EOF
call AddFiles %0 :end_files
goto :end_files
call AddFiles %0 :[WinRE-Builtin-Packages]
call RegCopyEx Services "MSiSCSI"
call _WinPE-WiFi-Package.bat
goto :EOF
:[WinRE-Builtin-Packages]
;WinPE-EnhancedStorage, WinPE-WMI, WinPE-HTA ...
@\Windows\System32\
d3d*.dll
fmapi.dll
mlang.dat,mlang.dll,mshta.exe,mshtml*.*,msimtf.dll,msoert2.dll,msrating.dll,oledlg.dll,pngfilt.dll
pnppropmig.dll,ReserveManager.dll,storagewmi.dll,storagewmi_passthru.dll,unbcl.dll
wdsutil.dll,webplatstorageserver.dll,wfdprov.dll,WiFiConfigSP.dll,WiFiDisplay.dll
wdsutil.dll,webplatstorageserver.dll,wfdprov.dll
;WLAN
wlan*.dll
;vwifi
drivers\vwifibus.sys
drivers\vwifimp.sys
;iscsi
iscsi*.dll,iscsicli.exe,iscsicpl.exe
:end_files
call RegCopy "HKLM\System\ControlSet001\Control\Network\{4d36e974-e325-11ce-bfc1-08002be10318}\{5CBF81BF-5055-47CD-9055-A76B2B4E3698}"
call RegCopy "HKLM\System\ControlSet001\Control\WMI\Autologger\WiFiSession"
call RegCopyEx Services "vwifibus,vwififlt,wcncsvc,wdiwifi,WFPLWFS,WlanSvc,NativeWifiP,MSiSCSI"
goto :EOF

View File

@ -3,9 +3,12 @@ rem // For Samba Servers
call :PolicyLmCompatLevel
if "x%opt[component.PPPoE]%"=="xtrue" (
call :ApplySubPatch "..\PPPoE"
call :ApplySubPatch "..\PPPoE" main.bat
)
if not exist "%X_SYS%\wlanapi.dll" (
call :ApplySubPatch "..\00-Boot2WinRE" _WinPE-WiFi-Package.bat
)
call _networktrayicon.bat
call full_functional.bat
call netdrivers.bat
@ -13,9 +16,9 @@ call netdrivers.bat
goto :EOF
:ApplySubPatch
echo Applying Patch: %~1\main.bat
echo Applying Patch: %~1\%~2
pushd "%~1"
call main.bat
call %~2
popd
goto :EOF