views:

426

answers:

2

I’m looking for a way to deploy a system DLL within my ActiveX CAB file. CAB cannot update system file and whole installation fails. Perfectly, I would like to copy the DLL into ActiveX installation folder.

My best suggestion (I didn’t try it yet) is using INF file hooks with some standalone installer, but I wonder is there another way?

Any other ideas will be appreciated…

A: 

Pack your dll in as a resource of the main ActiveX control. Use your own code to write it to a file.

The malware industry has lots of experience doing this, and example code should be available.

Marsh Ray
I decided to refuse Win2K supporting, but this answer looks more promising…
Eugene
A: 

You can install the dll into the ActiveX installation folder and dynamically load the dll (using LoadLibrary) and its methods (using GetProcAddress).
This way you will be able to control from where to load the dll and use your local copy instead of the system.

Shay Erlichmen
I can install DLL to ActiveX installation folder only with standalone installer (.msi, *.exe). In this case all should work even without late binding.But the question is how to do it from CAB file? CAB has DestDir key, but it’s value is one of the system locations.BTW, I suppose I’m using MiniDumpWriteDump from dbghelp.lib, which has dependence to dbghelp.dll.
Eugene