Archive: How to install dotnet framework 4 (without UI)


How to install dotnet framework 4 (without UI)
Hi Everyone,

I want to install dot net framework 4 (silent installation without UI)
I have installed dotnet framework 2 by
ExecDos::exec /DETAILED '"$TEMP\MaxSqlTempDir\$sDotnetSetupPath\NetFx64.exe" /q:a /c:"install /q"'
Its working fine

But, for dotnet framework above code not working so I tried by the way
ExecDos::exec /DETAILED '"c:\dotNetFx40_Full_x86_x64.exe" /q /norestart'

it will run the dotNetFx40_Full_x86_x64.exe but will not install dotnet framework 4,
but when i run following command from command prompt
"c:\dotNetFx40_Full_x86_x64.exe" /q /norestart'
it will sucessfully installed dotnet framework 4.

Please sugest the solution or give the other way to silently install dotnet framework 4.


Thanks,
Dhiraj


Firstly there is no need to use ExecDos as that is for console applications. You can use ExecWait. Also you aren't checking the exit code (last parameter of ExecWait). That should tell you what the issue is. Perhaps you need to set a different working directory first (SetOutPath)?

Stu