Redistribution of files in the “C:\Program Files\Microsoft\Exchange Server” folder and sub-folders is not advised/supported. Yes, this does include the “C:\Program Files\Microsoft\Exchange Server\Public” folder also. These files are installed when the Exchange 2007 (or later) tools are installed. If you need these files with the minimal installation, then use the Exchange installer to install them – the box will need to be at least in an Exchange Admin role. There is no installer/redistributable which can be included with an application install – you have to run the installer for Exchange.
Files in product folder are not to be redistributed unless there is documentations saying that they may be. Please refer to the EULA (End User License Agreement) which accompanies the installer for Exchange and note the text on redistribution. Many DLLs and other files are part of a system of interdependent files and registry entries; distribution of any set of files incorrectly may likely fail at some point unless those files were designed for such distribution.
When developing using APIs which are tied to a product, it’s very important that the files of that product are not distributed unless you know that it’s safe and legal to do so –in many cases it’s not. Including product DLLs (in this case Microsoft’s) or OS DLLs (i.e. from Windows) should always be avoided. In some cases severe (unrecoverable/data damaging) problems can occur from including such components with an application install.
Here are some (not all) Exchange 2007 DLLs developers commonly ask if they can redistribute:
Here are some related links:
Find End User License Terms for Microsoft Software Licensed by Microsoft or the Computer Manufacturer
Microsoft .NET Namespaces for Exchange
Handling results of calling Power Shell – Multivalve and string arrays.
How the Runtime Locates Assemblies