PDA

View Full Version : Run an exe that depends on dll.



eldada
05-25-2003, 05:23 AM
I want to use the exec bean to run an exe on windows which is dependant on a dll.
How do I add the dll to the setup and load it when needed?

CharlesW
05-30-2003, 09:18 AM
Typically, if an executable has a dependency on a DLL, then the DLL will have to be registered (if self registering), or it will have to be in a specific location relative to the executable. Of course the exec action bean only allows you to bundle one executable file. To solve this problem, you either need to install the dll and exe using a files bean, and then launch the exe after the install action, or you can create a single self extracting executable with the required files, and then bundle this executable with the exec action bean. To create the single self extracting executable, you can use an application called Package For the Web, which is available at no charge from InstallShield. You can download this application from the following URL:

http://www.installshield.com/downloads/default.asp?pm=webpftw&gv=1&msxmlhidden=y&mode=submit