We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Failed to find custom dll during install

Hi,

I have modified my install project to include a custom DLL and when I test the installer on my desktop machine it works great.

However, when I transfer it over to a client machine that doesn't have a development environment on it, I get the following error
( As you can see the "InstallCheck.DLL" does exist in the users temp directory )
InstallFail.png
InstallFail.png (215.45 KiB) Viewed 7006 times

I have attached the log and the install project for your consideration.

Thanks
Mike
Attachments
CustomAction.zip
(33.49 KiB) Downloaded 287 times
InstallFail_Log.txt
(62.96 KiB) Downloaded 260 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Failed to find custom dll during install

Hello Mike,

I've built and tested your attached setup project on a Windows 10 x64 machine and the "CallFunctionFromDLL" action ran successfully. Can you please test the setup on another machine too? Also, please make sure that the are no special permissions on your user's temp folder which could deny the installation process access to the temporary DLL file. The access might also be restricted by an antivirus software, so please make sure this is not the case.

For testing purposes we always recommend to be used virtual machines with clean states so that when something goes wrong you can easily revert to a clean state of the virtual machine.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Failed to find custom dll during install

Daniel,

The machine we tested on is a Windows 7 machine... possible issue there?
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Failed to find custom dll during install

The user is an Administrator
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Failed to find custom dll during install

Isn't the folder the temp folder for the user? They should have rights by default?
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Failed to find custom dll during install

Here is the project... with your TCP check added
Attachments
CustomAction.zip
(32.98 KiB) Downloaded 273 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Failed to find custom dll during install

Hello Mike,

Indeed the issue is replicating on a Windows 7 machine. This is quite strange. Please give us some time to investigate this and we'll get back to you as soon as we have an answer.

Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Failed to find custom dll during install

It also occurs on a windows 12 server box
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Failed to find custom dll during install

Hello Mike,

We have further investigated this and it seems the "LoadModule()" system function fails on Windows 7 when tries to load your DLL. This may happen if there are dependencies of your DLL missing from current machine.

Can you please make sure of the following:
1. your DLL can be successfully loaded and used on a Windows 7 machine
2. all dependencies of your DLL are installed on the Windows 7 machine when trying to load and use it?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”