Author Topic: updated vsix.trid.xml for Visual Studio Extension  (Read 800 times)

jenderek

  • Sr. Member
  • ****
  • Posts: 375
updated vsix.trid.xml for Visual Studio Extension
« on: September 03, 2022, 01:45:39 AM »
Hello trid users,

Some days ago i run the cleaning tool czkawka found on
https://qarmin.github.io/czkawka/. One menu item concerns bad
extensions. After running tool i looked in saved file list
results_bad_extensions.txt for bad extension examples.

One listed extension is VSIX. So i run trid utility on my VSIX examples. A
few are described correctly as "Visual Studio Extension" by
vsix.trid.xml. All are described with lower rate as "Open Packaging
Conventions container" by opc-open-package.trid.xml and also with lower rate
as "ZIP compressed archive" by ark-zip.trid.xml. The examples are
misidentified with lowest rate as "PrintFox/Pagefox bitmap (640x800)" by
bitmap-printfox-p.trid.xml (See appended output/trid-v-old.txt)

For comparison reason i check these examples by file command utility. When
running file command (version 5.42) here all examples are also described
generic as "Zip archive data" (See appended output/file-5.42.txt) and with
mime type application/zip (See appended output/file-i-5.42.txt).

For comparison reason i also run the file format identification utility
DROID ( See https://sourceforge.net/projects/droid/). This identifies all
examples also only generic "ZIP Format" by PUID x-fmt/263 and complains
about name extension VSIX.

For comparison reason i generate ZIP archive listing by running 7-zip
unpacking utility (See appended output/7z-l.txt).

After running tridscan to update definition vsix.trid.xml i looked what has
changed and why. In global strings section the following lines vanished:
      <String>.NET</String>
      <String>IDAT</String>
      <String>TEXT</String>
      <String>VIEW</String>
The first is triggered because many VSIX examples does not contain library
like Microsoft.NET.StringTools.dll.

The current definition contain no mime type. Because VSIX are zip arches the
could get that generic mime type application/zip. But when "Microsoft Visual
Studio is stalled VSIX is registered as VisualStudio.Launcher.vsix. And VSIX
get their own mime type. That is expressed by line like:
      <Mime>application/vsix</Mime>

With the updated trid definition now all VSIX examples are described (see
appended output/trid-v-new.txt). TrID definition and output are stored in
archive vsix_.zip. I hope that my XML file can be used in future version of
triddefs.

With best wishes
Jörg Jenderek

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2743
    • Mark0's Home Page
Re: updated vsix.trid.xml for Visual Studio Extension
« Reply #1 on: September 03, 2022, 03:27:41 PM »
Thanks for the update!