From 43cceb366ef8a2a9dcd85b31ee72063efbde8ef9 Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Tue, 22 Jul 2025 02:02:52 +0530 Subject: [PATCH] Fix issues in checking expired Office products --- MAS/All-In-One-Version-KL/MAS_AIO.cmd | 9 ++++++++- .../Activators/Ohook_Activation_AIO.cmd | 9 ++++++++- .../Activators/Online_KMS_Activation.cmd | 9 ++++++++- .../Activators/TSforge_Activation.cmd | 9 ++++++++- 4 files changed, 32 insertions(+), 4 deletions(-) diff --git a/MAS/All-In-One-Version-KL/MAS_AIO.cmd b/MAS/All-In-One-Version-KL/MAS_AIO.cmd index 0a4ae97..8d238a7 100644 --- a/MAS/All-In-One-Version-KL/MAS_AIO.cmd +++ b/MAS/All-In-One-Version-KL/MAS_AIO.cmd @@ -2764,8 +2764,15 @@ exit /b :oh_expiredpreview +echo %_oIds% | find /i "Volume" %nul% || exit /b + for %%# in (%*) do ( -if exist "!_oLPath!\ProPlus%%#PreviewVL_*.xrm-ms" if not exist "!_oLPath!\ProPlus%%#VL_*.xrm-ms" ( +if %%#==2013 set _offver= +if %%#==2016 set _offver= +if %%#==2019 set _offver=2019 +if %%#==2021 set _offver=2021 +if %%#==2024 set _offver=2024 +if exist "!_oLPath!\ProPlus!_offver!PreviewVL_*.xrm-ms" if not exist "!_oLPath!\ProPlus!_offver!VL_*.xrm-ms" ( set error=1 set showfix=1 call :dk_color %Red% "Checking Expired Preview Products [Office %%# Preview Found]" diff --git a/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd b/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd index aa445f0..6ad1f49 100644 --- a/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd +++ b/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd @@ -940,8 +940,15 @@ exit /b :oh_expiredpreview +echo %_oIds% | find /i "Volume" %nul% || exit /b + for %%# in (%*) do ( -if exist "!_oLPath!\ProPlus%%#PreviewVL_*.xrm-ms" if not exist "!_oLPath!\ProPlus%%#VL_*.xrm-ms" ( +if %%#==2013 set _offver= +if %%#==2016 set _offver= +if %%#==2019 set _offver=2019 +if %%#==2021 set _offver=2021 +if %%#==2024 set _offver=2024 +if exist "!_oLPath!\ProPlus!_offver!PreviewVL_*.xrm-ms" if not exist "!_oLPath!\ProPlus!_offver!VL_*.xrm-ms" ( set error=1 set showfix=1 call :dk_color %Red% "Checking Expired Preview Products [Office %%# Preview Found]" diff --git a/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd b/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd index d23e544..0c6f1c2 100644 --- a/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd @@ -1106,8 +1106,15 @@ exit /b :oh_expiredpreview +echo %_oIds% | find /i "Volume" %nul% || exit /b + for %%# in (%*) do ( -if exist "!_oLPath!\ProPlus%%#PreviewVL_*.xrm-ms" if not exist "!_oLPath!\ProPlus%%#VL_*.xrm-ms" ( +if %%#==2013 set _offver= +if %%#==2016 set _offver= +if %%#==2019 set _offver=2019 +if %%#==2021 set _offver=2021 +if %%#==2024 set _offver=2024 +if exist "!_oLPath!\ProPlus!_offver!PreviewVL_*.xrm-ms" if not exist "!_oLPath!\ProPlus!_offver!VL_*.xrm-ms" ( set error=1 set showfix=1 call :dk_color %Red% "Checking Expired Preview Products [Office %%# Preview Found]" diff --git a/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd b/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd index 2cee818..f9db886 100644 --- a/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd @@ -2021,8 +2021,15 @@ exit /b :oh_expiredpreview +echo %_oIds% | find /i "Volume" %nul% || exit /b + for %%# in (%*) do ( -if exist "!_oLPath!\ProPlus%%#PreviewVL_*.xrm-ms" if not exist "!_oLPath!\ProPlus%%#VL_*.xrm-ms" ( +if %%#==2013 set _offver= +if %%#==2016 set _offver= +if %%#==2019 set _offver=2019 +if %%#==2021 set _offver=2021 +if %%#==2024 set _offver=2024 +if exist "!_oLPath!\ProPlus!_offver!PreviewVL_*.xrm-ms" if not exist "!_oLPath!\ProPlus!_offver!VL_*.xrm-ms" ( set error=1 set showfix=1 call :dk_color %Red% "Checking Expired Preview Products [Office %%# Preview Found]"