cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
varunAdb
Level 4

custom action dll dependencies

Hi all,

Suppose i have a custom action dll that is dependent on another dll. how to we incorporate this in installer. the dependent dll is load-time linked. placing this dll in support files does not appear to help.

Regards
Labels (1)
0 Kudos

(3) Replies
Cary_R
Level 11

Hi There,

Generally, if the custom action is in the Binary table, that means it will be running from %TEMP%, and SUPPORTDIR is a subfolder of %TEMP%, so this won't work.

My first response would be to statically link the custom action *.dll. Failing that you could always install the dependency to System32/%TEMP% as a prerequisite.
0 Kudos
Kelter
Level 10

Call UseDll() on the dependencies first. When you load the dll that depends on another dll, if that dependency is already mapped in to the custom action process' memory space, then there will be no problem loading the dependency.
0 Kudos
varunAdb
Level 4

Thanks All,
i solved the issue by setting the path variable to supportdir, for that process through another dll, and then using the above dll. 🙂

Regards
0 Kudos