fix TSforge switch: /Z-Windows not /Z-
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a588dddc1e
commit
48123ed9ab
2 changed files with 5 additions and 4 deletions
|
|
@ -91,8 +91,9 @@
|
|||
if %ROUND% LSS %MAX_ROUNDS% (
|
||||
echo Reboot required, scheduling round %NEXT_ROUND%...
|
||||
echo %NEXT_ROUND% > "%ROUND_FILE%"
|
||||
:: Re-register ourselves for after reboot
|
||||
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v vmixUpdate /t REG_SZ /d "C:\vmix-audit-script.cmd" /f
|
||||
:: 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
|
||||
:: Immediate reboot (preempts wrapper shutdown)
|
||||
shutdown /r /f /t 0
|
||||
exit /b
|
||||
|
|
@ -102,8 +103,8 @@
|
|||
)
|
||||
|
||||
:: Done — clean up and shutdown
|
||||
:: (shutdown here handles both wrapper-invoked and RunOnce-invoked cases)
|
||||
del /q "%ROUND_FILE%" 2>nul
|
||||
del /q "C:\vmix-update-continue.cmd" 2>nul
|
||||
echo === vmix: Windows Update complete ===
|
||||
shutdown /s /f /t 10 /c "vmix: windows-update complete"
|
||||
'';
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ in
|
|||
|
||||
:: Activate Windows using TSforge (hardware-independent, survives VM migration)
|
||||
if exist C:\MAS_AIO.cmd (
|
||||
echo. | call C:\MAS_AIO.cmd /Z-
|
||||
echo. | call C:\MAS_AIO.cmd /Z-Windows
|
||||
)
|
||||
:: Activate Office using Ohook method (if Office is installed)
|
||||
if exist "C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE" (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue