Shared dll and Updating or Patching - 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!

Maverick
Posts: 54
Joined: Mon Aug 18, 2008 12:11 pm

Shared dll and Updating or Patching

Hello,
I will have two installers for two applications. That applications will use some shared components(dll). I' ve read some posts and as I understand when I am using the same GUID and names the shared dll will be handled automatically as shared dll even without setting the property in AI. What will be the approach when the shared dll need to be updated by a patch or by an upgrade? Will the patch for Application 1 upgrade the shared dll's ?

Regards

Gary
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Shared dll and Updating or Patching

Hi Gary,

Shared resources are a little bit more complicated to handled, so we need to be careful.

In your design, do the applications share the same location for the installed DLLs? Like a folder called "Common" in the company folder name created
on the target machine?

The cleanest method that I recommend is to create a separate package that installs the the shared DLLs in the desired location, so you can handle updates separately for them. You can add this package as a feature-based prerequisite in the main package, so if one of the applications has installed the other one will skip it, so it will also bring a small speed improvement for the install process. Have you considered this option, does it have some limitations for your scenario?

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Maverick
Posts: 54
Joined: Mon Aug 18, 2008 12:11 pm

Re: Shared dll and Updating or Patching

Hi Bogdan,

that would be a way to go for.
For an update , I think everything will work fine.

Am I right that I can not Patch that solution? Or at least not with One Patch, only with two seperate Patches? One for the Main App and one for the Shared Package.


Regards
Gary
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Shared dll and Updating or Patching

Hi Gary,

Yes, you would need separate patches because you would apply them on different target MSI packages.

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

Return to “Common Problems”