Putting dll files in subfolders in installed .NET application.


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.
 
Ad

Advertisements

W

Wilson, Phil

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
 
Ad

Advertisements

W

Wilson, Phil

This isn't an installer thing, this is about how the runtime locates
assemblies. AppDomainSetup.PrivateBinPath is the kind of thing that might
help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top