Today when I was trying to fix up my brother's IBM ThinkPad, I finally decided to give it a reinstall of Win XP as that will take less time than fixing it up. But then CD drive was not being detected. A quick check in Device Manager shows that Device Drivers are corrupted and I was unable to install them (Gave an error code 39). So I googled around & found a pretty easy solution which I am going to share with you and also will come back here incase I need it again in the future.
You just need to fix that error.
Create a .reg file with the following contents
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}]
"UpperFilters"=-
"LowerFilters"=-
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdr4_2K]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdralw2k]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdudf]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UdfReadr]
Just double click to open this registry file. It will ask for a confirmation if you really want to add the entries into the registry and there you go. Give it a restart and your drive will no show up and work fine.
Thanks to the source.