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/TSforge_Activation.cmd | |
| parent | 0d61475468de80b7f711038384e754331a14c7d8 (diff) | |
| download | Microsoft-Activation-Scripts-f5a0a63165d9e6b57719f48322baac60e29a2e6a.zip | |
Cleanup leftover branding.xml related code
Diffstat (limited to 'MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd')
| -rw-r--r-- | MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd b/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd index 3330a77..7da980b 100644 --- a/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd @@ -1499,7 +1499,6 @@ set _prids= set _config=
set _version=
set _License=
-set _oBranding=
exit /b
::========================================================================================================================================
@@ -1679,9 +1678,6 @@ 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"
-
if exist "%_common%\Microsoft Shared\OFFICE%oVer%\Office Setup Controller\pkeyconfig-office.xrm-ms" (
set "pkeypath=%_common%\Microsoft Shared\OFFICE%oVer%\Office Setup Controller\pkeyconfig-office.xrm-ms"
) else if exist "%_common2%\Microsoft Shared\OFFICE%oVer%\Office Setup Controller\pkeyconfig-office.xrm-ms" (
@@ -1693,12 +1689,6 @@ call :msiofficedata %2 echo:
echo Processing 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...]"
@@ -7195,18 +7185,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)
)
)
)
-)
)
)
|
