DLL's 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!

mctozzy
Posts: 81
Joined: Wed Feb 14, 2007 7:37 am

DLL's and Components

I've noticed that AI always makes each DLL a separate component when they are added to the project, even if they are all in the same folder. I don't believe that MSI mandates this to be so...is there a reason for this?

Thanks,
MT
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: DLL's and Components

Hi,
I don't believe that MSI mandates this to be so...is there a reason for this?
Yes, Microsoft does not say that creating a component for each DLL is mandatory. However, it makes some recommendations in the Defining installer components article in the MSDN. In this article, the third recommendations starts with:
"Define a new component for every .exe, .dll, and .ocx file."

Since Advanced Installer follows the Microsoft recommendations, it will automatically create a new component for each DLL, EXE and OCX file. Please note that this can be changed through the Organization page by moving the DLLs to any component you need.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mctozzy
Posts: 81
Joined: Wed Feb 14, 2007 7:37 am

Re: DLL's and Components

Thanks for that - yes we did move things into a consolidated component which seemed to work fine, but just wondered why it did this...

One problem with letting each dll have it's own component is that it makes patching somewhat more difficult, because changes such as renaming a dll (add file, delete file) - that would otherwise be acceptable for a minor upgrade patch - become illegal because that would involve a change to the component's keyfile.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: DLL's and Components

Hi,
changes such as renaming a dll (add file, delete file) - that would otherwise be acceptable for a minor upgrade patch - become illegal because that would involve a change to the component's keyfile.
Please note that you can try renaming the DLL in your project and changing its source file (double-click the file in the "Files and Folders" page). This way you don't need to remove the DLL and add it again so the component will not change.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”