check .net version and install newer if needed



  • Stephen Valdinger

    In Powershell you could do this:

    Get-ChildItem "HKLM:SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\" | Get-ItemPropertyValue -Name Release | ForEach-Object { $_ -ge 394254 }


    You could also do a Registry condition and use some regex on the Match. Unfortunately....I suck at Regex and haven't been able to figure this out. BUT, I know some of the PDQ lurkers here are amazing at it so they should be able to shed some light.



    You can find the information about .Net versions here:

    Comment actions Permalink
  • Callan Johnstone

    Hi Logan,

    We did something similar with our software, we made PDQ do the legwork.

    1. Setup registry scan profile and perform the scan
    Keys in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\**\

    2. Create PDQ  Inventory collection based on the registry information the scanner gathered.

    3. In your PDQ deployment package, Make the condition on your .NET install step to check that if the computer 'Is Not A Member" of the 4.6.1 or latest inventory collection.

    If it is not a member of that collection, it will run the .NET install - if it is a member of the collection it will just skip to the next step in the deployment package.

    There is probably an easier way to go about doing this check, but collections make it easy to manage with further deploys

    Hope it helps

    Comment actions Permalink
  • Logan Warren

    Thanks guys! I think I've got it!

    Comment actions Permalink

Please sign in to leave a comment.