How do I make .NET Framework 3.5 SP1 install quietly?

6

2

I am trying to install, as part of my chained bootstrapper installation project, .NET Framework 3.5 SP1. But, when you run the installer, even by itself, with /q /norestart, it is anything but quiet. I would expect no user interface, yet I get presented with the following:

enter image description here

Is there any way to actually make it quiet? I've looked at other threads on Stack and elsewhere, and they all seem to imply that this would be the way to make the installation take place quietly, yet it doesn't.

Note: I know, in the command prompt screenshot I used \, but even with /, same thing.

Note: I've tried both the full and not-full versions of the .NET Framework 3.5 SP1 redistributable; same thing.

Alexandru

Posted 2014-09-29T21:18:25.200

Reputation: 425

Are you sure your dotnetfx35setup.exe is the .NET installer? – mynetx – 2014-09-29T21:52:34.163

Answers

4

.Net 3.5 is already part of Windows 8, so the installer doesn't work. You can use DISM to install .Net 3.5:

DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\sources\sxs

magicandre1981

Posted 2014-09-29T21:18:25.200

Reputation: 86 560

DISM /Online /Enable-Feature /FeatureName:NetFx3 /All worked for me. Thanks! – Alexandru – 2014-09-30T13:09:14.343

I think it also automatically installs the latest SP level for that framework version as well, with the above command I linked. Just checked the registry for the SP value under HKLM\SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.5 and it is set to 1. – Alexandru – 2014-09-30T13:12:39.793

DISM /Online /Enable-Feature /FeatureName:NetFx3 /All downloads the files from the Internet which may not work all the time. And since Windows 7 the .Net 3.5 is at Sp1 level. – magicandre1981 – 2014-09-30T15:56:39.570

Yeah, but its better than /Source:d:\sources\sxs...getting the sources and making them available isn't exactly a walk in the park. – Alexandru – 2014-09-30T16:12:38.497

-1

The /q option is the correct one (/q, not \q):

dotnetfx35.exe /lang:ENU /q

This syntax is used in winetricks and it installs .NET correctly (see: load_dotnet35sp1()).

If it doesn't, make sure you've the right version of the dotnetfx35.exe file.


AutoHotKey

Alternatively you can use AutoHotKey to automate any installer wizzard.

Here is the example taken from winetricks:

SetTitleMatchMode, 2
run, dotnetfx35.exe /lang:ENU /q

Loop
{
    sleep 1000
    ifwinexist,, cannot be uninstalled
    {
        WinClose,, cannot be uninstalled
        continue
    }
    Process, exist, dotnetfx35.exe
    dotnet_pid = %ErrorLevel%
    if dotnet_pid = 0
    {
        break
    }
 }

kenorb

Posted 2014-09-29T21:18:25.200

Reputation: 16 795

this installer doesn't work for Windows 8.x or Windows 10. look for the used windows tags in the question, first. – magicandre1981 – 2017-11-09T15:29:56.010

-1

Try calling the installer with these parameters:

dotnetfx35setup.exe /qb /norestart

Also, make sure all setup packages are not missing, you can use .NET Framework 3.5 SP1 full install package.

mynetx

Posted 2014-09-29T21:18:25.200

Reputation: 291

Have you actually had success with this? What OS version are you using? /qb won't work for me. I'm on Windows 8.1 x64. – Alexandru – 2014-09-29T22:28:05.010

I haven't had a chance to test, since I'm running Windows 8.1 and have .NET 4.0 installed. – mynetx – 2014-09-29T22:28:51.873

Neither /q or /qb work for me. I still get the dialog as per the OP. – Dib – 2017-08-30T11:16:47.223