不重要的优化

This commit is contained in:
bin456789
2024-06-14 23:41:15 +08:00
parent a4d65cb737
commit c682835af6
6 changed files with 33 additions and 32 deletions

View File

@ -125,17 +125,18 @@ rem 运行 ramdisk X:\setup.exe 的话
rem vista 会找不到安装源
rem server 23h2 会无法运行
rem 26100 新版安装程序不会创建 BIOS MBR 引导
rem 26040 开始有新版安装程序
rem 新版安装程序不会创建 BIOS MBR 引导
if %ForceOldSetup% EQU 1 (
set setup=Y:\sources\setup.exe
) else (
set setup=Y:\setup.exe
rem 26100 旧版安装程序不会创建 winre 分区
rem 26100 新版安装程序会创建 winre 分区
rem 旧版安装程序不会创建 winre 分区
rem 新版安装程序会创建 winre 分区
rem winre 分区创建在 installer 分区前面
rem 禁止 winre 分区后winre 储存在 C 盘,依然有效
for /f "tokens=3" %%a in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentBuildNumber') do (
if %%a GEQ 26100 (
if %%a GEQ 26040 (
set ResizeRecoveryPartition=/ResizeRecoveryPartition Disable
)
)