Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


vinifera

cmd/bat to uninstall IE ?

23 posts in this topic

hello

don't know if its too much to ask

but does anyone know to make .bat/.cmd script that would work under both xp and win7

that would silently uninstall IE (just like user can from control panel remove it) ?

0

Share this post


Link to post
Share on other sites

Have you looked at using:

%systemroot%\ie8\spuninst\spuninst.exe

I have no idea if there are switches to make it silent or if it already does it silently.

0

Share this post


Link to post
Share on other sites

today I looked on pc that has xp and ie6

there was no such file nor any uninstall file in the folder of ie6 :/

0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
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
0

Share this post


Link to post
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

0

Share this post


Link to post
Share on other sites

darn :P

ok thanks for info

0

Share this post


Link to post
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

0

Share this post


Link to post
Share on other sites

and simple removing the exe would be damaging to OS ?

(under condition PC doesn't use win updates) ?

0

Share this post


Link to post
Share on other sites

I'm afraid you can't just remove it. It will probably come back after restart from the dll cache. fdv's approach that jaclaz mentioned of removing ie, but not removing the ie core (needed for other things) is probably the best.

http://www.vorck.com/windows/

0

Share this post


Link to post
Share on other sites

but isn't the OS shell core more from shell32.dll explorer.exe and mshtml.dll ?

and not the ie.exe itself ?

0

Share this post


Link to post
Share on other sites

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
0

Share this post


Link to post
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

0

Share this post


Link to post
Share on other sites

shortucts are not problem :)

the ie.exe is :P

0

Share this post


Link to post
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

0

Share this post


Link to post
Share on other sites

shortucts are not problem :)

the ie.exe is :P

That's not what you said in your first post!

hello

don't know if its too much to ask

but does anyone know to make .bat/.cmd script that would work under both xp and win7

that would silently uninstall IE (just like user can from control panel remove it) ?

When you uninstall from Control Panel, you are actually doing exactly that, removing 'shortcuts'.

0

Share this post


Link to post
Share on other sites

well in my defense I use win7, and win7 removes the .exe when removing it via cpanel

thought that XP did same before good people here told it does not

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.

yeh... that sucks :D

ok thanks

0

Share this post


Link to post
Share on other sites

Check if the IE .exe file is not only hidden like in WinXP with WMP.

Edited by Outbreaker
0

Share this post


Link to post
Share on other sites

if you mean on win7

no it just isn't there anymore :)

its nor hidden nor "hidden OS file",

folder only has ieinstal.exe and ielowutil.exe

while system wide anything related left is: ie4uinit.exe, IEExec.exe and ieUnatt.exe

0

Share this post


Link to post
Share on other sites

Okay then the IE uninstaller on Win7 is little bit differently than on WinXP. But i wouldn't remove any IE files manually on WinXP i tried this and i got some problems with some third-party applications.

Edited by Outbreaker
0

Share this post


Link to post
Share on other sites

my 1st idea was to simply replace iexplore.exe with either portable opera or firefox

and rename iexplore.exe to maybe iexplore1.exe

but since I don't know how system calls (based on what) the browser for shell, I guess this would be dumb idea :D

0

Share this post


Link to post
Share on other sites

although little late..

@vinifera: you might consider method 2

..maybe someone will find this useful

also you should use fdv's fileset with an enu pro version of xp

happy new year btw..

0

Share this post


Link to post
Share on other sites

question is, how different is that method of, if i just replace whatever app and rename it to iexplore.exe with original one

does for example win xp, more specific, does XP's file manager (explorer) even calls some functions directly from iexplore.exe ?

0

Share this post


Link to post
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.