Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

File dependance in Custom Action


1 reply to this topic

daner06

daner06
  • Full Members
  • 14 posts

Posted 21 October 2008 - 15:34

In a basic msi project, I have a dot net CA witch call a method dot net. But my dll require a file dependance. How can I put my file dependance?

I have InstallShield 2009 (version 15) with SP2.

Thanks in advance.


Daniel Luxembourger

Edited by daner06, 21 October 2008 - 15:34.


Zweitze

Zweitze
  • Full Members
  • 522 posts

Posted 22 October 2008 - 07:50

You can't.

You have two options:
1. Link in the file dependencies statically, so the libs are included in your DLL, and the other DLL is no longer necessary.
2. Write a new DLL with one function. That function extracts all required DLLs from the Binary table, puts them in a temporary folder, and then calls the required function. Obviously this DLL should have no dependencies.

The first option is the easiest method, but when you cannot get to the sources of the dependant DLL you'll stuck with the second.