From 57ad968e5635b7e0e9c8817bea0590f20f954030 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Wed, 22 May 2024 21:08:10 +0800 Subject: [PATCH] =?UTF-8?q?windows:=20=E5=85=B3=E9=97=AD=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E3=80=81=E5=AE=A2=E6=88=B7=E4=BD=93=E9=AA=8C?= =?UTF-8?q?=E6=94=B9=E5=96=84=E8=AE=A1=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 5 +++++ windows.xml | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/trans.sh b/trans.sh index a364a33..6bed562 100644 --- a/trans.sh +++ b/trans.sh @@ -2896,6 +2896,11 @@ install_windows() { sed -i "s|%installto_partitionid%|1|" /tmp/autounattend.xml fi + # vista/2008 有这行安装会报错 + if [ "$nt_ver" = 6.0 ]; then + sed -i "/EnableFirewall/d" /tmp/autounattend.xml + fi + # 2012 r2,删除 key 字段,报错 Windows cannot read the setting from the unattend answer file,即使创建 ei.cfg # ltsc 2021,有 ei.cfg,填空白 key 正常 # ltsc 2021 n,有 ei.cfg,填空白 key 报错 Windows Cannot find Microsoft software license terms diff --git a/windows.xml b/windows.xml index ac6e6fe..25694c0 100644 --- a/windows.xml +++ b/windows.xml @@ -3,6 +3,8 @@ + + false true @@ -106,6 +108,12 @@ 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c + + 1 + + + 0 +