More accurate check for Office Products in NoEditionChange mode

pull/542/head
WindowsAddict 2024-07-17 01:19:06 +05:30
parent dd3d788bfa
commit 6f88a4bf90
1 changed files with 7 additions and 1 deletions

View File

@ -984,7 +984,9 @@ for %%# in (%_oIds%) do (
set skipprocess=
if %_NoEditionChange%==1 if not defined _oBranding (
echo %%# | findstr /i "Retail" %nul% && (
set foundprod=
call :ksdata chkprod %%#
if not defined foundprod (
set skipprocess=1
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
)
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 /i "%2"=="%%D" (
set key=%%B