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

intellijidea-community installing to "Program Files (x86)" even on 64-bit system #343

Open
gregma opened this issue Apr 29, 2019 · 2 comments

Comments

@gregma
Copy link

gregma commented Apr 29, 2019

This package seems to be trying to determine of it's being run on a 64-bit machine, but setting the install directory to the 32-bit Program Files if it is.

$programFiles = (${env:ProgramFiles(x86)}, ${env:ProgramFiles} -ne $null)[0]

If this is being run on a 64-bit machine, this line will return "Program Files (x86)" which is then set as $programFiles. This should not be correct. If the system is 64-bit, it should be installed to "Program Files".

@AnthonyMastrean
Copy link
Owner

@ZeddG93 this is an interesting incantation; are you sure it works in all cases?

https://github.com/AnthonyMastrean/chocolateypackages/blame/master/packages/intellijidea-community/tools/chocolateyInstall.ps1#L7

@zed76r
Copy link
Contributor

zed76r commented Jun 8, 2019

fix in next version zed76r@22037c3

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

No branches or pull requests

3 participants