Hi,
I have an office add-in packaged using Advanced Installer Pro. When upgrading either by the updater or manually over an existing installation I noticed that my main dll was disappearing. A fresh install worked fine. I've done some research into this and realise that it is a windows installer issue because of file versioning rules and the fact that I had forgotten to update the version of my dll. So I updated it and all behaved as expected.
However, I'm still struggling a bit to understand the various settings in Windows installer and advanced installer that affect this behaviour and wonder if you can help my understanding:
1. This only seemed to affect my main dll. I have a number of other files (including other dlls) that are also packaged as part of the deployment without me changing their version numbers yet these seem to reinstall OK. Can you give me any idea why this might be? Is it because this is the main file or does it have something to do with the file modified date having changed on that one file? All files are set to "overwrite if the existing file is older" in the Operations part of Advanced Installer's File Properties.
2. I have my upgrade option set to "Uninstall old version first and then install new version". Given this I assumed the old version would be fully uninstalled, so the main dll would no longer exist before the new version is installed. So why/how does it check the versions? Does it check before the uninstall of the old version is run?
3. Is there a way of forcing the main dll to be installed if the version is greater or THE SAME? From reading other posts I've come across the REINSTALLMODE property which looks like it might help my situation. It look to me like changing the REINSTALLMODE from omus (which I believe is the default) to emus will prevent the disappearing file issue. Can you tell me how I change REINSTALLMODE in Advanced Installer? Is it at the package level or can you set it for each file?
4. Finally can you tell me if there any disadvantages to REINSTALLMODE emus instead of omus?
Thanks,
LJ
FOLLOW US
Get the latest news in Application Packaging