Discussion:
deploy dll in subfolder
(too old to reply)
unknown
2009-12-16 06:11:06 UTC
Permalink
I have a plugin dll, with References to 3 other dlls. I'd like these in a subfolder under the folder with the main dll, but cannot figure out how in the install project part of the solution. Thanks...


Submitted via EggHeadCafe - Software Developer Portal of Choice
Handy REGEX expression for HTML Tag cleaning
http://www.eggheadcafe.com/tutorials/aspnet/2dd44051-6259-41c5-8d82-b34e3387e958/handy-regex-expression-fo.aspx
Wilson, Phil
2009-12-17 17:43:18 UTC
Permalink
Setup projects have a File System view listing folders - if you right-click
on the main one you can add another. Is that what you mean? Then you just
add the Dll to that subfolder.
--
Phil Wilson
The Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972
Post by unknown
I have a plugin dll, with References to 3 other dlls. I'd like these in a
subfolder under the folder with the main dll, but cannot figure out how in
the install project part of the solution. Thanks...
Submitted via EggHeadCafe - Software Developer Portal of Choice
Handy REGEX expression for HTML Tag cleaning
http://www.eggheadcafe.com/tutorials/aspnet/2dd44051-6259-41c5-8d82-b34e3387e958/handy-regex-expression-fo.aspx
unknown
2009-12-18 01:34:55 UTC
Permalink
Phil -

Thanks, I did that, I guess I did not word my question totally correctly. It does install them in the subfolder, but when I run the app, I get the:

"Could not load file or assembly 'Control_Name, Version=0.0.0.0, Culture=Neutral, PublicKeyToken=efjdiekjffj' or one of its dependencies. The system could not find the file specified."

So, I guess my real issue is how to configure this when I'm developing. I have tried to mirror the install dirs, so I do have a subdirectory in my project named the same as the dir will be when installed, and the reference dlls are in there, but it's obviously not correct. Thanks...



Wilson, Phil wrote:

Setup projects have a File System view listing folders - if you right-clickon
17-Dec-09

Setup projects have a File System view listing folders - if you right-click
on the main one you can add another. Is that what you mean? Then you just
add the Dll to that subfolder.
--
Phil Wilson
The Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972

Previous Posts In This Thread:


Submitted via EggHeadCafe - Software Developer Portal of Choice
Build a Windows XP "Site Changer" IIS Utility
http://www.eggheadcafe.com/tutorials/aspnet/86d5b18d-871d-4d68-929c-1f91b38ffb58/build-a-windows-xp-site.aspx
unknown
2009-12-18 01:37:00 UTC
Permalink
That's weird, I cannot see my quoted paragraph. Here is is again -

Could not load file or assembly 'ControlNameHere, Version=x.0.0.0, Culture=neutral, PublicKeyToken=e444157244638e02' or one of its dependencies. The system cannot find the file specified.




Richard Brust wrote:

deploy dll in subfolder
17-Dec-09

Phil -

Thanks, I did that, I guess I did not word my question totally correctly. It does install them in the subfolder, but when I run the app, I get the:

"Could not load file or assembly 'Control_Name, Version=0.0.0.0, Culture=Neutral, PublicKeyToken=efjdiekjffj' or one of its dependencies. The system could not find the file specified."

So, I guess my real issue is how to configure this when I'm developing. I have tried to mirror the install dirs, so I do have a subdirectory in my project named the same as the dir will be when installed, and the reference dlls are in there, but it's obviously not correct. Thanks...

Previous Posts In This Thread:


Submitted via EggHeadCafe - Software Developer Portal of Choice
Bamboo Prevalence Redux: BAMBlog Blogger App
http://www.eggheadcafe.com/tutorials/aspnet/15f5a93c-9287-4860-aab0-d56baee5f2b0/bamboo-prevalence-redux.aspx
Wilson, Phil
2009-12-18 17:40:40 UTC
Permalink
If you client exe is in one folder then it will not locate a dependent
assembly in another location. That's the way private assemblies work. So if
you want dependent assemblies in a subfolder of the client app you can use
privatebinpath in a config file, something like this:

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin;bin2\subbin;bin3"/>
</assemblyBinding>
</runtime></configuration>
--
Phil Wilson
The Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972
Post by unknown
Phil -
Thanks, I did that, I guess I did not word my question totally correctly.
"Could not load file or assembly 'Control_Name, Version=0.0.0.0,
Culture=Neutral, PublicKeyToken=efjdiekjffj' or one of its dependencies.
The system could not find the file specified."
So, I guess my real issue is how to configure this when I'm developing. I
have tried to mirror the install dirs, so I do have a subdirectory in my
project named the same as the dir will be when installed, and the
reference dlls are in there, but it's obviously not correct. Thanks...
Setup projects have a File System view listing folders - if you right-clickon
17-Dec-09
Setup projects have a File System view listing folders - if you right-click
on the main one you can add another. Is that what you mean? Then you just
add the Dll to that subfolder.
--
Phil Wilson
The Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972
Submitted via EggHeadCafe - Software Developer Portal of Choice
Build a Windows XP "Site Changer" IIS Utility
http://www.eggheadcafe.com/tutorials/aspnet/86d5b18d-871d-4d68-929c-1f91b38ffb58/build-a-windows-xp-site.aspx
Loading...