gpt4 book ai didi

chocolatey - 如何让 Chocolatey 不向路径添加 EXE?

转载 作者:行者123 更新时间:2023-12-03 22:02:58 28 4
gpt4 key购买 nike

Chocolatey 添加任何 .exe它在我的包安装目录中找到路径(the wiki 中的步骤#3)。如何为给定的 .exe 禁用此功能在我的包裹里? .exe是 Windows 服务,无需将其添加到路径中。

最佳答案

在 wiki 中再往下一点 - https://github.com/chocolatey/choco/wiki/CreatePackages#how-do-i-exclude-executables-from-getting-batch-redirects

复制到这里:

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.

关于chocolatey - 如何让 Chocolatey 不向路径添加 EXE?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29151904/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com