Anthrax
Posts: 19
Joined: Tue Jul 31, 2007 1:51 pm

File installation with merge module

Hi folks,

i have a little problem with my installation. First i will give you some background informations about the functionality.

In my setup i install some files with a merge module selectable over a feature in the Main Installation. So when i enter the custom settings dialog, a little script will check the file version. If the file don't exist, or if the installed file version ist smaller than the version in the merge module, my script will set the feature state to "install". Otherwise to "no install"
On each Build Step all AI Projects will get a new Product Version and when i overwrite my existing installation, the script sets the feature to "no install", because the file version has not changed ( OK). But the old one gets deinstalled and i don't have the needed file anymore. That's bad.

Can somebody help solving the problem?

Thank you

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

Re: File installation with merge module

Hi,
the old one gets deinstalled and i don't have the needed file anymore.
Please note that the automated upgrade feature will uninstall the old package before installing the new one. This happens during the "InstallExecuteSequence" -> "RemoveExistingProducts" standard action, therefore you can schedule your custom action before this.

Another solution would be to mark the component of the file as "Permanent" in the Component Properties pane of the Organization page. Please note that this should be done in all packages in order to make sure that the file is not removed when the old package is uninstalled automatically. In order to remove this file during a complete uninstall you can use one of the approaches explained in the Remove a file or a folder during installation how-to.

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

Return to “Common Problems”