windows: 允许 10 秒内取消自动安装

This commit is contained in:
bin456789
2024-09-06 23:00:34 +08:00
parent 1fcb87d25e
commit 35221e56b7
2 changed files with 21 additions and 5 deletions

View File

@ -3940,6 +3940,9 @@ install_windows() {
unix2dos /wim/autounattend.xml
cat /wim/autounattend.xml
# 避免无参数运行 setup.exe 时自动安装
mv /wim/autounattend.xml /wim/windows.xml
# 复制安装脚本
# https://slightlyovercomplicated.com/2016/11/07/windows-pe-startup-sequence-explained/
mv /wim/setup.exe /wim/setup.exe.disabled