-
Notifications
You must be signed in to change notification settings - Fork 385
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
(notepadplusplus.install) shim misses the mark #1198
Comments
Thank you for opening this issue, as I mentioned on the disqus forum I plan to look into this. (Hopefully sometime this week). |
Seems like the changes needed is necessary to be done in the While changing the order when we're checking the |
After the WARNING, the script exits, so what creates the shim ? |
@majkinetor seems like choco itself is creating the shim for the installer. I missed that initially as my focus was really on why the package couldn't find the installation path. |
Yes looks like a bug in choco. |
No, not in choco. The bug is actually in the package. We are trying to get the install location on line 17, There is also the problem with the installation directory not being found though. |
You are right - the line that deletes the file is usually not at the end of the script but immediately after |
Reviewing this, I don't think this issue deserves more time. I encountered this behavior number of times with other packages too. Pre-existing installations on custom locations can sometimes mess up things. This concrete problem is related to symbols in executable name (#784) and thus is IMO something we can live with, especially as it can't be resolved quickly and benefit is very small. I think we should close this. |
yes, it is a very niche issue :D is it worth providing a workaround for in the documentation? |
Yeah, I will close this and add note in the chocolatey core extension. In case anybody wants to work on this, feel free to reopen. Thanks. |
notepadplusplus.install messes up the install directory, so it creates a shim that points to nowhere.
this doesn't happen on a fresh system but when it has (or maybe previously had?) notepad++ installed.
Expected Behavior
notepadplusplus.install finds the install location of notepad++.exe and creates the shim accordingly
Current Behavior
I found this in my registry
so I don't know why
Trying Registry: \SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths
did not pick it up.However, the order is wrong.
Trying Program Files with 2 levels depth: C:\Program Files C:\Program Files\*\* C:\Program Files (x86) C:\Program Files (x86)\*\*
picks up any leftover Notepad++ folders from previous installations.Trying native commands on PATH
picks up any leftover shims in chocolatey\bin.Steps to Reproduce (for bugs)
Context
trying to install NPP where the system has or had NPP already
Your Environment
Chocolatey v0.10.11
notepadplusplus.install 7.6.2
The text was updated successfully, but these errors were encountered: