[Deployment] Put the required DLL's in a separate bin folder

General discussions about GdPicture.NET.
Post Reply
j2df
Posts: 11
Joined: Fri Nov 01, 2013 5:19 pm

[Deployment] Put the required DLL's in a separate bin folder

Post by j2df » Fri May 23, 2014 10:20 am

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!

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: [Deployment] Put the required DLL's in a separate bin fo

Post by SamiKharma » Sat May 24, 2014 4:12 pm

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

j2df
Posts: 11
Joined: Fri Nov 01, 2013 5:19 pm

Re: [Deployment] Put the required DLL's in a separate bin fo

Post by j2df » Mon May 26, 2014 8:40 am

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 :

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>
Thanks again! :)

nayahren4
Posts: 1
Joined: Wed Oct 12, 2022 12:18 pm
Location: NYC USA

Re: [Deployment] Put the required DLL's in a separate bin folder

Post by nayahren4 » Wed Oct 12, 2022 12:23 pm

useful information

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Amazon [Bot] and 1 guest