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

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

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.