Installing .net assemblies windows installer

S

steve

Hi All

I have some application which I install to clients computers using a vb.net
setup and deployment project

For some .net assemblies (not part of the GAC) I want to install them to a
subfolder under my program folder to make the main folder less cluttered

I install them to \DLLs folder as part of the windows installer setup

Some assemblies I have found have to be in the same folder as the
program.exe otherwise I get an error when running the program that it could
not be found.

Others are OK

Is it acceptable to locate them in a subfolder of the main program on the
clients computer or should I put them in the same folder as the .exe?

Regards
Steve
 
M

Michel Posseth [MCP]

Hello Steve ,

You can put the dll`s in a sub folder however you must then put a section in
the config file

there are more elements to use for this but i guess that probing is the most
apropriate in your situation

Specifies application base subdirectories to search for assemblies

<probing privatePath="paths"/>

Example :

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin;bin2\subbin;bin3"/>
</assemblyBinding>
</runtime>
</configuration>


Regards

Michel Posseth [MCP]
 
S

steve

Hi Michel

Thanks for the reply

Works a treat

Regards
Steve

Michel Posseth said:
Hello Steve ,

You can put the dll`s in a sub folder however you must then put a section
in the config file

there are more elements to use for this but i guess that probing is the
most apropriate in your situation

Specifies application base subdirectories to search for assemblies

<probing privatePath="paths"/>

Example :

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin;bin2\subbin;bin3"/>
</assemblyBinding>
</runtime>
</configuration>


Regards

Michel Posseth [MCP]


steve said:
Hi All

I have some application which I install to clients computers using a
vb.net setup and deployment project

For some .net assemblies (not part of the GAC) I want to install them to
a subfolder under my program folder to make the main folder less
cluttered

I install them to \DLLs folder as part of the windows installer setup

Some assemblies I have found have to be in the same folder as the
program.exe otherwise I get an error when running the program that it
could not be found.

Others are OK

Is it acceptable to locate them in a subfolder of the main program on the
clients computer or should I put them in the same folder as the .exe?

Regards
Steve
 

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