Quadiago
Posts: 71
Joined: Thu May 31, 2007 9:07 am

Upgrading issue

Hi there

I have a problem that requires me to be able to change the order of the actions in the InstallExecuteSequence, but this is not allowed in AI.

More specifically:
I have a component that is marked as "never overwrite". I then make changes to the file after install. If I then install a never version of the program, the file disappears. This happens because (excuse me if you know this) InstallValidate decides not to install the file, and after that RemoveFiles removes the file.

Is there some way I can make this work the right way?

Thank you
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

On how do I prevent a file from being replaced by a newer version please see:
http://www.advancedinstaller.com/user-g ... -file.html

Other solution will be to mark the file component as permanent and never overwrite. To delete the file only on uninstall (not on upgrade) you can use a simple custom action scheduled under "InstallFinalize" with (REMOVE="ALL" AND (NOT UPGRADINGPRODUCTCODE)) as "Execution Condition".

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Quadiago
Posts: 71
Joined: Thu May 31, 2007 9:07 am

I'll implement this solution for now, but it is definitely not the only, or even the best solution. Would you please consider adding a very simple option that moves the RemoveExistingProducts Action to after InstallFinalize?

Thank you
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
Would you please consider adding a very simple option that moves the RemoveExistingProducts Action to after InstallFinalize?
We have this feature on our TODO list and will be available in a future version of AI. I'm afraid I cannot give you an ETA. Thank you for your suggestion.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”