diff --git a/fake-winterop.c b/fake-winterop.c index cc69179..b16952a 100644 --- a/fake-winterop.c +++ b/fake-winterop.c @@ -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;