Microsoft .NET Framework 3.5: Difference between revisions

From LANCommander
(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 =...")
 
No edit summary
 
Line 8: Line 8:
{{Redistributable.Scripts.DetectInstall
{{Redistributable.Scripts.DetectInstall
|Name = Install Detection
|Name = Install Detection
|Description = This script will look at the installed package list from Windows for anything matching Visual C++ 2012 Redistributable (x64).
|Description = This script will look at the registry to see if the .NET Framework installer has run for 3.5.
|RequiresAdmin = False
|RequiresAdmin = False
|Contents = <syntaxhighlight lang="powershell" line>
|Contents = <syntaxhighlight lang="powershell" line>
Line 22: Line 22:
{{Redistributable.Scripts.Install
{{Redistributable.Scripts.Install
|Name = Install Script
|Name = Install Script
|Description = This script installs the Visual C++ 2012 Redistributable (x64) redistributable silently.
|Description = This script installs the .NET Framework 3.5 redistributable silently.
|RequiresAdmin = False
|RequiresAdmin = False
|Contents = <syntaxhighlight lang="powershell" line>
|Contents = <syntaxhighlight lang="powershell" line>

Latest revision as of 00:51, 30 November 2023


Downloads

Version Release Date File
3.5 Download

Install Detection

This script will look at the registry to see if the .NET Framework installer has run for 3.5.

$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 .NET Framework 3.5 redistributable silently.

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