This article applies to Internet Explorer 9, Internet Explorer 10 and Internet Explorer 11.
Internet Explorer Silent Installation
IE 9 can be downloaded here. SourceFile = IE9-Windows7-x64-enu.exe
I’ve downloaded the English 64bit version, for Windows 7. It’s not really relevant, the command line will be the same.
PathtoSourceFile\SourceFile /quiet /update-no /norestart /log:LogFolder
Attention: the log parameter refers to the folder in which a log file will be created.
With this command line, you can safely upgrade an existing installation; no extra actions are required.
Internet Explorer Silent Uninstall (Rollback)
Uninstalling is the trickier part.
Create a batch file with the following content:
FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*~XXX.?.????.?????.mum /c “cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /norestart /quiet”
where XXX is “9”, “10” or “11”, depending on which version you need to remove.
This command line will remove the mum files belonging to the corresponding version of IE, from Windows\servicing\Packages.
The end result will be a rollback to the previous version of IE. If you’re uninstalling “11” and you had 9, then that’s what you’ll obtain. If you apply the same removal procedure for “9”, then you’ll rollback to 8 or whatever was present on the machine initially.
A reboot will be needed after each installation OR uninstall.
If, during the installation of IE, you get an error code of 40007, it means that some prerequisites (hotfixes) are missing. It can also be that they’ve just been installed, but the PC hasn’t rebooted. Reboot the machine and try the installation again.