diff --git a/setup/install/install_verify.ps1 b/setup/install/install_verify.ps1 index eb55961..49b7b53 100644 --- a/setup/install/install_verify.ps1 +++ b/setup/install/install_verify.ps1 @@ -46,7 +46,7 @@ Test-Command "C:\Program Files\Google\Google Earth Pro\client\googleearth.exe" P Test-Command gpg PE32 Test-Command hashcat PE32 $JadxLibrary = (Get-ChildItem 'C:\Program Files\Jadx\' -Recurse -Include *.jar).FullName -Test-Command $JadxLibrary JAR +Test-Command $JadxLibrary "Zip archive data" Test-Command kape PE32 Test-Command "C:\Program Files (x86)\LibreOffice\program\soffice.exe" PE32 Test-Command loki PE32 diff --git a/setup/wscommon.ps1 b/setup/wscommon.ps1 index 557957b..53be11c 100644 --- a/setup/wscommon.ps1 +++ b/setup/wscommon.ps1 @@ -154,10 +154,10 @@ function Test-Command { return } - if ( file $command.Path | Where-Object {$_ -match $type}) { + if ( & 'C:\Program Files\Git\usr\bin\file.exe' -b $command.Path | Where-Object {$_ -match $type}) { Write-SynchronizedLog "SUCCESS: $name exists and type matches $type" } else { - $actual_type = file $command.Path + $actual_type = & 'C:\Program Files\Git\usr\bin\file.exe' -b $command.Path Write-SynchronizedLog "ERROR: $name exists but is not of type $type. Type is $actual_type" } }