Search App-V Repository for specific file

We had request today to determine from which App-V package specific file comes. Since appv files are just simple zip archives, here is how we did it:

[Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem') | out-null

foreach($sourceFile in (gci \\ca\xen\app-v\Packages\*.appv -Recurse))
{
    [IO.Compression.ZipFile]::OpenRead($sourceFile.FullName).Entries.FullName | ?{$_ -like "*chrome.exe"} |
        %{ "$sourcefile`:$_" }
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *