Shared DLLs and Components - 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!

ElectronShepherd
Posts: 29
Joined: Thu Jun 30, 2011 11:51 am

Shared DLLs and Components

I'm trying to understand the "best" way to install shared DLLs (or other files). By shared I mean than two installations install the same file, and the file only gets removed when both installations are removed.

AI supports the concept of updating HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs with the path to a file, and a reference count to it.

Am I right in saying that the "correct" Windows Installer method is to get two installs to both use a component with the same GUID (making sure they contain the same files), and not use the registry? It seems that the SharedDLLs registry method is only needed when you need to make non-Windows Installer products aware of the shared file.

If I don't have to worry about legacy installs, can I ignore the Shared Dll Reference Count checkbox in the component properties, and simply make my shared components have the same GUID between different AI projects?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Shared DLLs and Components

Hi,
Am I right in saying that the "correct" Windows Installer method is to get two installs to both use a component with the same GUID (making sure they contain the same files), and not use the registry?
Yes, this is the recommended approach.
If I don't have to worry about legacy installs, can I ignore the Shared Dll Reference Count checkbox in the component properties, and simply make my shared components have the same GUID between different AI projects?
Yes, having the same GUID and component name should be enough.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”