mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2024-11-23 10:45:36 +08:00
Detect Ohook install in KMS script
This commit is contained in:
parent
b33dcb2f72
commit
fd0e25f477
@ -602,6 +602,28 @@ if not %_actoff%==1 goto :ks_activate
|
|||||||
|
|
||||||
call :ks_setspp
|
call :ks_setspp
|
||||||
|
|
||||||
|
:: Check ohook install
|
||||||
|
|
||||||
|
set ohook=
|
||||||
|
for %%# in (15 16) do (
|
||||||
|
for %%A in ("%ProgramFiles%" "%ProgramW6432%" "%ProgramFiles(x86)%") do (
|
||||||
|
if exist "%%~A\Microsoft Office\Office%%#\sppc*dll" set ohook=1
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
for %%# in (System SystemX86) do (
|
||||||
|
for %%G in ("Office 15" "Office") do (
|
||||||
|
for %%A in ("%ProgramFiles%" "%ProgramW6432%" "%ProgramFiles(x86)%") do (
|
||||||
|
if exist "%%~A\Microsoft %%~G\root\vfs\%%#\sppc*dll" set ohook=1
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
if defined ohook (
|
||||||
|
echo:
|
||||||
|
call :dk_color %Gray% "Checking Ohook [Ohook activation is already installed for Office]"
|
||||||
|
)
|
||||||
|
|
||||||
:: Check unsupported office versions
|
:: Check unsupported office versions
|
||||||
|
|
||||||
set o14c2r=
|
set o14c2r=
|
||||||
|
Loading…
Reference in New Issue
Block a user