Ordres per instal·lar Microsoft .NET Framework Developer Pack sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb winget
PowerShell
winget install --id Microsoft.DotNet.Framework.DeveloperPack_4 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.DotNet.Framework.DeveloperPack_4 -e --silentwinget uninstall --id Microsoft.DotNet.Framework.DeveloperPack_4 -e --silentPer instal·lador
64 bits · EXE
Instal·lació silenciosa
NDP481-DevPack-ENU.exe /install /quiet /norestartDesinstal·lar
msiexec /x {81EF376F-C9A1-42A3-8997-22A1DE4687F0} /qn /norestart- Codi de producte MSI
- {81ef376f-c9a1-42a3-8997-22a1de4687f0}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{81ef376f-c9a1-42a3-8997-22a1de4687f0}
- DisplayVersion
- 4.8.09037
ARM64 · EXE
Instal·lació silenciosa
NDP481-DevPack-ENU.exe /install /quiet /norestartDesinstal·lar
msiexec /x {81EF376F-C9A1-42A3-8997-22A1DE4687F0} /qn /norestart- Codi de producte MSI
- {81ef376f-c9a1-42a3-8997-22a1de4687f0}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{81ef376f-c9a1-42a3-8997-22a1de4687f0}
- DisplayVersion
- 4.8.09037
32 bits · EXE
Instal·lació silenciosa
NDP481-DevPack-ENU.exe /install /quiet /norestartDesinstal·lar
msiexec /x {81EF376F-C9A1-42A3-8997-22A1DE4687F0} /qn /norestart- Codi de producte MSI
- {81ef376f-c9a1-42a3-8997-22a1de4687f0}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{81ef376f-c9a1-42a3-8997-22a1de4687f0}
- DisplayVersion
- 4.8.09037
Qualsevol processador · EXE
Instal·lació silenciosa
NDP481-DevPack-ENU.exe /install /quiet /norestartDesinstal·lar
msiexec /x {81EF376F-C9A1-42A3-8997-22A1DE4687F0} /qn /norestart- Codi de producte MSI
- {81ef376f-c9a1-42a3-8997-22a1de4687f0}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{81ef376f-c9a1-42a3-8997-22a1de4687f0}
- DisplayVersion
- 4.8.09037
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-microsoft-net-framework-developer-pack.ps1
$url = 'https://download.microsoft.com/download/8/1/8/81877d8b-a9b2-4153-9ad2-63a6441d11dd/NDP481-DevPack-ENU.exe'
$sha256 = 'FD9AE4B63CBC8F7637249C4B29D25281B1F70FBE6D650109DCBF2BDF596CF994'
$file = Join-Path $env:TEMP 'NDP481-DevPack-ENU.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/install /quiet /norestart' -Wait install-microsoft-net-framework-developer-pack.ps1
$url = 'https://download.microsoft.com/download/8/1/8/81877d8b-a9b2-4153-9ad2-63a6441d11dd/NDP481-DevPack-ENU.exe'
$sha256 = 'FD9AE4B63CBC8F7637249C4B29D25281B1F70FBE6D650109DCBF2BDF596CF994'
$file = Join-Path $env:TEMP 'NDP481-DevPack-ENU.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/install /quiet /norestart' -Wait install-microsoft-net-framework-developer-pack.ps1
$url = 'https://download.microsoft.com/download/8/1/8/81877d8b-a9b2-4153-9ad2-63a6441d11dd/NDP481-DevPack-ENU.exe'
$sha256 = 'FD9AE4B63CBC8F7637249C4B29D25281B1F70FBE6D650109DCBF2BDF596CF994'
$file = Join-Path $env:TEMP 'NDP481-DevPack-ENU.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/install /quiet /norestart' -Wait install-microsoft-net-framework-developer-pack.ps1
$url = 'https://download.microsoft.com/download/8/1/8/81877d8b-a9b2-4153-9ad2-63a6441d11dd/NDP481-DevPack-ENU.exe'
$sha256 = 'FD9AE4B63CBC8F7637249C4B29D25281B1F70FBE6D650109DCBF2BDF596CF994'
$file = Join-Path $env:TEMP 'NDP481-DevPack-ENU.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/install /quiet /norestart' -Wait