Author Topic: update wxs.trid.xml for WiX Source (*.wsx) + UTF variant  (Read 3922 times)

jenderek

  • Sr. Member
  • ****
  • Posts: 361
update wxs.trid.xml for WiX Source (*.wsx) + UTF variant
« on: December 17, 2017, 12:57:03 AM »
Hello,
some days ago i wanted to compile a WiX Source and it was only described as
"Generic XML (UTF-8)" and not as "WiX Source" by wxs.trid.xml (see appended
output/trid-old.txt).

The unrecognized example usbdlm.wxs was found in archive usbdlm.wxs.zip at
http://www.uwe-sieber.de/files/ .

So i started to inspect my disks for more examples with file name extension
"wxs". So i find more examples which are described only as "Generic XML
(ASCII)" and not as "WiX Source" (see appended ascii/output/trid-old.txt).
The unrecognized VBox*.wxs are part of VirtualBox source and the WixUI_*.wxs
are part of WiX toolset.

So i run tridscan on these examples to update wxs.trid.xml. So in global
string section 2 lines disappear:
   <String>SOURCE</String>
   <String>COMP</String>

Because "WiX Source" are just XML files i add concerning mime type by line:
   <Mime>text/xml</Mime>

Afterwards i started to handle my first example. Because it is described by
xml-utf8.trid.xml instead by xml.trid.xml like for other examples i
recognize that i must create a UTF-8 variant wxs-utf8.trid.xml in similar
way. Because i found only 2 examples of that type tridscan does not generate
a suitable trid definition. So i refine that definition file by just
transferring expression from wxs.trid.xml.

In output we got something like:
   File: inkscape.wxs
   89.0% (.WXS) WiX Source (40500/1/6)
   10.9% (.XML) Generic XML (ASCII) (5000/1)
that looks for user at first glance like
   49.9% (.PI2) DEGAS med-res bitmap (2000/1)
   25.0% (.ABR) Adobe PhotoShop Brush (1002/3)
where trid offers more file types and user must do further inspection
to decide what is true.

But in reality *.wxs files are just XML archives describing sources for WiX
toolset. So this is easy visible for normal users when using for word "WiX"
a phrase like "Windows Installer XML". Furthermore in German "WiX" is a
sound ex of a naughty word concerning sex. So i think this abbreviation should
be avoided when possible.

TrID definition, some examples and output are stored in archive
wxs.zip. I hope that my 2 XML files can be used in future version of
triddefs.

With best wishes
J?rg Jenderek

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2667
    • Mark0's Home Page
Re: update wxs.trid.xml for WiX Source (*.wsx) + UTF variant
« Reply #1 on: February 16, 2018, 03:16:42 PM »
Thanks!