-
Notifications
You must be signed in to change notification settings - Fork 908
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
Install flag to automatically create Start Menu shortcuts #764
Comments
You mean not having something built-in for the package consumer is something you consider a weakness and would like Chocolatey to do as a built-in concept? |
It's a good idea. I think that it's something we should add. |
I think this is related to #344 |
@ferventcoder I think it may be a slight weakness because it adds a step to using many GUI packages that don't explicitly install & uninstall shortcuts for their GUIs. For example, whenever I install 7zip.portable onto a new machine, I usually have to then dig around for the original exe in |
I think it's an area for improvement versus depending on a package maintainer to have defined shortcuts. |
I'm having this issue with NORDVPN, once i install it it doesn't show up on the start menu and if i search for "nord vpn" Windows 10 isn't finding anything. I went into C:\ProgramData\chocolatey\lib\nordvpn and i also can't find an "exe" file to link to on the start menu. It's been over 10 years i don't use windows, so i'm very confused on which file i should link on the start menu in order to be able to launch it from the "launchbar"... Any ideas guys? Is there a "--create-shortcuts" option implemented already? Thank you for your great work / support so far. |
The directory you mentioned is the package directory, not the directory for the installation of NordVPN.
Could be a windows start menu caching issue, as the installer (the package is just a wrapper around the installer) should create an icon on the start menu. However, I have sometimes seen this not to show up until the start menu is refreshed/rebuilt or a reboot have occurred. If you have any further issues, please open an issue over at https://github.com/AdmiringWorm/chocolatey-packages as this is not a problem in chocolatey. |
Not creating start menu shortcuts by default, and lacking a uniform means to do so, is one of Chocolatey's weaknesses.
I propose a flag like
choco install --with-shortcuts
that would cause Chocolately to automatically create shortcuts for all the GUI executables found in a package's directory, just as ShimGen automatically creates shims.Shortcuts would be placed in
/ProgramData/Microsoft/Windows/Start Menu/Programs/Chocolatey/
where they cannot accidentally collide with shortcuts installed by other means. And they should be automatically removed, just like shims, when the package is uninstalled. Achoco feature
should also exist to make--with-shortcuts
the default.For example, the
tools/Console.exe.gui
stub file in the ConsoleZ package would cause the shortcut/ProgramData/Microsoft/Windows/Start Menu/Programs/Chocolatey/ConsoleZ/Console.lnk
to be created.This is differs from #395 and #519 in that Shortcuts GUI programs are automatically created and removed by Chocolatey, without having to manually install each one in
chocolatelyInstall.ps1
and remove each one inchocolateyUninstall.ps1
.The text was updated successfully, but these errors were encountered: