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:
parent
4aa85aa621
commit
ad56c28a70
1 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,8 @@ uint32_t CreateCabBegin(const char16_t *wzCab, const char16_t *wzCabDir,
|
||||||
ctx->nargs = 0;
|
ctx->nargs = 0;
|
||||||
ctx->argsize = 16;
|
ctx->argsize = 16;
|
||||||
ctx->args = snewn(ctx->argsize, char *);
|
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;
|
ctx->args[ctx->nargs++] = ctx->outfile;
|
||||||
*out_ctx = ctx;
|
*out_ctx = ctx;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue