- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
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 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.
关于chocolatey - 如何让 Chocolatey 不向路径添加 EXE?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29151904/
我是一名优秀的程序员,十分优秀!