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

.NET 4.0 install check #105

Open
ghost opened this issue Aug 20, 2015 · 2 comments
Open

.NET 4.0 install check #105

ghost opened this issue Aug 20, 2015 · 2 comments
Labels
0 - Backlog Issue is accepted, but is not ready to be worked on or not in current sprint Improvement Issues that enhances existing functionality, or adds new features

Comments

@ghost
Copy link

ghost commented Aug 20, 2015

The following is what is being used to check if .NET 4.0 is installed (from Check-Chocolatey.ps1):

if(Is64Bit) {$fx="framework64"} else {$fx="framework"}
if(!(test-path "$env:windir\Microsoft.Net\$fx\v4.0.30319"))

This check fails if .NET 4.0 is installed on a Windows 7 machine and then uninstalled. The v4.030319 folder remains with some .tlb files.

It is better to check for the presence of the following registry key: HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4. This will indicate that either the client or full .NET version is installed. If there is a need to check that .NET 4.0 full is installed then use: HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full.

@cam1985
Copy link

cam1985 commented Aug 20, 2015

As per my last message in Issue #97

I have completed a powershell module that will let you know what versions of dot net are installed on a machine and with very little modification you can run your checks against that. This retrieves all versions/releases installed.

@mwrock if you think it is something you would want implementing in boxstarter let me know and I will set to work on making it do what you want.

https://github.com/cam1985/Get-DotNet-Information

@mwrock
Copy link
Member

mwrock commented Aug 22, 2015

@cam1985 your module looks great. I just need to know if the user has 4.0 or greater installed. If you want to add a PR to Check-Chocolatey.ps1 with your Get-DotNet-LatestInstalledVersion function I'd gladly accept. Another option is to just pull down your module in my build and distribute with boxstarter. A couple things need to happen for that to work well.

  1. Mind adding a license? Preferably Apache 2 or MIT.
  2. Publishing your module on chocolatey or powershell gallery where my build could grab it?

@pauby pauby added Improvement Issues that enhances existing functionality, or adds new features Up For Grabs 0 - Backlog Issue is accepted, but is not ready to be worked on or not in current sprint labels Mar 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - Backlog Issue is accepted, but is not ready to be worked on or not in current sprint Improvement Issues that enhances existing functionality, or adds new features
Projects
None yet
Development

No branches or pull requests

3 participants