新增 Telegram 首次登入自動安裝與 Ventoy menu_tip 提示;ProductKey 改用 Win11/10 Pro GVLK

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-23 08:47:53 +08:00
parent e106d749c7
commit 3b03f376b7
6 changed files with 79 additions and 13 deletions

View File

@@ -62,10 +62,13 @@
</OSImage>
</ImageInstall>
<!-- 產品序號(若用 KMS/批次授權可留空或填通用金鑰)-->
<!-- 產品序號Windows 11/10 專業版 GVLKKMS 用戶端一般大量授權金鑰)。
來源https://learn.microsoft.com/zh-tw/windows-server/get-started/kms-client-activation-keys
作用:用來選擇 ISO 內的版本Pro並讓 Setup 略過「輸入序號」畫面。
注意:這不是零售金鑰,只有連到 KMS 主機才會真正啟用;獨立機器會進 30 天寬限期再出現浮水印。 -->
<UserData>
<ProductKey>
<Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key>
<Key>W269N-WFGWX-YVC9B-4J6C9-T83GX</Key>
<WillShowUI>OnError</WillShowUI>
</ProductKey>
<AcceptEula>true</AcceptEula>
@@ -165,6 +168,12 @@
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>4</Order>
<CommandLine>powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "$ProgressPreference='SilentlyContinue'; $p=Join-Path $env:TEMP 'tsetup.exe'; Invoke-WebRequest -UseBasicParsing -Uri 'https://telegram.org/dl/desktop/win64' -OutFile $p; Start-Process -FilePath $p -ArgumentList '/VERYSILENT','/SUPPRESSMSGBOXES','/NORESTART' -Wait"</CommandLine>
<Description>下載並靜默安裝 Telegram Desktop</Description>
<RequiresUserInput>false</RequiresUserInput>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>5</Order>
<CommandLine>shutdown /r /t 5</CommandLine>
<Description>完成後重開機</Description>
</SynchronousCommand>