Question

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…

Was it helpful?

Solution

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.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top