From 1bdee1ce6fd3ad64d1ae708daa7df65b54993ac2 Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Sun, 4 May 2025 01:03:13 +0530 Subject: Improve edition package detection --- MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd | 3 +++ 1 file changed, 3 insertions(+) (limited to 'MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd') diff --git a/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd b/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd index 40d9914..9bf5ba0 100644 --- a/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/TSforge_Activation.cmd @@ -2706,10 +2706,13 @@ call :dk_color %Red% "Checking License Files [Not Found] [%osed ) if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-*-%osedition%-*.mum" ( +if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-%osedition%Edition*.mum" ( call :dk_color %Red% "Checking Package Files [Not Found] [%osedition%]" ) ) ) +) + if %_wmic% EQU 1 wmic path %sps% get Version %nul% if %_wmic% EQU 0 %psc% "try { $null=([WMISEARCHER]'SELECT * FROM %sps%').Get().Version; exit 0 } catch { exit $_.Exception.InnerException.HResult }" %nul% -- cgit v1.2.3