Find makecab.py via $WIX rather than $PATH.

We have to define $WIX in any case for libpreload, so we might as well
get our money's worth out of it and not also require the Wix directory
to be on PATH.
This commit is contained in:
Simon Tatham 2017-05-17 19:28:39 +01:00
parent 4aa85aa621
commit ad56c28a70

View file

@ -45,7 +45,8 @@ uint32_t CreateCabBegin(const char16_t *wzCab, const char16_t *wzCabDir,
ctx->nargs = 0;
ctx->argsize = 16;
ctx->args = snewn(ctx->argsize, char *);
ctx->args[ctx->nargs++] = dupcat("makecab.py", (const char *)NULL);
ctx->args[ctx->nargs++] = dupcat(getenv("WIX"), "/", "makecab.py",
(const char *)NULL);
ctx->args[ctx->nargs++] = ctx->outfile;
*out_ctx = ctx;
return 0;