Microsoft .NET Framework 3.5

From LANCommander
Revision as of 00:50, 30 November 2023 by DoctorDalek (talk | contribs) (Created page with "Category:Redistributables {{Redistributable.DownloadBox |Downloads = {{Redistributable.DownloadBox.Row|Version = 3.5|File = Microsoft .NET Framework 3.5.zip|ReleaseDate = }} }} {{Redistributable.Scripts.DetectInstall |Name = Install Detection |Description = This script will look at the installed package list from Windows for anything matching Visual C++ 2012 Redistributable (x64). |RequiresAdmin = False |Contents = <syntaxhighlight lang="powershell" line> $Exists =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Downloads

Version Release Date File
3.5 Download

Install Detection

This script will look at the installed package list from Windows for anything matching Visual C++ 2012 Redistributable (x64).

$Exists = Test-Path "HKLM:\\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5"

if ($Exists -eq $True) {
    $Host.SetShouldExit(1)
} else {
    $Host.SetShouldExit(0)
}

Install Script

This script installs the Visual C++ 2012 Redistributable (x64) redistributable silently.

Write-Host "Installing .NET Framework 3.5..."
Start-Process -FilePath "dotnetfx35.exe" -ArgumentList "/q /norestart" -Wait -Passthru
Write-Host "Done!"