Unable to install .NET Framework 4.8 in silent mode

Brandon Ho 376 Reputation points
2022-06-02T22:54:03.123+00:00

Hi,
I am unable to install .NET Framework 4.8 offline installer via silent mode. I used Admin CMD with "ndp48-x86-x64-allos-enu.exe /q /norestart" command to install. It won't install and stuck in End User Accept License area. I knew this is because I removed /q option to run again and it stated on EULA.

Is there a command option to accept EULA so that we can install it in silent mode?

Thanks,
Brandon.

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,131 questions
{count} votes

Accepted answer
  1. Kniesel, Michael 75 Reputation points
    2023-07-19T04:44:31.3533333+00:00

    you would need to use the following as that is the EULA Page that is coming up and requires the box to be 'checked' before continuing the installation

    ndp48-x86-x64-allos-enu.exe /passive (or /quiet) /AcceptEULA /norestart

    0 comments No comments

6 additional answers

Sort by: Most helpful
  1. Sarkis Abadzhyan 0 Reputation points
    2023-03-16T18:17:24.8366667+00:00

    I'm having the same issues, tried everything, cant get passed the ULA. help!

    Brandon, did you get this to work?

    0 comments No comments

  2. Hoeger, Dan 0 Reputation points
    2024-05-03T16:52:35.2966667+00:00

    Here is some powershell that I have that works to fully download and install the .Net 4.8 developer pack.

    # install the .Net 4.8 developer pack

    $firstUrl="https://dotnet.microsoft.com/en-us/download/dotnet-framework/thank-you/net48-developer-pack-offline-installer"

    $installFile="ndp48-devpack-enu.exe"

    # get the developerpack download content page

    Write-Host "Getting The Direct Download link from $firstUrl"

    $HTML = Invoke-WebRequest -Uri $firstUrl -UseBasicParsing -SessionVariable session

    # find the direct download link from that page

    $url = $HTML.Links | Where-Object {$_.onclick -eq "recordmanualdownload()"}|Select-Object -ExpandProperty href

    If(-Not $url)

    {

    Write-Error "Could not find the Manual Download link for $firstUrl"

    Exit 1

    }

    Write-Host "downloadLink=$url"

    # download the actual EXE and save it

    Write-Host "Downloading to $installFile"

    Invoke-WebRequest -Uri "$url" -OutFile $installFile

    if (-Not (Test-Path $installFile)) {

    Write-Error "Downloaded $installFile file could not be located"

    Exit 1

    }

    $installarguments = '/msioptions "AGREETOLICENSE=yes ACCEPTEULA=Yes" /norestart /passive /qb'

    Write-Host "Executing $installFile $installarguments"

    Start-Process -Wait -FilePath $installFile -ArgumentList $installarguments -Verb RunAs

    rm $installFile

    0 comments No comments