Use IsOSBinary check

Cette révision appartient à :
WindowsAddict 2024-09-05 05:11:08 +05:30
Parent 5d8a463475
révision 0afb09cbd1
2 fichiers modifiés avec 2 ajouts et 2 suppressions

Voir le fichier

@ -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.

Voir le fichier

@ -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.