Page 1 of 1

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

Posted: Fri May 23, 2014 10:20 am
by j2df
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!

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

Posted: Sat May 24, 2014 4:12 pm
by SamiKharma
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

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

Posted: Mon May 26, 2014 8:40 am
by j2df
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! :)

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

Posted: Wed Oct 12, 2022 12:23 pm
by nayahren4
useful information