MSFN Forum: cmd/bat to uninstall IE ? - MSFN Forum

Jump to content


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

cmd/bat to uninstall IE ? Rate Topic: -----

#1 User is offline   vinifera 

  • <°)))><
  • PipPipPipPip
  • Group: Members
  • Posts: 584
  • Joined: 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 22 November 2012 - 12:38 PM

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) ?


#2 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,364
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 22 November 2012 - 01:06 PM

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 User is offline   vinifera 

  • <°)))><
  • PipPipPipPip
  • Group: Members
  • Posts: 584
  • Joined: 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 02 December 2012 - 02:06 PM

today I looked on pc that has xp and ie6
there was no such file nor any uninstall file in the folder of ie6 :/

#4 User is offline   cluberti 

  • Gustatus similis pullus
  • Group: Supervisor
  • Posts: 11,208
  • Joined: 09-September 01
  • OS:Windows RT
  • Country: Country Flag

Posted 02 December 2012 - 02:11 PM

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.

#5 User is offline   vinifera 

  • <°)))><
  • PipPipPipPip
  • Group: Members
  • Posts: 584
  • Joined: 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 02 December 2012 - 06:13 PM

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

This post has been edited by vinifera: 02 December 2012 - 06:13 PM


#6 User is offline   cluberti 

  • Gustatus similis pullus
  • Group: Supervisor
  • Posts: 11,208
  • Joined: 09-September 01
  • OS:Windows RT
  • Country: Country Flag

Posted 02 December 2012 - 07:14 PM

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

#7 User is offline   vinifera 

  • <°)))><
  • PipPipPipPip
  • Group: Members
  • Posts: 584
  • Joined: 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 02 December 2012 - 08:10 PM

darn :P

ok thanks for info

#8 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,456
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 03 December 2012 - 06:02 AM

View Postcluberti, on 02 December 2012 - 07:14 PM, said:

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 User is offline   vinifera 

  • <°)))><
  • PipPipPipPip
  • Group: Members
  • Posts: 584
  • Joined: 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 03 December 2012 - 08:12 AM

and simple removing the exe would be damaging to OS ?
(under condition PC doesn't use win updates) ?

#10 User is offline   Sp0iLedBrAt 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,710
  • Joined: 19-March 09
  • OS:XP Pro x86
  • Country: Country Flag

Posted 03 December 2012 - 09:11 AM

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 User is offline   vinifera 

  • <°)))><
  • PipPipPipPip
  • Group: Members
  • Posts: 584
  • Joined: 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 29 December 2012 - 09:03 PM

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

#12 User is offline   Outbreaker 

  • Member
  • PipPip
  • Group: Members
  • Posts: 281
  • Joined: 08-August 07
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 29 December 2012 - 10:26 PM

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..._components.htm

This post has been edited by Outbreaker: 29 December 2012 - 10:45 PM


#13 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,364
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 30 December 2012 - 04:47 AM

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 User is offline   vinifera 

  • <°)))><
  • PipPipPipPip
  • Group: Members
  • Posts: 584
  • Joined: 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 30 December 2012 - 02:39 PM

shortucts are not problem :)
the ie.exe is :P

#15 User is offline   bphlpt 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,082
  • Joined: 12-May 07

Posted 30 December 2012 - 02:46 PM

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

#16 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,364
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 30 December 2012 - 03:00 PM

View Postvinifera, on 30 December 2012 - 02:39 PM, said:

shortucts are not problem :)
the ie.exe is :P

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

View Postvinifera, on 22 November 2012 - 12:38 PM, said:

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 User is offline   vinifera 

  • <°)))><
  • PipPipPipPip
  • Group: Members
  • Posts: 584
  • Joined: 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 30 December 2012 - 03:37 PM

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


View Postbphlpt, on 30 December 2012 - 02:46 PM, said:

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

#18 User is offline   Outbreaker 

  • Member
  • PipPip
  • Group: Members
  • Posts: 281
  • Joined: 08-August 07
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 30 December 2012 - 07:19 PM

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

This post has been edited by Outbreaker: 30 December 2012 - 07:19 PM


#19 User is offline   vinifera 

  • <°)))><
  • PipPipPipPip
  • Group: Members
  • Posts: 584
  • Joined: 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 30 December 2012 - 07:31 PM

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

#20 User is offline   Outbreaker 

  • Member
  • PipPip
  • Group: Members
  • Posts: 281
  • Joined: 08-August 07
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 30 December 2012 - 08:18 PM

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.

This post has been edited by Outbreaker: 30 December 2012 - 08:30 PM


Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy