Archive: How do I know wich files to add?


How do I know wich files to add?
Hi guys,

I'm new to NSIS and I'm sorry for asking this stupid question, but I really have no idea about how to discover which files should I pack with the .exe one.

I'm a linux user and, on linux there is the ldd command, wich lists the libraries a executable shares, but how do I know this for a windows program, in order to pack the files with the .exe? Say I write a program in Delphi, for instance. Wich dlls does this Delphi program use?

Could someone point me some reference or answer me this question?


Thanks for any help,
Jaú


Try a resource program to discover wich dependencies are in your main EXE.
Try Resource Tuner or PE explorer.
Although, you don't need to add the main Windows APIs :rolleyes:


Dependancy Walker is also a usefull program, can be found by searching the net.

As Lobo Lunar mentioned it is a really a very bad idea to include the files that windows installs itself. As they are different for each version of windows and copying the wrong one would seriousely screw up your PC.

Otherwise good luck and if you want to know which files to include, simply post the dependancy list and one of us will help you out. :D

Vytautas


Many thanks guys!

I'll try these programs.

Jaú