mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-03 19:39:07 +08:00
35bfb0f83e
* Removed Search Interop tlb package. Added minimal Search API Com implementation * Added CSearchManagerImp * Updated Main with proper reference to CSearchManagerImp. Switched WindowsIndexerTest to use Indexer.Interop classes * Updated with proper SearchAPI Interop implementation * Deleted initial CSearchManager file that didn't work * Updated namespaces to match folder structure * Removed the interfaces and classes not being used from SearchAPI. Added suppressions * Updated spell check. Renamed CSearch call back to original * Fix spell check * Switched back to original class name for Search Manager in tests * Removed Microsoft.Search.Interop.dll from setup * Removed Microsoft.Search.Interop package from PowerLauncher and signing scripts
51 lines
1.0 KiB
PowerShell
51 lines
1.0 KiB
PowerShell
[CmdletBinding()]
|
|
# todo: send in arch / conf, could send in actual path
|
|
Param(
|
|
[Parameter(Mandatory=$True,Position=1)]
|
|
[AllowEmptyString()]
|
|
[string]$targetDir = $PSScriptRoot + '/../extractedMsi/File'
|
|
)
|
|
|
|
$DirPath = $targetDir; #this file is in pipeline, we need root.
|
|
$items = Get-ChildItem -Path $DirPath -File -Include *.exe,*.dll,*.ttf -Recurse -Force -ErrorAction SilentlyContinue
|
|
$totalFailure = 0;
|
|
|
|
Write-Host $DirPath;
|
|
|
|
if(-not (Test-Path $DirPath))
|
|
{
|
|
Write-Host "Folder does not exist!"
|
|
}
|
|
|
|
Write-Host "Total items: " $items.Count
|
|
|
|
if($items.Count -eq 0)
|
|
{
|
|
# no items means something bad happened. We should fail ASAP
|
|
exit 1;
|
|
}
|
|
|
|
$items | ForEach-Object {
|
|
if($_.VersionInfo.FileVersion -eq "1.0.0.0" )
|
|
{
|
|
Write-Host "Version not set: " + $_.FullName
|
|
$totalFailure++;
|
|
}
|
|
}
|
|
|
|
$items | ForEach-Object {
|
|
$auth = Get-AuthenticodeSignature $_.FullName
|
|
if($auth.SignerCertificate -eq $null)
|
|
{
|
|
Write-Host "Not Signed: " + $_.FullName
|
|
$totalFailure++;
|
|
}
|
|
}
|
|
|
|
if($totalFailure -gt 0)
|
|
{
|
|
exit 1
|
|
}
|
|
|
|
exit 0
|