pakman
Posts: 11
Joined: Wed Apr 26, 2006 7:41 pm

Multipule installers which share common DLL's

I have multiple installation packages that I have created with advanced installer. These packages independantly work fine. The issue is that I have common DLL's which are shared by these installers. If this common DLL directory is delete it causes the other packages to not work. The common DLL's are installed at the same location. For example:

C:\Program Files\Company\Common\DLL

Then I may have the package install it's software at:

C:\Program Files\Company\Product\Bin\

Is there a way to make it when the product is uninstalled, that it leaves this C:\Program Files\Company\Common\DLL\ directory behind, so that it doesn't break other installations.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

This problem was discussed before on this forum, please follow this link: http://www.advancedinstaller.com/forums ... php?t=1159

However if you want to use old reference counting scheme used by windows then check "Shared Dll Reference count" in the "Organization" page for all components that you want to be shared. Make this for both packages.

If you want to use the reference counting scheme introduced by Windows Installer then this implies that all components that you want to be shared to have the same GUIDs for both packages.

Or more easily you can create a merge module project for the Shared DLLs and include it in both packages. In this case is used the Windows Installer reference counting scheme which is more recommended.

Regards,
Gigi
__________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
pakman
Posts: 11
Joined: Wed Apr 26, 2006 7:41 pm

Thanks for the quick reply. I have read what you have posted along with the posting that you've linked to, however, I don't understand how to do it within Advanced Installer. I was playing around with it for the past hour without success.

If possible, if you could maybe give me a very simple walkthough of one of suggestions you posted below.

Thanks again for your support
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Create a merge module project and add those DLLs that you want to be shared and build it.

Now for each project that uses those shared DLLs add the merge module created above. You can add a merge module by choosing "Add Merge Module" from the "Merge Module" page context menu.

If you encounter any problems please let me know.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”