Setup.exe uses dbghelp.dll - Advanced Installer Community

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!

BobNB
Posts: 17
Joined: Wed Sep 23, 2009 1:12 pm

Setup.exe uses dbghelp.dll

Hi,
My application installer has always installed the latest dbghelp.dll into the application directory for my app to generate minidump crash reports if necessary. With my latest release I upgraded to AI 7.2, and also use the Enhanced User Interface in User Interface global options. Now when I perform an upgrade of my app the Validation pass reports that my installer and Setup.exe have a file locked thet needs to be replaced. I turned logging on and it appears that the Setup.exe is using the dbghelp.dll from my application directory.
So, what do I do?
I can remove dbghelp.dll from the new install which is probably OK now anyway. But I will need to delete dbghelp.dll from the application folder before setup runs.
Why does setup.exe use dbghelp.dll from the app folder? Is there a way to make Setup.exe use the dbghelp.dll from the system folder?
Any help appreciated.
Bob
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Setup.exe uses dbghelp.dll

Hello,

Please note that this is related to how Windows loads and uses DLLs. The executable installer also uses dbghelp.dll, and since yours is already loaded into memory, then yours gets used. This behavior is controlled by Windows. A solution would be to make sure that your application closes before initiating the upgrade. You could also try renaming your dbghlp.dll to something else and load that instead.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
BobNB
Posts: 17
Joined: Wed Sep 23, 2009 1:12 pm

Re: Setup.exe uses dbghelp.dll

Hi Garbiel,

Thanks for the reply. Yes I understand that this is because setup.exe now links to dbghelp.dll, and it is a matter of how Windows loads dlls.

The problem is that setup.exe used not link to dbghelp.dll. I can modify my application and/or installer for future releases, but I cannot modify my apps and installers that are already in the field. As I see it the only course I see for making a least-hasstle for the user upgrade installer is to make a custom action in my new installers that terminates my application services firstly. But I am not sure that will work anyway because the new setup.exe will already be running and presumably may have already loaded dbghelp.dll from the app folder.

So, I would like to formally request a switch to build the setup.exe without linkage to dbghelp.dll please.

Also, what version did setup.exe start using the dbghelp.dll. I may backgrade to the version prior until this switch is added.

Thanks
Bob
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Setup.exe uses dbghelp.dll

Hello,

Please note that dbghelp.dll is and has always been used when Enhanced UI is enabled. That is, since version 7.0 of Advanced Installer. Disabling Enhanced UI implies that the bootstrapper will no longer link to dbghelp.dll.

We can not fulfill your request to build the bootstrapper without dbghelp.dll since the bootstrapper relies on it to provide debug information in case of a crash.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
BobNB
Posts: 17
Joined: Wed Sep 23, 2009 1:12 pm

Re: Setup.exe uses dbghelp.dll

Hi Gabriel.

Why not modify AI/setup.exe to dynamically load dbghelp.dll if required? That way it would be still able to generate debug dumps if required and still be compatible with applications that distribute a dbghelp.dll version with the required features.

Regards
Bob
BobNB
Posts: 17
Joined: Wed Sep 23, 2009 1:12 pm

Re: Setup.exe uses dbghelp.dll

Hi Gabriel,

What would be the appropriate place for a custom action that stops my existing installed services before the ValidatingInstall reports the file in use?

Thanks
Bob
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Setup.exe uses dbghelp.dll

Hello Bob,

You can place your custom action anywhere before the InstallValidate Standard Action under InstallExecuteSequence.

About dynamically loading dbghelp, we will consider it for a future version of Advanced Installer.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”