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

DLL dependence


3 replies to this topic

Daeron

Daeron
  • Full Members
  • 2 posts

Posted 22 June 2007 - 10:01

I use IsntallShield 12 PE.
My project contain CA MSI Type 1, that call DLL function. CA will execute after some initial windows (after SetupType). But DLL requered another DLL to work properly. Dependece scaner not found any dependence.
What I shoud do to solve this problem? So, I understand, that requered DLL must be copied before CA call, but how?

Sorry for bad English.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 23 June 2007 - 11:28

If at all possible, avoid such dependencies. Better link any dependencies statically to your DLL. If that's not possible, you would have to use a custom action to copy the dependency, or put both files in the Support Files view which will extract them to a tempo location during setups initialization.

Daeron

Daeron
  • Full Members
  • 2 posts

Posted 25 June 2007 - 09:51

QUOTE (Stefan Krueger @ 2007-06-23 11:28)
... put both files in the Support Files view which will extract them to a tempo location during setups initialization.

I can't link library staticaly. If I place both files into Support Files view, how I shoud link custom actions to this DLL? If I try do it from IDE, I obtain message, that filename is incorrect. I try write something like <SUPPORTDIR>\install_dll.dll, and obtain error message:
---------------------------
InstallShield 12
---------------------------
Invalid file name entered. Make sure you specify a valid file name.
---------------------------
ОК
---------------------------
May be I shoud set this property (DLL filename) at run time?

The job, that I shoud do is a checking/validating DBMS parameters, that user place into editform.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 25 June 2007 - 10:00

This article might help:
HOWTO: Launch an Executable from the Support Files Location
http://support.insta...ticleid=Q111411