After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 757576 - add support of environment directive
add support of environment directive
Status: RESOLVED INCOMPLETE
Product: msitools
Classification: Other
Component: wixl
0.94
Other Linux
: Normal normal
: 1.0
Assigned To: msitools maintainer(s)
msitools maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-11-04 10:51 UTC by christophe.philemotte
Modified: 2020-11-17 09:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description christophe.philemotte 2015-11-04 10:51:13 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.
Comment 1 Marc-Andre Lureau 2015-11-04 12:53:17 UTC
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
Comment 2 christophe.philemotte 2015-11-04 15:57:32 UTC
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?
Comment 3 Marc-Andre Lureau 2015-11-04 16:01:40 UTC
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.
Comment 4 Marc-Andre Lureau 2020-11-17 09:16:54 UTC
Moved to https://gitlab.gnome.org/GNOME/msitools/-/issues/9