regsvr32 returned exit code 5 (and 4)
Two of the files that I am attempting to self reg show up in the log with
wrn, error unregistering <path>\filename1.dll - regsvr32 returned exit code 5
wrn, error unregistering <path>\filename2.dll - regsvr32 returned exit code 4
I looked these up in WinError.h as
// The system cannot open the file.
#define ERROR_TOO_MANY_OPEN_FILES 4L
// Access is denied.
#define ERROR_ACCESS_DENIED 5L
However both of these files look fine in dependency walker and, they register and unregester fine with I run regsrv32 on them myself.
(Duplicate post; follow-up here.)
Errorcode 5 InstallShield.
I solved the problem by entering de registry (regedit) and deleted everything with "InstallShield". It's a lot and it will take some time. After that I deleted everything what is possible in "C:\Program Files\Common Files\InstallShield". Then I restarted the computer and delete the rest of "C:\Program Files\Common Files\InstallShield. It works! At last I used CCleaner to clean the registry.