GNOME Bugzilla – Bug 757576
add support of environment directive
Last modified: 2020-11-17 09:16:54 UTC
hi, I'd like to set the environment path. According the doc http://wixtoolset.org/documentation/manual/v3/xsd/wix/environment.html , you can do it by adding something like <Environment Id="PATH" Name="PATH" Value="[INSTALLDIR]" Permanent="yes" Part="last" Action="set" System="yes" /> It doesn't to be supported. I'm ready to contribute to add the support, could you help me to start? thanks.
Hi Christophe, thanks for your interest, before I spent time explaining further how to implement new wix features, have you checked the code? A good way to get started is to build a simple/minimal wix file with the missing feature (an Environment element for ex), build the resulting msi file with WiX, and build with wixl. Then compare the result with msidiff. Then hopefully you can get started reading tools/wixl/{wix,builder,msi}.vala
Thanks Marc-Andre Only a little to understand some warnings, but I'm not used to vala Ï'll try the approach you suggest and come back to you. I just need to find WiX first. I guess it's the microsoft tools that allow to package the msi, right? that one wixtoolset.org?
right, that's what wixl is based on, we try to follow their specification. In theory, the same wix source file should produce similar output. However, wixl lacks a lot of features compared to WiX at this point.
Moved to https://gitlab.gnome.org/GNOME/msitools/-/issues/9