.NET FX 3.0: the magic command line is: Dotnetfx3.exe /q
See this white paper for more details.

If you are still on .NET Fx 2.0, the command is:  Dotnetfx.exe /q:a /c:”install /q”
And you can find more out here.

Orginal post - Silent install of the .NET Framework