diff options
| author | WindowsAddict | 2025-04-15 03:09:39 +0000 |
|---|---|---|
| committer | WindowsAddict | 2025-04-15 03:09:39 +0000 |
| commit | f5a0a63165d9e6b57719f48322baac60e29a2e6a (patch) | |
| tree | 7069f1fbc2b5af1320c4093adb0c0a1032fadd57 /MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd | |
| parent | 0d61475468de80b7f711038384e754331a14c7d8 (diff) | |
| download | Microsoft-Activation-Scripts-f5a0a63165d9e6b57719f48322baac60e29a2e6a.zip | |
Cleanup leftover branding.xml related code
Diffstat (limited to 'MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd')
| -rw-r--r-- | MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd b/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd index e97586c..04b78db 100644 --- a/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd +++ b/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd @@ -823,7 +823,6 @@ set _prids= set _config=
set _version=
set _License=
-set _oBranding=
exit /b
::========================================================================================================================================
@@ -1077,20 +1076,11 @@ set "_common=%CommonProgramFiles%" if defined PROCESSOR_ARCHITEW6432 set "_common=%CommonProgramW6432%"
set "_common2=%CommonProgramFiles(x86)%"
-for /r "%_common%\Microsoft Shared\OFFICE%oVer%\" %%f in (BRANDING.XML) do if exist "%%f" set "_oBranding=%%f"
-if not defined _oBranding for /r "%_common2%\Microsoft Shared\OFFICE%oVer%\" %%f in (BRANDING.XML) do if exist "%%f" set "_oBranding=%%f"
-
call :msiofficedata %2
echo:
echo Activating Office... [MSI ^| %_version% ^| %_oArch%]
-if not defined _oBranding (
-set error=1
-call :dk_color %Red% "Checking BRANDING.XML [Not Found, aborting activation...]"
-exit /b
-)
-
if not defined _oIds (
set error=1
call :dk_color %Red% "Checking Installed Products [Product IDs not found, aborting activation...]"
@@ -2475,18 +2465,13 @@ for %%# in ( ) do (
for /f "tokens=1-5 delims=_" %%A in ("%%#") do (
-set getIds=1
if "%oVer%"=="%%A" (
-if /i "%2"=="getmsiret" (echo %%D | findstr /i "Volume VL" %nul% && set getIds=)
-
-if defined getIds (
reg query "%1\Registration\{%%B}" /v ProductCode %nul2% | find /i "-%%C-" %nul% && (
reg query "%1\Common\InstalledPackages" %nul2% | find /i "-%%C-" %nul% && (
if defined _oIds (set _oIds=!_oIds! %%D) else (set _oIds=%%D)
)
)
)
-)
)
)
|
