Browse Source

Use IsOSBinary check

pull/553/head
WindowsAddict 4 months ago
parent
commit
0afb09cbd1
  1. 2
      MAS/All-In-One-Version-KL/MAS_AIO.cmd
  2. 2
      MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd

2
MAS/All-In-One-Version-KL/MAS_AIO.cmd

@ -3701,7 +3701,7 @@ goto dk_done @@ -3701,7 +3701,7 @@ goto dk_done
:: Check file signature
if defined a_cor (
%psc% "if ((Get-AuthenticodeSignature -FilePath '!_work!\clipup.exe').Status -ne 'Valid') {Exit 3}" %nul%
%psc% "if (-not (Get-AuthenticodeSignature -FilePath '!_work!\clipup.exe').IsOSBinary) {Exit 3}" %nul%
if !errorlevel!==3 (
%eline%
echo Valid digital signature not found in clipup.exe file.

2
MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd

@ -452,7 +452,7 @@ goto dk_done @@ -452,7 +452,7 @@ goto dk_done
:: Check file signature
if defined a_cor (
%psc% "if ((Get-AuthenticodeSignature -FilePath '!_work!\clipup.exe').Status -ne 'Valid') {Exit 3}" %nul%
%psc% "if (-not (Get-AuthenticodeSignature -FilePath '!_work!\clipup.exe').IsOSBinary) {Exit 3}" %nul%
if !errorlevel!==3 (
%eline%
echo Valid digital signature not found in clipup.exe file.

Loading…
Cancel
Save