Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

[Enhancement] Do not create batch redirects for certain executables in package folder #106

Closed
ferventcoder opened this issue Jun 9, 2012 · 4 comments

Comments

@ferventcoder
Copy link
Contributor

I would like to be able to ignore certain executables in a package folder.

I should add a filename.ignore file next to the executable.

So if my package includes boB.exe and I include a boB.exe.ignore file chocolatey will not create a batch redirect. Note the case sensitivity. If I instead included bob.exe.ignore chocolatey should still create a batch redirect.

@ferventcoder
Copy link
Contributor Author

@u9520107
Copy link

u9520107 commented Jul 6, 2014

Just wondering.. instead of requiring packages to create .ignore files. Wouldn't it be more sensible to allow people to specify which redirects should be created?
What if you create a lot of executable's but only want a selected few to be added to the path?
Not saying that the current way is not sufficient, but it seems to be a bit inconvenient.

@ferventcoder
Copy link
Contributor Author

These are only the files in the package folder. It's extremely convenient when you have a whole set of executables you want created, which is more often the case in my experience.

Curious why you more executables in your package folder that you don't want added as redirects versus the ones that you do. Are the others temporary? If so maybe it is better to use a temporary folder and clean it up when you are done using it in chocolateyInstall.ps1.

Can you give me an example @u9520107?

@u9520107
Copy link

u9520107 commented Jul 7, 2014

@ferventcoder
hmm... I guess that makes sense.
Well, I tried to install nodist for managing node versions under windows through chocolatey. In their package, they included a old version of node that they use internally. Their installation will create multiple copies of node.exe with different versions, but only one if it needs to be redirected. In that case I guess having nodist scripts to create a .ignore file is better.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants