summaryrefslogtreecommitdiff
path: root/MAS/All-In-One-Version-KL/MAS_AIO.cmd
diff options
context:
space:
mode:
authorWindowsAddict <[email protected]>2025-07-18 00:27:13 +0530
committerWindowsAddict <[email protected]>2025-07-18 00:27:13 +0530
commit10b6e8b6dc537f56eb2867998171586b8503b966 (patch)
tree3b531252a4412658bc596ff7300850dc1d8f2b9a /MAS/All-In-One-Version-KL/MAS_AIO.cmd
parentcb36c19f011f127226aaae954201ce51f4e5fc3e (diff)
downloadMicrosoft-Activation-Scripts-10b6e8b6dc537f56eb2867998171586b8503b966.zip
Show Ohook in green if O365 is installed
Diffstat (limited to 'MAS/All-In-One-Version-KL/MAS_AIO.cmd')
-rw-r--r--MAS/All-In-One-Version-KL/MAS_AIO.cmd2
1 files changed, 2 insertions, 0 deletions
diff --git a/MAS/All-In-One-Version-KL/MAS_AIO.cmd b/MAS/All-In-One-Version-KL/MAS_AIO.cmd
index 37d79c8..0ed6507 100644
--- a/MAS/All-In-One-Version-KL/MAS_AIO.cmd
+++ b/MAS/All-In-One-Version-KL/MAS_AIO.cmd
@@ -415,6 +415,8 @@ if %winbuild% GEQ 19041 if %winbuild% LEQ 19045 set _ohookgo=
if defined _serexist set _ohookgo=
if defined _evalexist set _ohookgo=
if defined _ltscexist set _ohookgo=
+reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds %nul2% | find /i "O365" %nul% && set _ohookgo=1
+reg query HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\ClickToRun\Configuration /v ProductReleaseIds %nul2% | find /i "O365" %nul% && set _ohookgo=1
)
if not defined _ohookgo set _tsforgego=1