When creating an installation package that determines what files must be installed, use the Visual Studio 6.0 Dependency Walker Utility. This utility comes with Visual Studio and can be found in the Microsoft Visual Studio 6.0 Tools section of the startup menu under Microsoft Visual Studio 6.0.
To use this utility, select File->Open from the menu and open a DLL, OCX, or EXE file. On the left splitter window you’ll see a tree structure of all file dependencies. If the opened file depends on a file that is not located on the machine, the dependent file will be designated with a pink icon.
In this manner, you can step through all files in your application and make sure you distribute all dependent files.