Here are simple to the point methods, that will allow you to install, repair and remove the .Net Framework 4.0. My examples are specific to the latest 4.0, but can be used for previous versions as well, with minor changes.
Below are a few of the command switches I used in my scripts.
/passive = Sets passive mode; displays the progress bar to indicate that installation is in progress, but does not display any prompts or error messages to the user.
/LCID = Installs the language pack specified by LCID and forces the displayed UI to be shown in that language.
/norestart = Prevents the Setup program from rebooting automatically.
Below are examples of how to Install, Repair & Remove .NET 4.0. These can be easily modified and incorporated into any batch file.
Silent unattended installation:It’s important to include “” if there are spaces in your file path.
It is recommended to reboot the system, but for my application the reboot is handled manually and bypassed during initial setup.
“\\server\share\dotNetFx40_Full_setup.exe" /passive /norestart /LCID 1033
Silent Repair:
"%windir%\Microsoft.NET\Framework64\v4.0.30319\SetupCache\Extended\setup.exe" /repair /x86 /x64 /ia64 /parameterfolder Extended /passive /norestart
"%windir%\Microsoft.NET\Framework64\v4.0.30319\SetupCache\Client\setup.exe" /repair /x86 /x64 /parameterfolder Client /passive /norestart
Silent Removal:
"%windir%\Microsoft.NET\Framework64\v4.0.30319\SetupCache\Extended\setup.exe" /uninstall /x86 /x64 /ia64 /parameterfolder Extended /passive /norestart
"%windir%\Microsoft.NET\Framework64\v4.0.30319\SetupCache\Client\setup.exe" /uninstall /x86 /x64 /parameterfolder Client /passive /norestart
The above code can be easily incorporated into a batch file, logon script, or gpo. I hope this helps others without the need to decipher anything. If you found this helpful, please follow me.
Regards,
Joe La Placa Jr
0 comments:
Post a Comment