-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WiX toolkit is not in the PATH #9551
Comments
Hello @kevgo . Thanks for your report. We will take a look. |
The WiX Toolset installer adds a So you can run WiX commands from a Command Prompt by prefixing it:
Of course the ################################################################################
## File: Install-Wix.ps1
## Desc: Install WIX.
################################################################################
Install-ChocoPackage wixtoolset -ArgumentList "--force"
# Add WiX to the PATH
$currentPath = [Environment]::GetEnvironmentVariable("PATH", "Machine")
# Choose one of these next two lines, depending on the WiX priority
$NewPath = "$($Env:WIX)\bin;$currentPath"
#$NewPath = "$currentPath;$($Env:WIX)\bin"
[Environment]::SetEnvironmentVariable("PATH", $NewPath, "Machine")
Invoke-PesterTests -TestFile "Wix" |
Thanks for looking into this! 🙏 I do not call the WiX binaries directly, but am using a third-party application to generate the Windows installer for my app. This third-party app calls the various WiX binaries for me. It is not aware of the In addition to the Btw please don't forget that the binaries are in the $NewPath = "$($Env:WIX + "\bin");$currentPath" |
Oops, I indeed forgot to add the |
Deployed. |
Description
WiX provides several binaries in
C:\Program Files (x86)\WiX Toolset v3.14\bin
. This directory is not in the PATH environment variable.Platforms affected
Runner images affected
Image version and build link
Is it regression?
no, it was always broken afaik
Expected behavior
C:\Program Files (x86)\WiX Toolset v3.14\bin
is in the PATH. I can call executables from the WiX toolkit, likeC:\Program Files (x86)\WiX Toolset v3.14\bin\candle.exe
from any directory.Actual behavior
C:\Program Files (x86)\WiX Toolset v3.14\bin
is not in the PATH. I can not call executables from the WiX toolkit, likeC:\Program Files (x86)\WiX Toolset v3.14\bin\candle.exe
from any directory.Repro steps
To reproduce, I try to call the
candle.exe
executable provided by WiX:Checking the PATH environment variable reveals that WiX is indeed not in it:
Running
$env:PATH = "$env:PATH;C:\Program Files (x86)\WiX Toolset v3.14\bin"
fixes the issue:The text was updated successfully, but these errors were encountered: