Chocolatey adds any .exe
it finds in my package install directory to the path (step #3 in the wiki). How do I disable this for a given .exe
in my package? The .exe
is a Windows Service and there is no need to add it to the path.
How do I get Chocolatey to not add an EXE to the path?
Asked Answered
As I have explained in the official documentation:
If you have executables in the package or brought into the package folder during PowerShell run and you want to exclude them you need to create an empty file named exactly like (case sensitive) the executable with
.ignore
suffixed on the end in the same directory where the executable is or will be.Example: In the case of
Bob.exe
you would create a file namedBob.exe.ignore
and that file would not get a redirect batch link. The Chocolatey package has an example of that. To further expand,bob.exe.ignore
would not work because it doesn't have the correct casing.
© 2022 - 2024 — McMap. All rights reserved.