PDA

View Full Version : Problem with dependenties files


satriano
10-05-2007, 01:10 PM
When I Add the dependenties files of vb6 (ADD+ module vb6 runtime files)
why cannot the necesary runtimes befound on some computers ?

What can I do to be sure that the components will certainly be copied to the computer of destination ?

thanks
satriano

Winsteps
10-05-2007, 05:30 PM
How about explicitly including all the dll's and ocx's that your software needs in the installation setup? You can find out what they are by profiling your software with "depends.exe" - a Microsoft product probably already installed on your computer.

satriano
10-06-2007, 05:34 AM
No I do not have this program on my system.

If I know which dll and ocx are necessary for my program, how / where do I have to put them in the setup in setup factory?

Winsteps
10-06-2007, 06:22 AM
Here's one procedure .....
Download Depends.exe from http://www.dependencywalker.com/. Install and launch it.
Specify your own program and then click on "Profile".
In the Depends.exe output, identify the modules specific to your project (e.g., all the .ocx and the VB6 related .dll, but not Windows-general ones like user32.dll). One of my projects needs:
In %SysDir%: richtx32.ocx, MSCOMTL.OCX, MSCHRT20.OCX, MSCOMCT2.OCX, COMDLG32.OCX, OleAut32.dll, OlePro32.dll, MSVBM60.DLL, and in %AppDir%, some application-specific OCX and EXE files.
Then add these modules to your Setup exactly like your regular modules.
Install the modules into the folders where Depends.exe found them: %AppDir% or %SysDir% or ...
The "File Properties" are "Never overwrite existing file". and under "Advanced", click on the "magnifying glass" next to "DLLRegisterServer" to specify self-registration (if possible).

satriano
10-06-2007, 09:39 AM
Since with depends.exe there is too much confusion of components, I wanted to ask:

IF I find in other way the necessary components (OCX and DLL) you can explain step for step how to add them to the setup?
Let's do like I already have all the components.

I have tried but if then specific in phase of setup %SysDir% when it installs error saying that it can't create the directory.

Thanks

Winsteps
10-06-2007, 05:18 PM
OK - my apologies. It depends on what version of Setup Factory you are running and how you have it configured. You probably need: %SystemFolder% - please check your documentation for the "system folder", "system directory" or such like.

satriano
10-07-2007, 02:17 AM
Yes ! I had to use %SystemFolder% !!!!
OK

I hope that the components will also be registred if necessary.

Thanks!

pww
10-07-2007, 04:48 AM
I hope that the components will also be registred if necessary.


SF does not auto detect what has to be registered.
For the files that need registration, go to Advanced tab of the file properties window (right click the file to go to properties) and check the box 'Register COM interfaces'.