-
Notifications
You must be signed in to change notification settings - Fork 344
shim exe with icon of the exe #579
Comments
👍 for this. I also would find it much nicer if the original exe icon would be used. That is also the reason why there exist different icons for different programs, isn’t it? 😃 |
For me, the advantage of the shim's is running the application's from the command line, so icons don't really matter for me. Personal preference I guess. |
I'm curious... why the "shim" versus mklink? |
Because MS failed to correctly implement symlinks. To create symlinks on Windows requires administrator rights and attempting to run them from GUI (Explorer) fails with an error. In addition, they don’t resolve paths correctly (e.g. paths to DLLs are not resolved correctly). |
I see shimgen as workaround for a broken symlink support in Windows. On Windows and on other operating systems, symlinks always inherit the icon of their target. IMHO that makes sense, doesn’t it? |
I don't disagree with you on that point. However, for me, the shims that end up in the Chocolatey\bin folder are things like Other applications that are installed through Chocolatey almost always have Start Menu, or desktop links, so again, I don't need to go to the Chocolatey\bin folder. It is just as simple for me to hit the Windows key, type the first few character of the application name, and then hit enter. Yes, it's personal preference. |
I see. How does one create their own shims? We might have a use. Are they
|
ShimGen is non-free proprietary software: https://raw.githubusercontent.com/chocolatey/chocolatey/master/src/tools/shimgen.license.txt I guess the Chocolatey devs won’t tell how it exactly works, otherwise they would have open-sourced it. 😃 |
Wha????!! disappointing. I can think of many many issues of Windows and Windows apps that could have
|
It's possible that it could later be offered as a standalone product. I do doubt that it will be a free product though. At the current time we are wanting to see more folks making packages to take advantage of it. |
👍 |
👍 for Atom |
This extracts the icons from the executable
* stable: (doc) update release notes/nuspec (shimgen) update shims for choco (doc) remove KS message (GH-579)(shimgen) update shimgen to 0.4.0
If you want to play with this, there is a prerelease https://chocolatey.org/packages/chocolatey/0.9.8.29-alpha1 |
So it works if it finds the path. However the working directory of shimgen doesn't find it appropriately :/ |
Added an option for passing the full path so the exe can be resolved for extracting the icon from.
When trying to extract the icon out, if it fails, be sure to use the default icon instead.
* stable: 0.9.8.31 0.9.8.31-beta2 (doc) update changelog/nuspec (chocolatey-archiveGH-579)(shimgen) fallback to default icon when error
Regarding shims vs mklink: Back when I still used Windows XP I used Windows's *.LNK files as shims for programs I wanted to start from the commandline. The link contents just have to be
Instead of just In order to allow calling the program as One advantage of LNK files would be that it inherits the executable's icon. I am not aware of disadvantages. Sadly I'm also not aware of how to generate .LNK files. |
hi!
it's possible in the exe created into
C:\ProgramData\chocolatey\bin
that points to the latest update to have the icon of the correct exe and not all the same?thanks
The text was updated successfully, but these errors were encountered: