Home All Groups Group Topic Archive Search About

Installing .net assemblies windows installer

Author
11 Nov 2006 4:53 AM
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

Author
11 Nov 2006 7:12 AM
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]


Show quoteHide quote
"steve" <ga630sf@newsgroups.nospam> schreef in bericht
news:uTceX1UBHHA.4892@TK2MSFTNGP04.phx.gbl...
> 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
>
Author
11 Nov 2006 10:56 PM
steve
Hi Michel

Thanks for the reply

Works a treat

Regards
Steve

Show quoteHide quote
"Michel Posseth [MCP]" <M***@posseth.com> wrote in message
news:OIkZmCWBHHA.996@TK2MSFTNGP02.phx.gbl...
> 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" <ga630sf@newsgroups.nospam> schreef in bericht
> news:uTceX1UBHHA.4892@TK2MSFTNGP04.phx.gbl...
>> 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
>>
>
>