Share files among multiple MSIs - 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!

rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Share files among multiple MSIs

Hi,

I've two MSIs: client and server, where one component is the same, containing framework files. they need to be in both installers.
Additionally, both MSIs are installed to the same directory.

How can I make sure, that the framework files are not removed, if both MSIs are already installed, and one of them should be uninstalled?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Share files among multiple MSIs

Hi,

Make sure that the component has the same name and GUID in both installers. This way Windows Installer will use a reference count for it (it will be removed only when all packages which contain it are uninstalled).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Re: Share files among multiple MSIs

Hi,
thanks, this sounds good.
How can I put multiple files into one component?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Share files among multiple MSIs

Hi,

Simply go to Organization page, locate the file you are interested in and drag and drop it in the component you want it to be placed.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Re: Share files among multiple MSIs

when adding the files, each of them is placed in its own component. and as soon as it has the key symbol on it, I can't move it nowhere. It's also very extensive to reorg lots of files one by one.
- Is there a way to move a key resource to another component?
- is there a way to add multiple files to one component when adding them?


edit:
found out, that files which are being referenced somewhere can't be moved.
Last edited by rho on Fri May 06, 2011 4:33 pm, edited 1 time in total.
rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Re: Share files among multiple MSIs

a further question:
has it any restrictions on later patching capabilities when I put multiple files into one component? like "the patch has to contain all files which are grouped in the component to patch, to not loose other files" ?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Share files among multiple MSIs

Hi,
when adding the files, each of them is placed in its own component. and as soon as it has the key symbol on it, I can't move it nowhere.
Files which already have their own component don't need to be moved. You can use the component directly.
is there a way to add multiple files to one component when adding them?
Components are generated automatically based on Microsoft best practices. But you can always reorganize them any way you want. To move a file to an existing component, simply drag that file over the component item. Please note that not all components support this.
has it any restrictions on later patching capabilities when I put multiple files into one component?
No, there shouldn't be any restrictions. A patch includes the difference between two MSI packages. So if a file was changed, it will be included in the patch.

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

Return to “Common Problems”