fix TSforge activation: re-install key and restart SPP before TSforge

Sysprep clears licensing state. Re-install product key via slmgr /ipk,
re-install license files via /rilc, and restart the SPP service before
running TSforge to ensure activation IDs are available.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Git Sagar 2026-06-09 09:58:03 +05:30
parent 48123ed9ab
commit 703d80f479
2 changed files with 12 additions and 2 deletions

View file

@ -94,6 +94,9 @@
:: Copy script to a path the wrapper won't delete
copy /y "%~f0" "C:\vmix-update-continue.cmd" >nul
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v vmixUpdate /t REG_SZ /d "cmd /c C:\vmix-update-continue.cmd" /f
:: Preserve Audit Mode across reboot (updates can reset it)
reg add "HKLM\SYSTEM\Setup\Status\AuditBoot" /v AuditBoot /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\Setup" /v AuditInProgress /t REG_DWORD /d 1 /f
:: Immediate reboot (preempts wrapper shutdown)
shutdown /r /f /t 0
exit /b