adding HD5 dlls to an application install

Hi,

I'm trying to build an installer for my app which uses the HD5 DotNet
wrapper and the underlying unmanaged HD5 dlls. I don't want the users to
have to install HD5, I just want to install the HD5 dlls in the right place
as part of my application install.

I'm using Procmon to track dll loading. Everything works fine with the dlls
are "installed" and the folder is on the path. But when I put the unmanaged
dlls in the same folder as the application executable and rename the folder
on the path (to hide it), I get an exception when the .NET HD5 wrapper tries
to load the unmanaged HD5 dlls. I'm having a little trouble understanding
this, because I thought the dll search path includes the folder where
application executable is:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms682586(v=vs.85).as
px

Does anyone have any idea what is going on here?

- Andy

Andy,

there are probably some dependencies missing for the
unmanaged dlls. Try loading the unmanaged dlls from the output path in
dependency walker and see, if it is able to load them successfully?

http://www.dependencywalker.com

I hope this helps?
Haymo

···

On Wed, 13 Feb 2013 13:29:14 -0800, "Andy Voelkel" wrote:

Hi,

I'm trying
to build an installer for my app which uses the HD5 DotNet wrapper and
the underlying unmanaged HD5 dlls. I don't want the users to have to
install HD5, I just want to install the HD5 dlls in the right place as
part of my application install.

I'm using Procmon to track dll
loading. Everything works fine with the dlls are "installed" and the
folder is on the path. But when I put the unmanaged dlls in the same
folder as the application executable and rename the folder on the path
(to hide it), I get an exception when the .NET HD5 wrapper tries to load
the unmanaged HD5 dlls. I'm having a little trouble understanding this,
because I thought the dll search path includes the folder where
application executable is:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms682586(v=vs.85).aspx
[1]

Does anyone have any idea what is going on here?

- Andy

--

----------------------
ILNumerics Team

Links:
------
[1]
http://msdn.microsoft.com/en-us/library/windows/desktop/ms682586(v=vs.85).aspx

It was user error. BTW, I’ve found that DependencyWalker doesn’t work well for recent .NET framework apps. So I switched to ProcMon, which has a longer learning curve, but works quite well for dynamic dll load tracing.

- Andy

···

From: Hdf-forum [mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Haymo Kutschbach
Sent: Wednesday, February 13, 2013 1:53 PM
To: HDF Users Discussion List
Subject: Re: [Hdf-forum] adding HD5 dlls to an application install

Andy,

there are probably some dependencies missing for the unmanaged dlls. Try loading the unmanaged dlls from the output path in dependency walker and see, if it is able to load them successfully?

http://www.dependencywalker.com

I hope this helps?
Haymo

On Wed, 13 Feb 2013 13:29:14 -0800, "Andy Voelkel" <jandyman.voelkel@gmail.com> wrote:

Hi,

I’m trying to build an installer for my app which uses the HD5 DotNet wrapper and the underlying unmanaged HD5 dlls. I don’t want the users to have to install HD5, I just want to install the HD5 dlls in the right place as part of my application install.

I’m using Procmon to track dll loading. Everything works fine with the dlls are “installed” and the folder is on the path. But when I put the unmanaged dlls in the same folder as the application executable and rename the folder on the path (to hide it), I get an exception when the .NET HD5 wrapper tries to load the unmanaged HD5 dlls. I’m having a little trouble understanding this, because I thought the dll search path includes the folder where application executable is:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms682586(v=vs.85).aspx

Does anyone have any idea what is going on here?

- Andy

--
----------------------
  ILNumerics Team

Thank you for info!

···

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elena Pourmal The HDF Group http://hdfgroup.org
1800 So. Oak St., Suite 203, Champaign IL 61820
217.531.6112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

On Feb 14, 2013, at 11:32 AM, Andy Voelkel wrote:

It was user error. BTW, I’ve found that DependencyWalker doesn’t work well for recent .NET framework apps. So I switched to ProcMon, which has a longer learning curve, but works quite well for dynamic dll load tracing.

- Andy

From: Hdf-forum [mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Haymo Kutschbach
Sent: Wednesday, February 13, 2013 1:53 PM
To: HDF Users Discussion List
Subject: Re: [Hdf-forum] adding HD5 dlls to an application install

Andy,

there are probably some dependencies missing for the unmanaged dlls. Try loading the unmanaged dlls from the output path in dependency walker and see, if it is able to load them successfully?

http://www.dependencywalker.com

I hope this helps?
Haymo

On Wed, 13 Feb 2013 13:29:14 -0800, "Andy Voelkel" <jandyman.voelkel@gmail.com> wrote:

Hi,

I’m trying to build an installer for my app which uses the HD5 DotNet wrapper and the underlying unmanaged HD5 dlls. I don’t want the users to have to install HD5, I just want to install the HD5 dlls in the right place as part of my application install.

I’m using Procmon to track dll loading. Everything works fine with the dlls are “installed” and the folder is on the path. But when I put the unmanaged dlls in the same folder as the application executable and rename the folder on the path (to hide it), I get an exception when the .NET HD5 wrapper tries to load the unmanaged HD5 dlls. I’m having a little trouble understanding this, because I thought the dll search path includes the folder where application executable is:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms682586(v=vs.85).aspx

Does anyone have any idea what is going on here?

- Andy

--
----------------------
  ILNumerics Team
_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Sorry to bother the group, it was my user error. If there is time to
withdraw the post below, please do.

- Andy

···

From: Andy Voelkel [mailto:jandyman.voelkel@gmail.com]
Sent: Wednesday, February 13, 2013 1:29 PM
To: hdf-forum@hdfgroup.org
Subject: adding HD5 dlls to an application install

Hi,

I'm trying to build an installer for my app which uses the HD5 DotNet
wrapper and the underlying unmanaged HD5 dlls. I don't want the users to
have to install HD5, I just want to install the HD5 dlls in the right place
as part of my application install.

I'm using Procmon to track dll loading. Everything works fine with the dlls
are "installed" and the folder is on the path. But when I put the unmanaged
dlls in the same folder as the application executable and rename the folder
on the path (to hide it), I get an exception when the .NET HD5 wrapper tries
to load the unmanaged HD5 dlls. I'm having a little trouble understanding
this, because I thought the dll search path includes the folder where
application executable is:

http://msdn.microsoft.com/en-us/library/windows/desktop/ms682586(v=vs.85).as
px

Does anyone have any idea what is going on here?

- Andy