How do I get Chocolatey to not add an EXE to the path?
Asked Answered
T

1

12

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.

Thalassography answered 19/3, 2015 at 18:3 Comment(0)
A
21

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 named Bob.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.

Archiphoneme answered 20/3, 2015 at 14:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.