[Deployment] Put the required DLL's in a separate bin folder
[Deployment] Put the required DLL's in a separate bin folder
Hello,
I'm currently developing the Wix Setup for an application using GDPicture.PDF. I see I have to distribute the following DLL with the .exe file in order to get my application to work correctly :
- GdPicture.NET.10.filters.dll and GdPicture.NET.10.filters.64.dll
- GdPicture.NET.10.image.gdimgplug.dll and GdPicture.NET.10.image.gdimgplug.64.dll
Currently they're lying in under the root of my application's folder and everything's working fine. I tried (silly me) putting them in "MyApplicationFolder\Bin" folder, but it's not working anymore. Is there a way to tell GdPicture to use the dll's from the specified path? The rest of the DLL are signed .Net DLL which are embedded in the .exe file, so I don't have this problem with these.
Let me know, thanks!
I'm currently developing the Wix Setup for an application using GDPicture.PDF. I see I have to distribute the following DLL with the .exe file in order to get my application to work correctly :
- GdPicture.NET.10.filters.dll and GdPicture.NET.10.filters.64.dll
- GdPicture.NET.10.image.gdimgplug.dll and GdPicture.NET.10.image.gdimgplug.64.dll
Currently they're lying in under the root of my application's folder and everything's working fine. I tried (silly me) putting them in "MyApplicationFolder\Bin" folder, but it's not working anymore. Is there a way to tell GdPicture to use the dll's from the specified path? The rest of the DLL are signed .Net DLL which are embedded in the .exe file, so I don't have this problem with these.
Let me know, thanks!
-
- Posts: 352
- Joined: Tue Sep 27, 2011 11:47 am
Re: [Deployment] Put the required DLL's in a separate bin fo
Hi,
The dlls need to be seen by the GdPicture.NET.dll you are referencing, this you can do that by putting them next to it, or defining an environment path.
Please read the following for better understanding of how to deploy applications using GdPicture:
https://www.gdpicture.com/guides/gdpicture/Red ... e.NET.html
Best,
Sami
The dlls need to be seen by the GdPicture.NET.dll you are referencing, this you can do that by putting them next to it, or defining an environment path.
Please read the following for better understanding of how to deploy applications using GdPicture:
https://www.gdpicture.com/guides/gdpicture/Red ... e.NET.html
Best,
Sami
Re: [Deployment] Put the required DLL's in a separate bin fo
Hi Sami,
Thanks for you answer! I was able to successfully add the dlls to the bin folder of my application by adding this same folder to my environment path. If someone runs into the same problem, here's a snippet of code which works for me in wix to set environment variable :
Thanks again!
Thanks for you answer! I was able to successfully add the dlls to the bin folder of my application by adding this same folder to my environment path. If someone runs into the same problem, here's a snippet of code which works for me in wix to set environment variable :
Code: Select all
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="MANUFACTURERFOLDER" Name="Manufacturer">
<Directory Id="INSTALLFOLDER" Name="Application">
<Directory Id="BINFOLDER" Name="bin">
<Component Id="AddBinFolderToPath" Guid="{Your-GUID-here">
<CreateFolder />
<Environment Id="PATH" Name="PATH" Value="[BINFOLDER]" Permanent="no" Part="last" Action="set" System="yes" />
</Component>
</Directory>
</Directory>
....
</Directory>
Re: [Deployment] Put the required DLL's in a separate bin folder
useful information
Who is online
Users browsing this forum: No registered users and 1 guest