Skip to content
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

(GH-252) PATH exceeding 2048 breaks choco. Use %systemroot% in place of %windir%. #251

Closed
wants to merge 1 commit into from

Conversation

davehorner
Copy link

Issue: #252
%windir% is broken when %path% exceeds 2048 chars, but %systemroot% continues to work.

I found this issue due to cygwin rewriting my PATH to larger than 2048 I believe...
when I echo %windir%, it just prints %windir%.
when I echo %systemroot%, it prints C:\Windows.

I found this from the superuser ticket.
http://superuser.com/questions/719459/strange-path-issue-in-windows-7-goes-null-after-being-set
http://allgeekallthetime.blogspot.com/2012/01/path-over-2048-chars-kills-windir.html

The user experiences something like this:
XXX not upgraded. An error occurred during installation: Unable to find suitable location for PowerShell. Searched the following locations: '%windir%\SysNative\WindowsPowerShell\v1.0\powershell.exe; %windir%\System32\WindowsPowerShell\v1.0\powershell.exe; powershell.exe'

Which is a little confusing, because running powershell.exe works fine. I leave it to the merger to decide if %systemroot% should replace the %windir%, the fix supplied simply adds %systemroot% in addition to %windir%...this works fine too.

Thanks for choco.
--dave

exceeds 2048 chars, but %systemroot% continues to work.
@ferventcoder
Copy link
Member

@davehorner have you had an opportunity to read over CONTRIBUTING.md?

@ferventcoder
Copy link
Member

I need you to fixup your commit message and sign the CLA. Thanks in advance.

@davehorner davehorner changed the title Use %systemroot% in place of %windir%. PATH exceed 2048 breaks choco. (GH-252) PATH exceeding 2048 breaks choco. Use %systemroot% in place of %windir%. Apr 21, 2015
@ferventcoder
Copy link
Member

The title is a start. The actual commit will need to be amended to be reworded and then a push back to the branch with --force will get the adjustments up here.

@ferventcoder
Copy link
Member

@davehorner have you had a chance to review and respond to my feedback yet?

@davehorner
Copy link
Author

working with legal to try and get permission to sign the CLA. Hopefully I will know soon. Sorry and thanks.

@ferventcoder
Copy link
Member

@davehorner no worries, thanks for letting me know!

@ferventcoder
Copy link
Member

Ping @davehorner

@davehorner
Copy link
Author

Sadly I have not received permission to sign the CLA from the legal dept. at my place of employment. I think we may have to forgo my contribution/patch if CLA requirements are truly required. The change is pretty small and easy to recreate. My apologies I could not follow typical project contribution requirements. Thanks for following back, and thanks for the wonderful tool.

--dave

@ferventcoder
Copy link
Member

No worries, thanks for following up.

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

Successfully merging this pull request may close these issues.

2 participants