Browse Source

More accurate check for Office Products in NoEditionChange mode

pull/542/head
WindowsAddict 5 months ago
parent
commit
6f88a4bf90
  1. 8
      MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd

8
MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd

@ -984,7 +984,9 @@ for %%# in (%_oIds%) do (
set skipprocess= set skipprocess=
if %_NoEditionChange%==1 if not defined _oBranding ( if %_NoEditionChange%==1 if not defined _oBranding (
echo %%# | findstr /i "Retail" %nul% && ( set foundprod=
call :ksdata chkprod %%#
if not defined foundprod (
set skipprocess=1 set skipprocess=1
echo Skipping Because NoEditionChange Mode [%%#] echo Skipping Because NoEditionChange Mode [%%#]
) )
@ -3410,6 +3412,10 @@ if %1==winkey if %osSKU%==%%C if not defined key (
echo "!allapps!" | find /i "%%A" %nul1% && set key=%%B echo "!allapps!" | find /i "%%A" %nul1% && set key=%%B
) )
if %1==chkprod if "%oVer%"=="%%C" if not defined foundprod (
echo "%%D" | findstr /I "\<%2.*" %nul% && set foundprod=1
)
if %1==getinfo if not defined key if "%oVer%"=="%%C" ( if %1==getinfo if not defined key if "%oVer%"=="%%C" (
if /i "%2"=="%%D" ( if /i "%2"=="%%D" (
set key=%%B set key=%%B

Loading…
Cancel
Save