Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

cmd/bat to uninstall IE ?

- - - - -

  • Please log in to reply
22 replies to this topic

#1
vinifera

vinifera

    <°)))><

  • Member
  • PipPipPipPipPip
  • 976 posts
  • Joined 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag
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) ?
If you want true Windows user experience
try Longhorn builds: 3718, 4029, 4066


How to remove advertisement from MSFN

#2
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,577 posts
  • Joined 13-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

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.

#3
vinifera

vinifera

    <°)))><

  • Member
  • PipPipPipPipPip
  • 976 posts
  • Joined 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag
today I looked on pc that has xp and ie6
there was no such file nor any uninstall file in the folder of ie6 :/
If you want true Windows user experience
try Longhorn builds: 3718, 4029, 4066

#4
cluberti

cluberti

    Gustatus similis pullus

  • Supervisor
  • 11,253 posts
  • Joined 09-September 01
  • OS:Windows 8.1 x64
  • Country: Country Flag
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.
MCTS Windows Internals, MCITP Server 2008 EA, MCTS MDT/BDD, MCSE/MCSA Server 2003, Server 2012, Windows 8
--------------------
Please read the rules before posting!
Please consider donating to MSFN to keep it up and running!

#5
vinifera

vinifera

    <°)))><

  • Member
  • PipPipPipPipPip
  • 976 posts
  • Joined 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag
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, 02 December 2012 - 06:13 PM.

If you want true Windows user experience
try Longhorn builds: 3718, 4029, 4066

#6
cluberti

cluberti

    Gustatus similis pullus

  • Supervisor
  • 11,253 posts
  • Joined 09-September 01
  • OS:Windows 8.1 x64
  • Country: Country Flag
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
MCTS Windows Internals, MCITP Server 2008 EA, MCTS MDT/BDD, MCSE/MCSA Server 2003, Server 2012, Windows 8
--------------------
Please read the rules before posting!
Please consider donating to MSFN to keep it up and running!

#7
vinifera

vinifera

    <°)))><

  • Member
  • PipPipPipPipPip
  • 976 posts
  • Joined 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag
darn :P

ok thanks for info
If you want true Windows user experience
try Longhorn builds: 3718, 4029, 4066

#8
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,852 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

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

#9
vinifera

vinifera

    <°)))><

  • Member
  • PipPipPipPipPip
  • 976 posts
  • Joined 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag
and simple removing the exe would be damaging to OS ?
(under condition PC doesn't use win updates) ?
If you want true Windows user experience
try Longhorn builds: 3718, 4029, 4066

#10
Sp0iLedBrAt

Sp0iLedBrAt

    MSFN Addict

  • MSFN Sponsor
  • 1,727 posts
  • Joined 19-March 09
  • OS:XP Pro x86
  • Country: Country Flag
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/
http://www.msfn.org/...-in-windows-xp/

#11
vinifera

vinifera

    <°)))><

  • Member
  • PipPipPipPipPip
  • 976 posts
  • Joined 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag
but isn't the OS shell core more from shell32.dll explorer.exe and mshtml.dll ?
and not the ie.exe itself ?
If you want true Windows user experience
try Longhorn builds: 3718, 4029, 4066

#12
Outbreaker

Outbreaker

    Advanced Member

  • Member
  • PipPipPip
  • 300 posts
  • Joined 08-August 07
  • OS:Windows 7 x86
  • Country: Country Flag
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, 29 December 2012 - 10:45 PM.


#13
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,577 posts
  • Joined 13-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

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


#14
vinifera

vinifera

    <°)))><

  • Member
  • PipPipPipPipPip
  • 976 posts
  • Joined 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag
shortucts are not problem :)
the ie.exe is :P
If you want true Windows user experience
try Longhorn builds: 3718, 4029, 4066

#15
bphlpt

bphlpt

    MSFN Addict

  • Member
  • PipPipPipPipPipPipPip
  • 1,826 posts
  • Joined 12-May 07
  • OS:none specified
  • Country: Country Flag
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

Posted Image


#16
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,577 posts
  • Joined 13-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

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'.

#17
vinifera

vinifera

    <°)))><

  • Member
  • PipPipPipPipPip
  • 976 posts
  • Joined 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag
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
If you want true Windows user experience
try Longhorn builds: 3718, 4029, 4066

#18
Outbreaker

Outbreaker

    Advanced Member

  • Member
  • PipPipPip
  • 300 posts
  • Joined 08-August 07
  • OS:Windows 7 x86
  • Country: Country Flag
Check if the IE .exe file is not only hidden like in WinXP with WMP.

Edited by Outbreaker, 30 December 2012 - 07:19 PM.


#19
vinifera

vinifera

    <°)))><

  • Member
  • PipPipPipPipPip
  • 976 posts
  • Joined 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag
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
If you want true Windows user experience
try Longhorn builds: 3718, 4029, 4066

#20
Outbreaker

Outbreaker

    Advanced Member

  • Member
  • PipPipPip
  • 300 posts
  • Joined 08-August 07
  • OS:Windows 7 x86
  • Country: Country Flag
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, 30 December 2012 - 08:30 PM.


#21
vinifera

vinifera

    <°)))><

  • Member
  • PipPipPipPipPip
  • 976 posts
  • Joined 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag
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
If you want true Windows user experience
try Longhorn builds: 3718, 4029, 4066

#22
mukke

mukke

    Newbie

  • Member
  • 43 posts
  • Joined 25-January 08
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..

#23
vinifera

vinifera

    <°)))><

  • Member
  • PipPipPipPipPip
  • 976 posts
  • Joined 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag
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 ?
If you want true Windows user experience
try Longhorn builds: 3718, 4029, 4066




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users