Putting dll files in subfolders in installed .NET application.

  • Thread starter Thread starter michau
  • Start date Start date
M

michau

Hi, I have created a VB application in VS2008. I used a Setup and
Deployment project to create a setup project for MyApplication.
MyApplication also uses external dll files.

Now, after I install MyApplication using the installer it gets
installed OK on my machine and I have MyApplication folder and in it a
MyApplication.exe. I would like to be able to separate out all
neccessary dll files into various subfolders, depending on the vendor.
However if I do that, MyApplication throws a runtime exception as it
can't find the libraries. It only seems to work if the dll files are
placed in the root folder of the application.

Does anyone know if there is a way to configure the installer project,
to cause the MyApplication.exe file to search for dlls also in chosen
by me subfolders?

Thanks, Michal.
 
This isn't an installer thing, this is related to how the runtime locates
assermblies. The kind of thing that might help is
AppDomainSetup.PrivateBinPath
 
This isn't an installer thing, this is about how the runtime locates
assemblies. AppDomainSetup.PrivateBinPath is the kind of thing that might
help.
 
Back
Top