If You want to implement Dot.NET framework 4.0 using SCCM 2012 you have whole workaround on MSDN site. But something can go wrong. Where is catch?
Here we go.
First of all you must create package in SCCM 2012. When you creating package for deployment, you will be prompted to create a program. During program creation You are asked for command line . Of course You want to install Dot.NET framework without user interference. So switches is needed.
When I Google it i find this syntax on MSDN site:
dotNetFx40_Full_x86_x64.exe /q /norestart /ChainingPackage ADMINDEPLOYMENT
But installation ended up with error. Trying to troubleshoot is not giving any result.
So I just change syntax to:
and after that deployment ended successfully.
My conclusion is: Use just needed switches, Try not to COPY/PASTE from other solutions