Winhelponline.com - http://www.winhelponline.com
Error "Setup library comsetup.dll could not be loaded" while opening Add/Remove Windows Components
http://www.winhelponline.com/articles/34/1/Error-Setup-library-comsetupdll-could-not-be-loaded-while-opening-AddRemove-Windows-Components.html
By Ramesh Srinivasan
Published on 
 
Error Setup library comsetup.dll could not be loaded, or function OcEntry could not be found.

Error "Setup library comsetup.dll could not be loaded" while opening Add/Remove Windows Co

Symptom

When you click the "Add/Remove Windows Components" button in Add or Remove Programs, the following error message is displayed:

Setup library comsetup.dll could not be loaded, or function OcEntry could not be found.

When you press OK, the following error is seen:

The application could not be initialized.

Cause

This error occurs if the file comsetup.dll is missing from the C:\Windows\system32\setup folder.

Resolution

Method 1

The DllCache folder maintains a copy of comsetup.dll file. So, you can copy the file to the following location:

C:\Windows\System32\setup

Note that the DLLCache folder is located at:

C:\Windows\system32\dllcache

Method 2 - Extract comsetup.dll from Windows XP CD

  • Insert the Windows XP CD in the drive.
  • Click Start, Run and type CMD
  • In the Command Prompt, type the following command:

expand X:\i386\comsetup.dl_ -r c:\windows\system\setup

Where X:\ is your CD-ROM drive letter. The above command assumes Windows is installed in C:\ drive. If not, change the drive letter accordingly.