Set path for Wix Toolset in windows runner #27149
-
I am trying to automate building a Windows MSI Installer for an electron application using Wix. I can see from looking here that the Wix Toolsets are included in the However, it seems like My research also lead to this post, but the answer there uses I have 2 questions:
Appreciate any help I can get! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Hi @hibearpanda, welcome to the GitHub Support Community! The Workflow commands for GitHub Actions - GitHub Docs//docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions That said, I believe the wix toolset should already be installed by default and available in the path at |
Beta Was this translation helpful? Give feedback.
-
Hi @thomasshaped, Thanks for replying. I was able to figure out how to add path but for some reason could not add the wix binaries to the path without hardcoding the path, instead of using env.wix. I have included a gist of list of my latest workflow here, but in summary: Worked
Did not work:
|
Beta Was this translation helpful? Give feedback.
-
Oh nice, good to see you got it working! I also did some testing yesterday with some of my team members and ended up getting it to work via this method (though I don’t think this is a nice way to do it, it feels rather hacky):
It’s still very strange that they’re not available by default nor via using the preset env. Perhaps this is something to do with the specific env reference syntax differences between different shells used as I see you’ve managed to get it to work specifically when using bash. I think I’m going to ask up the chain to see if they have any advice on this, but for now I’m at least glad you’ve managed to find solution! |
Beta Was this translation helpful? Give feedback.
-
Yea, it is a bit strange that it was not available in the path. Certainly stranger that it’s not (seemingly) available with Appreciate your help and for asking around! |
Beta Was this translation helpful? Give feedback.
Hi @thomasshaped,
Thanks for replying. I was able to figure out how to add path but for some reason could not add the wix binaries to the path without hardcoding the path, instead of using env.wix. I have included a gist of list of my latest workflow here, but in summary:
Worked
Did not work: