From 53cda879c1772f0cd8f39fa2c6a7b885d79d672e Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Sun, 14 Jul 2024 03:42:48 +0530 Subject: [PATCH] Add VL IDs in ProductReleaseIds in old Office builds --- .../Activators/Online_KMS_Activation.cmd | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd b/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd index 7dbc021..e05651c 100644 --- a/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd @@ -705,7 +705,7 @@ set error=1 goto :ks_starto16c2r ) -call :oh_fixprids +if "%_actprojvis%"=="0" call :oh_fixprids call :ks_process ::======================================================================================================================================== @@ -745,7 +745,7 @@ set error=1 goto :ks_startmsi ) -call :oh_fixprids +if "%_actprojvis%"=="0" call :oh_fixprids call :ks_process ::======================================================================================================================================== @@ -949,6 +949,15 @@ set "_osppready=%_config%" ) reg add %_osppready% /f /v %_altoffid%.OSPPReady /t %_osppt% /d 1 %nul1% + +:: Office builds before 16.0.10730.20102 need the Installed license product ID in ProductReleaseIds, otherwise product info may not fully reflect + +if exist "%_oLPath%\Word2019VL_KMS_Client_AE*.xrm-ms" exit /b + +reg query %_prids% | findstr /I "%_altoffid%" %nul1% +if %errorlevel% NEQ 0 ( +for /f "skip=2 tokens=2*" %%a in ('reg query %_prids%') do reg add %_prids% /t REG_SZ /d "%%b,%_altoffid%" /f %nul1% +) exit /b ::========================================================================================================================================