- Home
- Windows XP
- Error messages
- Error "Setup library comsetup.dll could not be loaded" while opening Add/Remove Windows Components
Error "Setup library comsetup.dll could not be loaded" while opening Add/Remove Windows Components
- Copyright © 2008 Ramesh Srinivasan
- Error messages
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.
Related Articles
If you enjoyed this post, make sure you
subscribe to our RSS feed!
We feature Tips, Troubleshooting information, Scripts and Utilities for Microsoft Windows Operating Systems!
Prefer an E-mail subscription?
