summaryrefslogtreecommitdiff
path: root/MAS/Separate-Files-Version
diff options
context:
space:
mode:
authorWindowsAddict2024-11-02 21:02:03 +0000
committerWindowsAddict2024-11-02 21:02:03 +0000
commita5dd99ac0022b9e6a76d78888ff60264e46c2375 (patch)
tree64a794540e77d4b5e1f744146358d99c5e1a3f2c /MAS/Separate-Files-Version
parent1849dd307500503bd5447daa13c5693017522b3d (diff)
downloadMicrosoft-Activation-Scripts-a5dd99ac0022b9e6a76d78888ff60264e46c2375.zip
Show info when latest office products are not in the list
Diffstat (limited to 'MAS/Separate-Files-Version')
-rw-r--r--MAS/Separate-Files-Version/Change_Office_Edition.cmd12
1 files changed, 11 insertions, 1 deletions
diff --git a/MAS/Separate-Files-Version/Change_Office_Edition.cmd b/MAS/Separate-Files-Version/Change_Office_Edition.cmd
index 0797a22..5cdbfe0 100644
--- a/MAS/Separate-Files-Version/Change_Office_Edition.cmd
+++ b/MAS/Separate-Files-Version/Change_Office_Edition.cmd
@@ -522,13 +522,23 @@ goto :oe_goback
set inpt=
set counter=0
set verified=0
+set _notfound=
set targetedition=
%line%
echo:
call :dk_color %Gray% "Installed Office editions: %_oIds%"
call :dk_color %Gray% "You can select one of the following Office Editions."
-if %winbuild% LSS 10240 echo Unsupported products such as 2019/2021/2024 are excluded from this list.
+if %winbuild% LSS 10240 (
+echo Unsupported products such as 2019/2021/2024 are excluded from this list.
+) else (
+for %%# in (2019 2021 2024) do (
+find /i "%%#" "%SystemRoot%\Temp\%list%.txt" %nul1% || (
+if defined _notfound (set _notfound=%%#, !_notfound!) else (set _notfound=%%#)
+)
+)
+if defined _notfound call :dk_color %Gray% "Office !_notfound! is not in this list because old version of Office is installed."
+)
%line%
echo: