-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File description of ShimGen shims should match original as closely as possible #374
Comments
Interesting, what makes it weird for 7z? |
@ferventcoder lol only the order of magnitude: I have lots of This originates from me creating shortcuts for most of the GUI programs in chocolatey/bin and sticking them in The workaround is to "shortcut" directly to the binary in chocolatey/lib/foo, but that doesn't always work, since there are a few packages whose subfolders change with versions (e.g. filezilla). And I feel like I'm defeating the purpose of my awesome common bin folder by doing that |
It might be worth it to scrape the "Author"/"File version"/"Product name"/"Product version" keys as well, since those seem to be used in some places, and currently incorrectly refer to ShimGen's details. If it's possible we could add a custom key like "ShimGen target" for informational purposes, which would also mark the exe as a ShimGen product. |
@alexchandel you mean pull that information out of the file itself if we find it? Sounds like a good enhancement. |
@ferventcoder How can we go about changing the behavior of shimgen? |
If you know how to get to the file information, it would be good to note that in this ticket (or shimgen 17). |
https://gallery.technet.microsoft.com/scriptcenter/get-file-meta-data-function-f9e8d804 should be what you are looking for i think |
This has been completed. |
Once it gets pulled in I will close this issue. |
- Fixes shimgen removing multiple spaces in arguments - Makes detection of shimgen arguments more deterministic, so false positives are not also removed - Use icon path for file information path if the file path doesn't exist.
Shimgen took a dependency on something that was super heavyweight (it increased the size by almost 8 times!) and was later found to be completely unnecessary. Switched it over to using built-in libraries and the size is back to what it was but still able to provide the same features as the larger binary did.
Currently, although ShimGen does (usually) successfully get the icon, the file description is left "ShimGen generated shim" with author "RealDimensions Software, LLC". This is bad, because I can't make shortcuts to these. If I do, and I open a file with them, then Windows Explorer calls every single file of that type "ShimGen generated shim". Which just doesn't work for
.7z
files.The text was updated successfully, but these errors were encountered: