Home » Questions » Computers [ Ask a new question ]

Making an application portable - registering DLLs, and DLLs in system32

Making an application portable - registering DLLs, and DLLs in system32

I want to make an application portable (on Windows XP), so that it can run directly from a CD. The application requires some DLLs and OCXs to be registered, and some of these need to be in system32 when registered (for some reason).

Asked by: Guest | Views: 83
Total answers/comments: 1
Guest [Entry]

"I don't know why the DLL's would have to be in System32; they shouldn't have to be, it is bad practice to but application DLL's in the systems' directory.

Yes, DLL's and OCX's that expose COM object (e.g. those that need to be registered), do need to be registered and listed in the registry. However, with Windows XP and later there is registration free COM. The short explanation is that for each .DLL and .EXE you create a filename.ext.manifest file that lists all the components that it exports and uses. Unfortunately reality is more complex. See this article for a description. It is theoretically possible to come up with the information you need for the manifest files, but you will need a good understanding of COM."