mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2024-11-21 23:53:12 +01:00
Fix these bugs in checking activated products
Issue when similar names products are installed, like O365ProPlusRetail and ProPlusRetail Issue in detecting SPDRetail 2013 because of different name in LicenseFamily
This commit is contained in:
parent
3d16fc6a07
commit
dd3d788bfa
@ -952,7 +952,7 @@ exit /b
|
|||||||
|
|
||||||
for %%# in (%_oIds%) do (
|
for %%# in (%_oIds%) do (
|
||||||
|
|
||||||
echo: !actiProds%oVer%! | find /i "%%#" %nul1% && (
|
echo: !actiProds%oVer%! | find /i "-%%#-" %nul1% && (
|
||||||
call :dk_color %Gray% "Checking Activation Status [%%# is already permanently activated]"
|
call :dk_color %Gray% "Checking Activation Status [%%# is already permanently activated]"
|
||||||
|
|
||||||
) || (
|
) || (
|
||||||
@ -1066,6 +1066,7 @@ if not defined actiProds exit /b
|
|||||||
|
|
||||||
for %%# in (%actiProds%) do (
|
for %%# in (%actiProds%) do (
|
||||||
set _sortIds=%%#
|
set _sortIds=%%#
|
||||||
|
set _sortIds=!_sortIds:OfficeSPDFreeR_=SPDRetail_!
|
||||||
set _sortIds=!_sortIds:XC2RVL_=XVolume_!
|
set _sortIds=!_sortIds:XC2RVL_=XVolume_!
|
||||||
set _sortIds=!_sortIds:CO365R_=Retail_!
|
set _sortIds=!_sortIds:CO365R_=Retail_!
|
||||||
set _sortIds=!_sortIds:O365R_=Retail_!
|
set _sortIds=!_sortIds:O365R_=Retail_!
|
||||||
@ -1075,14 +1076,21 @@ set _sortIds=!_sortIds:DemoR_=Retail_!
|
|||||||
set _sortIds=!_sortIds:EDUR_=Retail_!
|
set _sortIds=!_sortIds:EDUR_=Retail_!
|
||||||
set _sortIds=!_sortIds:R_=Retail_!
|
set _sortIds=!_sortIds:R_=Retail_!
|
||||||
set _sortIds=!_sortIds:VL_=Volume_!
|
set _sortIds=!_sortIds:VL_=Volume_!
|
||||||
|
set _sortIds=!_sortIds:Office16=!
|
||||||
|
set _sortIds=!_sortIds:Office19=!
|
||||||
|
set _sortIds=!_sortIds:Office21=!
|
||||||
|
set _sortIds=!_sortIds:Office24=!
|
||||||
|
set _sortIds=!_sortIds:Office=!
|
||||||
|
for /f "tokens=1 delims=-_" %%a in ("!_sortIds!") do set "_sortIds=-%%a-"
|
||||||
set _FsortIds=!_sortIds! !_FsortIds!
|
set _FsortIds=!_sortIds! !_FsortIds!
|
||||||
)
|
)
|
||||||
|
|
||||||
call :ohookdata findactivated %2
|
call :ohookdata findactivated %2
|
||||||
exit /b
|
exit /b
|
||||||
|
|
||||||
:: Preview VL is not checked for permanent activation
|
:: Below IDs are not checked for permanent activation
|
||||||
set _sortIds=!_sortIds:PreviewVL_=Volume_!
|
set _sortIds=!_sortIds:PreviewVL_=Volume_!
|
||||||
|
set _sortIds=!_sortIds:PreInstallR_=Retail_!
|
||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
@ -2253,8 +2261,8 @@ if defined _oIds (set _oIds=!_oIds! %%E) else (set _oIds=%%E)
|
|||||||
)
|
)
|
||||||
|
|
||||||
if %1==findactivated if %oVer%==%%A (
|
if %1==findactivated if %oVer%==%%A (
|
||||||
echo "!_FsortIds!" | find /i "%%E" %nul% && (
|
echo "!_FsortIds!" | find /i "-%%E-" %nul% && (
|
||||||
set actiProds%oVer%=!actiProds%oVer%! %%E
|
set actiProds%oVer%=!actiProds%oVer%! -%%E-
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user