PDA

View Full Version : error when adding/removing windows components in winXP



markOS X
04-07-2002, 04:20 PM
After reading Susan B's FAQ #46, I attempted to remove messenger from my system.

Trouble is, i didn't backup C:\WINDOWS\inf\sysoc.inf before i removed the ",hide" from every line in the file, and when i went to run the add/remove windows applet from the add/remove programs control panel, it crashed with this error:

<pre>Setup was unable to open the information file 4</pre>

<pre>Contact your system administrator. The specific error code is 0x2 at line 2011806598.</pre>


This is the first time I have tried to access the add/remove windows applet, so I am not sure if this error was caused by editing the file C:\WINDOWS\inf\sysoc.inf or something else. I can post the contents of this file if anyone would like.

I have only just installed winXP pro over sunday/monday after a reformat so i don't think it is a problem from other apps, although i could be wrong here.


Any help here would be appreciated - i don't usually use this particular feature of windows but it seems a bit odd after a clean install.

Any help appreciated.

cheers,
markOS X.

Babe Ruth
04-07-2002, 07:03 PM
markOS X,

The FAQ you used was originally a comment I made. It has 2 typos in it. Here is what it is supposed to be: (Note the changes to HIDE and not removing the comma!!)

I will also post at the end of this a copy of my SYSOC.INF file but note yours would have (may have been) different but it should help you to fix the problem.

I will also get Susan B to modify the FAQ to correct this issue.

Regards, Babe.


************************************************** ********
Windows Messenger comes as part of WinXP but if you do not use this feature and wish to completely remove it from WinXp Home/Pro then do the following:

Note: The inf directory is a 'special' system directory; make sure you have enabled your explorer folder view options appropriately.

Open the file %SystemRoot%\inf\sysoc.inf

Where %SystemRoot% will point to something like C:\Windows or C:\Winnt or the wherver WinXP was installed / upgraded
The actual harddrive is pointed to by %SystemDrive%

The %SystemRoot% & %SystemDrive% system variables can be seen by going to a CMD prompt and typing SET | MORE


e.g. Open C:\WINDOWS\inf\sysoc.inf in NOTEPAD and change the line:

msmsgs=msgrocm.dll,OcEntry,msmsgs.inf,hide,7
to
msmsgs=msgro cm.dll,OcEntry,msmsgs.inf,,7

Save and Exit from Notepad.


You can then go into Control Panel | Add or Remove Programs and then use Add/Remove Windows Components to remove Messenger.

BTW If you are the more adventuous type then remove the word "HIDE" from each (all) of the lines in SYSOC.INF.

Now have a look in Add/Remove Windows Components section.


************************************************** ********


Contents of SYSOC.INF:


[Version]
Signature = "$Windows NT$"
DriverVer=07/01/2001,5.1.2600.0

[Components]
NtComponents=ntoc.dll,NtOcSetupProc,,4
WBEM=ocgen.dll,OcEntry,wbemoc.inf,hide,7
Display=desk.cpl,DisplayOcSetupProc,,7
Fax=fxsocm.dll,FaxOcmSetupProc,fxsocm.inf,,7
NetOC=netoc.dll,NetOcSetupProc,netoc.inf,,7
iis=iis.dll,OcEntry,iis.inf,,7
com=comsetup.dll,OcEntry,comnt5.inf,hide,7
dtc=msdtcstp.dll,OcEntry,dtcnt5.inf,hide,7
IndexSrv_System = setupqry.dll,IndexSrv,setupqry.inf,,7
TerminalServer=TsOc.dll, HydraOc, TsOc.inf,hide,2
msmq=msmqocm.dll,MsmqOcm,msmqocm.inf,,6
ims=imsinsnt.dll,OcEntry,ims.inf,,7
fp_extensions=fp40ext.dll,FrontPage4Extensions,fp4 0ext.inf,,7
AutoUpdate=ocgen.dll,OcEntry,au.inf,hide,7
msmsgs=msgrocm.dll,OcEntry,msmsgs.inf,hide,7
RootAutoUpdate=ocgen.dll,OcEntry,rootau.inf,,7
IEAccess=ocgen.dll,OcEntry,ieaccess.inf,,7


Games=ocgen.dll,OcEntry,games.inf,,7
AccessUtil=ocgen.dll,OcEntry,accessor.inf,,7
CommApps=ocgen.dll,OcEntry,communic.inf,HIDE,7
MultiM=ocgen.dll,OcEntry,multimed.inf,HIDE,7
AccessOpt=ocgen.dll,OcEntry,optional.inf,HIDE,7
Pinball=ocgen.dll,OcEntry,pinball.inf,HIDE,7
MSWordPad=ocgen.dll,OcEntry,wordpad.inf,HIDE,7
ZoneGames=zoneoc.dll,ZoneSetupProc,igames.inf,,7


[Global]
WindowTitle=%WindowTitle%
WindowTitle.StandAlone="*"


[Components]
msnexplr=ocmsn.dll,OcEntry,msnmsn.inf,,7


[Strings]
WindowTitle="Windows Professional Setup"
WindowTitle_Standalone="Windows Components Wizard"

markOS X
04-07-2002, 07:15 PM
thanks for that.

changed my sysoc.inf hide options to the same as in your post - completely fixed the prob.


cheers for the prompt reply,
markOS X

Babe Ruth
04-07-2002, 07:19 PM
markos x,

What can I say - I humbly apologise for any grief it caused.

Cheers, Babe.

markOS X
04-07-2002, 07:21 PM
on a side note,

try this trick from rjayco.com (http://www.rjayco.com/webos/archives/031602.html):

A lot of people want to know how to remove the
MSN Messenger service from XP here's how:
Locate SYSOC.INF in the \Windows\INF folder (hidden file and folder), Open it in Notepad and locate the line: msmsgs=msgrocm.dll,OcEntry,msmsgs.inf,hide,7 Remove the word "hide" from the line and save the file. You will now have an entry in add/remove programs. Do what you will :)

Start, Run and enter GPEDIT.MSC
Computer Configuration > Administrative Templates
> Windows Components > Windows Messenger
You can now modify whether it starts initially
and/or whether it's to run at all.

it may do the same thing (i haven't tried it, so i can't endorse it).