Jump to content

cmd/bat to uninstall IE ?


Recommended Posts


  • 2 weeks later...

If you want to remove inbox components (like IE6 on XP), you have to use tools like nLite. IE is, in and of itself, not an uninstallable component. You can upgrade it (for example, IE8 on XP from IE6), and you can remove said upgrades, but removing the browser is not natively possible. There are tools (like nLite) available to remove components, but those carry with them the risks of potentially breaking your installation if you go too far, of course.

Link to comment
Share on other sites

well I know you can't remove everything as mshtml must stay

but when user "removes" ie via cpanel then it removes .exe and whatever is tied with .exe

this is what I'm after for :P

Edited by vinifera
Link to comment
Share on other sites

That can be done on Windows Vista/Server 2008, Windows 7/Server 2008R2, or Windows 8/Server 2012, but not on XP. To do this on XP or 2003, you need nLite.

http://support.microsoft.com/kb/957700

Well, not really.

nlite does remove things at installation, not after it.

And then if you want a true IE-less XP you could use FdV's (Fred De Vorck) approach/inf's, etc.

To clarify, these methods "prevent install", do not "uninstall".

Possibly the Commercial XPlite would do "after install".

jaclaz

Link to comment
Share on other sites

  • 4 weeks later...

Don't remove any Internet Explorer files because various Windows components and third-party applications rely upon Internet Explorer code.

Here is a batch script to uninstall it over the control panel (Tested on WinXP):

@ECHO OFF

ECHO.
ECHO Uninstalling Internet Explorer...
SET WC="%Temp%\WC_Uninstall_Config.txt"
ECHO [components]> %WC%
ECHO IEAccess = Off>> %WC%
sysocmgr /i:"%WINDIR%\inf\sysoc.inf" /u:"%Temp%\WC_Uninstall_Config.txt"
DEL "%Temp%\WC_Uninstall_Config.txt"
ECHO Done

pause
EXIT

http://itk.samfundet.no/dok-filer/ms-xp-sp2-deployment-ref/u_components.htm

Edited by Outbreaker
Link to comment
Share on other sites

As above, just shortened:

@(ECHO/[Components]&ECHO/IEAccess=off)>"%TEMP%\_$.TXT"
@SYSOCMGR /i:"%SYSTEMROOT%\INF\SYSOC.INF" /u:"%TEMP%\_$.TXT"
@DEL "%TEMP%\_$.TXT"

Remember that this doesn't remove IE just removes the default visible 'shortcuts' to it.

If sysocmgr only parses specific sections of the answer file, the following script which doesn't write to a file may prove useful:

@SYSOCMGR /i:"%SYSTEMROOT%\INF\SYSOC.INF" /u:%0
@GOTO :EOF
[Components]
IEAccess=off

Link to comment
Share on other sites

You're probably better off either using FDV's files or just removing all shortcuts to ie.exe. Regardless of MS's assurances to the contrary, I believe that IE ended up so deeply embedded in the OS, and then being depended on by other third-party apps, that trying to just hack it out could end up causing you problems down the road depending on what other software you end up running in the future. Just a thought.

Cheers and Regards

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...