How are common files handled

For all your non-technical questions.
Post Reply
steven evans
Posts: 12
Joined: Fri Oct 19, 2012 3:46 am

How are common files handled

Post by steven evans »

Hi,
We are looking to replace our existinng installer (wise). We have an number of Net applications using a libary of dlls. The question we have is how will IA cope with having the same file in multiple installers. Will they not be installed if allready present? On unistall will common files remain? How dose IA determin (if at all) a dll (or file) is the same?

Steven Evans
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: How are common files handled

Post by FrancescoT »

Dear Steven,

the "Install File" command permits to define in which way the MSI engine have to handle a particular file or folder.

More precisely the following command paramters can be used;
- Permanent File - the file will be not removed by uninstall
- Never Overwrite - The file will be not installed if already present

The Windows Installer engine behavior is to overwrite files on the target system only if the ones you are copying are newer.
This behavior cannot be changed with the Windows Installer engine.
Similarly, the Native Engine by default will not overwrite files on the target system if the ones you are copying are not newer, however overwrites may be forced by setting the pre-defined variable NATIVE_OVERWRITE_OLDER to TRUE.
However, this should be done carefully, as it may compromise target system integrity and may break other applications.

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
steven evans
Posts: 12
Joined: Fri Oct 19, 2012 3:46 am

Re: How are common files handled

Post by steven evans »

I can see How i force files to be kept or removed. What I dont see is a "referance count" mechanisam that will remove a shared dll when all its dependants have been unistalled.

As most of the dlls are put in the gac does this make a differance? We build diffent apps at different times so the files have diffent dates but the version of the dlls used will be the a same.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: How are common files handled

Post by FrancescoT »

Dear User,

shared dll installation are controlled by "Shared DLL" copy option parameter available with Install Files command.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply