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

Fix #241: WIndows installation #250

Merged
merged 3 commits into from
Apr 5, 2024
Merged

Conversation

SteffenBrinckmann
Copy link
Contributor

Fix 241

  • test if .NET 3.5 is installed
  • add this requirement to the documentation

- test if .NET 3.5 is installed
- add this requirement to the documentation
'''
import subprocess
command = ['reg','query','HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\NET Framework Setup\\NDP','/s']
result = subprocess.run(command, stdout=subprocess.PIPE, check=True)
Copy link
Contributor

@jmurugan-fzj jmurugan-fzj Apr 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's always looking for just "Version 3.5" why cannot we simply check

if "Version 3.5" in result ??

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we allow only this specific version of .NET, is this intended?

b'Version REG_SZ 3.5'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SteffenBrinckmann Ahh Okay, please see the failing GitHub actions!

@SteffenBrinckmann
Copy link
Contributor Author

@jmurugan-fzj Thank you for pointing out this: I updated that code and tested it on my windows partition

'''
import subprocess
command = ['reg','query','HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\NET Framework Setup\\NDP','/s']
result = subprocess.run(command, stdout=subprocess.PIPE, check=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we allow only this specific version of .NET, is this intended?

b'Version REG_SZ 3.5'

@SteffenBrinckmann
Copy link
Contributor Author

@jmurugan-fzj The user can have multiple .net versions installed: my system has >10.

@SteffenBrinckmann SteffenBrinckmann merged commit 6e8a462 into main Apr 5, 2024
9 of 10 checks passed
@SteffenBrinckmann SteffenBrinckmann deleted the sb_241_.NET35Installed branch April 5, 2024 09:06
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